Hi list,

We're currently implementing a new functionality in our app that behaves
like a download (we want to serve a file to the user) but isn't really
fetching a file on the server. For this purpose, doing a request to a
servlet using the Iframe class seemed like a good idea even though the API
advises against it ("This class should not be used directly by client
programmers."). However, everything seems to run fine client side as well
as server side except for one error that pops up every time I call the method:
Uncaught TypeError: Cannot read property 'src' of null
which seems to happen somewhere at line 271 in Iframe.js
We're using qooxdoo-1.2.1 and here's a code sample of how I'm using the
class.

    var request = new qx.io.remote.transport.Iframe();
    request.setMethod("POST");
    request.setUrl(filename + ".csv");
    /* ... */
    request.setParameters({"type" : "csv"});
    request.setFormFields({"values" : result, "headers" : headers});
    request.send();

I still get my file as I expect it and no error shows up on the server, but
it doesn't mean I'm not doing something wrong, and red text in the
console's never good, so I could use some help to track this down.


Thanks in advance,

--
Joffrey Fuhrer
NOVLOG Intern

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to