My Application start page is :
http://localhost:8080/MyApplicationName/ (which shows the server's
index.html)
This index.html has the link to API as :
<span class="local"><a
href=""><b>Open API
viewer</b></a></span>
Clicking on this shows the URL on browser as :
http://localhost:8080/MyApplicationName/myJSfolder/custom/api/index.html
This index.html has code as :
<script type="text/_javascript_"
src=""></script>
and I see the application tree with qx and my custom application nodes
and all the sub-nodes properly.
Now, when I click Class node (qx.Class), the URL shows :
http://localhost:8080/MyApplicationName/myJSfolder/custom/api/index.html#qx.Class
(which is correct), but I get the following popup error:

Firebug console says :
GET http://localhost:8080/Chiron/js/spagobi/api/script/qx.Class.js
with response as : The requested resource
(/MyApplicationName/myJSfolder/custom/api/script/qx.Class.js) is not
available.
And, when I go to :
http://localhost:8080/MyApplicationName/myJSfolder/custom/api/script/
in browser URL, I see a list of files with qx.class.js as one of them.
I went into : qooxdoo-0.8-sdk\component\apiviewer and did a generate.py
source. It also generated a script folder with classes in lowercase
(qx.class.js) and calling index.html works.
I created a dummy index.html and called
qooxdoo-0.8-sdk\component\apiviewer\index.html and that too works.
Then, from dummy index.html, I called
MyApplicationName/myJSfolder/custom/api/index.html and that works too.
So, the problem occurs only when data is on server. I am trying to dig
into that.
Amit
thron7 wrote:
Amit Rana wrote:
I tried with a simple version too but got the same error.
The issue which Firebug states (when I click on say qx.Class) is :
GET qx.Class.js - Error 404
It tries to look for /api/script/qx.Class.js but actually the file
name on server (under api/script) is qx.class.js (Note that
qx.class.js is with "c" and not "C")
But that means it is looking for an *absolute* server path
(/api/script/qx.Class.js), not for a relative one, which is a big
difference. Again, what is the *exact* URL that is requested by the
browser (don't guess, look), what is at least the server path? If your
initial request for the index.html was myJSfolder/custom/api/index.html,
this is translated to some full URL with a server path like
/a/b/myJSfolder/custom/api/index.html. When now qx.Class.js is requested
it has to translate into an URL with a server path of
/a/b/myJSfolder/custom/api/script/qx.Class.js. - Is this the case?
(I don't think it relates to capitalisation; why would it then work when
you open api/index.html directly. Have you checked capitalisation in
URLs when you open apiviewer directly?).
T.
qx.class.js code snippet:
{type:"class",attributes:{"isStatic":"true","name":"Class","packageName":"qx","fullName":"qx.Class","type":"bootstrap"}...
So, api/index.html#qx.Class should be calling qx.class.js but tries to
look for qx.Class.js.
This thing works properly if api/index.html is called independently in
the browser.
Amit
thron7 wrote:
Amit Rana wrote:
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=""><b>Open API viewer</b></a>
<span class="publish"><a
href=""><b>Open API
viewer</b></a></span>
</li>
Why are you using two links with different 'class' attributes around
them? Is there some magic in the CSS for those classes going on? Are
the resulting URLs correctly requested by the browser once you click
them (check Firebug Net tab)? What happens to the URLs on the server
(aliases, rewriting, ..)?
Can you reproduce the issue in a stripped-down scenario (simple HTML
page, no CSS, one link to Apiviewer, no server-side rewriting, ...)?
Thomas
|
------------------------------------------------------------------------------
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