General Interface is an open source project hosted by the Dojo Foundation

Running GI App from file url on Google Chrome

You get a strange error on Google chrome when launching GI application from file URL (when you open the launch.html directly from filesystem)
that says something like

"Invalid character at column 1 character 1 of logger.xml"

If you open the Developer Tool and look at the Console output you will see that it is throwing all these Error for each XML file resource request by GI

"Cross origin requests are only supported for HTTP."

Turns out that similar to Firefox/Mozilla strict origin policy Google Chrome doesn't allow you to load resource from different paths

So for test purpose you can launch Chrome with this flag to get around this restriction

google-chrome --allow-file-access-from-files

or

chrome.exe --allow-file-access-from-files

Labels

crossdomain crossdomain Delete
cross-origin cross-origin Delete
google-chrome google-chrome Delete
file-url file-url Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Apr 15, 2011

    Rick Lyman says:

    Darren will v4 Builder support Chrome? (Is there a version 4?) v3.9: Using Vis...

    Darren will v4 Builder support Chrome? (Is there a version 4?)

    v3.9:
    Using Vista:
    When I type 'C:\Users{userName}\AppData\Local\Google\Chrome\Application\chrome.exe --allow-file-access-from-files' in a command prompt, Chrome opens a browser window.

    After typing 'file:///C:/Persevere/gi-3.9-source/GI_Builder.html' in the browser, Chrome attempts to open General Interface. I recieve the following error:
    "logr.err_conf[107] error on line 1 at column 1:Extra content at the end of the document logger.xml".

    Using Fedora:
    From a terminal, I cd to my gi-3.9-source directory, typing '/opt/google/chrome/google-chrome --allow-file-access-from-files GI_Builder.html', Chrome opens a browser window. GI opens a 'Create or Locate a Workspace' dialog. The dialog only allows 'Read-Only (XmlHttpRequest)'. Typing the path, into the input box, does not seem to work.

    1. May 13, 2011

      Darren Hwang says:

      What's V4 Builder? Anyway, there is no plan to support Builder on Chrome or Safa...

      What's V4 Builder? Anyway, there is no plan to support Builder on Chrome or Safari since they do not support File write access to save projects). The read-only option is meant to work for Safari I believe, but that is not an official feature.

  2. May 20, 2011

    Rick Lyman says:

    I was wondering what the plans are for GI Builder version 4. Under Linux, FireF...

    I was wondering what the plans are for GI Builder version 4.

    Under Linux, FireFox v4 seems to work, with GI Builder. I am using Simply Mepis which has FireFox v4 as part of it's install. I would prefer to run under Safari, or Chrome, so that I would have access to SQL via 'openDatabase'.

    Builder could substitute 'localStorage' for file access. I have not seen any updates as to General Interface version 4. Another option would be to use Persevere version 1 (maybe, because of the Dojo connection).

    There is a lot of work going on with noSQL; however, since GI is not server centric it could use 'localStorage', in the browser. These local calls could be sent to a server api, just as easily.

    The planning page (http://www.generalinterface.org/docs/display/OS/GI+4.0+Planning) mentions a working prototype, at least in regards to box sizing. What kind of assistance can be provided by the community re: version 4 (the mentioned prototype?).

    I noticed IBM contibuted Maquetta to Dojo; maybe Dojo is the new 'Open Ajax Alliance': Dojo + Persevere + Maquetta + General Interface What is the Dojo roadmap? Who is funding what? What resources are available? What can the community do to help?