hello jim,
Thanks for your help,
json txt is like this
{"contacts":{"contact":[{"name":"John
Doe","phone":"123-456-7890"},{"name":"Jane
Doe","phone":"123-456-0000"},{"name":"John
Smith","phone":"123-456-1111"},{"name":"Jane
Smith","phone":"123-456-9999"}]}}
and it is at the domain i am hitting. (actually at localhost :))
actually if i write a function like,
function test(e){ return e.getData.getContent();}
and pass it to the qx.io.remote object with the eventlistener i can
get the header after i do request.send() then again when i get the
info of the request object , it is null once again :S
but when i say getResponseHeaders() it gives nothing, perhaps i am
missing some point because i lack experiance?
is there a eval function at qooxdoo which turns json to object as in
javascript??
thank you for your support again.
kind regards
On Nov 17, 2007 8:57 PM, Jim Hunter <[EMAIL PROTECTED]> wrote:
> What does the content of json.txt look like? Cam you provide a sample? And
> are you sure that the file is in the root of the domain you are hitting?
>
> Jim
>
>
>
>
> On Nov 17, 2007 7:30 AM, Aytek Debreli < [EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hello,
> >
> > I'm have just started using Qooxdoo and i am not pretty informed about
> > Javascript and AJAX.
> > What i want to do is goes like this:
> >
> > There's an xml2json converter somewhere running and it
> > converts XML's and write them in a file. i reach that file with
> >
> > var json = new
> > qx.io.remote.Request("json.txt","GET",qx.util.Mime.JSON);
> >
> > no problem there , its is Application/json object ...
> > but when i do : " json.info ()" it says object is null..
> >
> > At the http://qooxdoo.org/documentation/0.7/remote_io#simple_example
> > page in the suported types section it says : text/json is directly
> > evaluated so i tried
> >
> > new qx.io.remote.Request("json.txt","GET","text/json");
> >
> > it gives me:
> >
> > 1069852 DEBUG: qx.io.remote.Request[]: Current stack trace at
> > qx.log.MLogging:printStackTrace://127.0.1.1/php2JSON/script/qx.js at
> > http://127.0.1.1/php2JSON/script/qx.js:1994 at
> > http://127.0.1.1/php2JSON/script/qx.js:2005 at
> > qx.io.remote.Request:constructor://127.0.1.1/php2JSON/script/qx.js at
> > qx.io.remote.Request:constructor
> > wrapper://127.0.1.1/php2JSON/script/qx.js at javascript: with
> > (__scope__.vars) { with (__scope__.api) { with (__scope__.userVars) {
> > with (window) {try {__scope__.callback(eval(__scope__.expr));} catch
> > (exc) {__scope__.callback(exc, true);}}}}}:1 at javascript: with
> > (__scope__.vars) { with (__scope__.api) { with (__scope__.userVars) {
> > with (window) {try {__scope__.callback(eval(__scope__.expr));} catch
> > (exc) {__scope__.callback(exc, true);}}}}}:1
> >
> > What i have to do ?
> > Kind Regards
> > Aytek Debreli
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
--------------------------------------------------------
Aytek Debreli
Istanbul Bilgi University
Department of Computer Science
--------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel