Hi,

I saw the source and its pretty straightforward. I don't get why my code doesn't work. :-( My index.html is similar but the api/index.html is nested deep inside (which should not be a problem):

<li>
   <h2>API Viewer</h2>
       <p>qooxdoo-based API viewer featuring the API reference.</p>
<span class="local"><a href="myJSfolder/custom/api/index.html"><b>Open API viewer</b></a> <span class="publish"><a href="myJSfolder/custom/api/index.html"><b>Open API viewer</b></a></span>
</li>

regards
Amit


thron7 wrote:
Hi Amit,


By "call", I mean a simple HTML HREF tag inside in server's index.html to the api/index.html (<a href="js/custom/api/index.html">)

Ok, so that would normally be called "linking" from one page to another :).

Please have a look at the following web page: http://demo.qooxdoo.org/current/

Please not only look at the rendered page but also at the page's source. It's a fairly straight-forward HTML page which, among other things, features a link to an apiviewer instance ("<a href="apiviewer/index.html">). And it does so with a relative URI which is immediately down from the current page's directory. So this looks like it is pretty close to your scenario, right?!

If I click on the link, the apiviewer is loaded alright. How about you? What is different to your server's index.html?

T.

And, yes you had also replied earlier (http://n2.nabble.com/API-generation-td1663754.html) but you told not to break api folder into parts which i was not doing then as well as now.

I know it may be a very simple thing for you guys but I am not able to figure it out.

Best regards
Amit Rana

thron7 wrote:
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

Reply via email to