On Sat, Dec 5, 2009 at 14:19, Chakotey STME <[email protected]> wrote:
> Hi,
>
> thanks for your answer.
> Well, if I run the index.html manually in the browser I get this messages
> in firebug:
>
> source version:
> Transport error 0: Unknown status code
> var error = new Error(ex.toString());
>
> AND:
>
> 003028 qx.io.remote.transport.XmlHttp[jm]: Failed to send data:
> [Exception... "Component returned failure code: 0x80004005
> (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005
> (NS_ERROR_FAILURE)" location: "JS frame ::
> file:///E|//stefan/studium/5.%20semester/studienarbeit/programme/qooxdoo/qooxdoo-0.8.3-sdk/framework/source/class/qx/io/remote/transport/XmlHttp.js
> :: anonymous :: line 323" data: no]
>
>
You can not send remote requests if you are using a file:// URL for your
application, unless you explicitly set the cross-domain property to true,
and your server sends a valid (as far as Script Transport is concerned)
response. In general, you will run into all kinds of problems trying to
develop applications that require sending requests to a server while using a
file:// URL for the application. Instead, set up your web server to provide
access to your source tree when accessed via localhost. Here's the snippet I
add to my apache2 configuration to do this:
<VirtualHost 127.0.0.1>
ServerAdmin webmas...@localhost
DocumentRoot /home/derrell/ME/
<Directory /home/derrell/ME/>
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from All
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
That creates a new virtual host at the localhost address, 127.0.0.1, with
its root in /home/derrell/ME. Any time I then access
http://localhost/path/to/file it is really accessing
/home/derrell/ME/path/to/file so I can work with my qooxdoo source tree.
If you're using some other web server, there'll be some way to accomplish
the same thing with its configuration files.
Hope that helps.
Derrell
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel