Amit,

what are you trying to achieve?! What do you mean when you say you 
"...try to *call* api/index.html from my server's index.html...". You 
cannot "call" a web page, can you?! So what does that mean you "call" 
one web page from another?! If you *load* the Apiviewer index.html from 
your web server, this should work as it works for me and the many 
apiviewers we have published on qooxdoo.org. So, does it? Obviously, you 
are doing something bizarre so that relative paths throw up. (I have a 
faint feeling I answered your OP, didn't I ...?!).

Thomas

Amit Rana wrote:
> Hi all,
>
> Has anyone tried generating API for their applications ? I try to call 
> api/index.html from my server's index.html and get the errors as 
> mentioned below.
>
> If I open api/index.html directly in web browser, it works perfectly.
>
> Do I have to edit my config.json ?
>
> regards
> Amit
>
> Amit Rana wrote on 16-12-2008:
>   
>> Hi,
>>
>> I am trying to configure API viewer for my application.
>>
>> I have done no changes in config.json or any file. I simply run 
>> "generate.py api" and when I launch index.html, I see the API tree 
>> with qx part and my application class and its structure and everything 
>> works fine.
>>
>> But, if I call index.html from a different path, I only see the 
>> structure. When I click on any node in the tree, I get popup errors 
>> saying  Couldn't load file: ./script/qx.application.AbstractGui.js 
>> etc. (for both qx part and my application path). I guess I have to 
>> change some setting but not sure what ?
>>
>> I have traced the flow (index.html refers script/apiviewer.js which i 
>> turn refers apiviewer-0.js), but am unable to correct the problem. I 
>> tried changing the path in index.html and apiviewer.js but then I get 
>> blank screens. :-(
>>
>> Can anyone help me out here?
>>
>> regards
>>
>>     
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>   

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to