Hi, I found out the problem but the can't figure out its solution.
The problem is that even though all my classes are inside api/script folder, their is a problem with the name of the class. If my code had custom.abc.Xyz (with Uppercase X in Xyz.js), the API job generates custom.abc.xyz (with lowercase x). Now, in my API tree, I see Xyz, but on clicking, qooxdoo cannot find Xyz.js as it has renamed it to xyz.js. So, it gives an error Cannot load file Xyz.js. So, can someone tell me why is the classname getting renamed by the api job ? regards Amit Rana thron7-2 wrote: > > > > 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 > > -- View this message in context: http://n2.nabble.com/API-generation-tp1663754p1668307.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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
