Amit Rana wrote:
> 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?
>   

The 'api' sub-folder created when running 'generate.py api' represents a 
complete and self-contained qooxdoo 'build' application. The index.html 
and the script/*.js files use URIs to reference each other that are 
contained in the directory tree under the 'api' folder. This also 
includes references to resources like images, which are used in the 
apiviewer app.

You cannot just move the index.html of that application around. Move the 
whole directory tree, but don't take it apart. If you are desperate 
about splitting the app into pieces and distribute it, there is a way in 
theory to achieve that, but I never tried it with apiviewer and I 
wouldn't recommend it.

If you just want the index.html to be "remote", use a proxy index.html 
that contains only an iframe that loads the original index.html. Then 
everything should work.

HTH,
Thomas

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to