Amit Rana wrote:
> 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="myJSfolder/custom/api/index.html"><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/apiviewer.js"></script>
>
> Firebug console says :
> GET http://localhost:8080/Chiron/js/spagobi/api/script/qx.Class.js
>   

THIS ^^^^ is very suspicious! Why is there a request to a URL with 
server path starting with "/Chiron/js/...", when we are in a path that 
starts with "/MyApplicationName/..."?!

- Clear your browser cache.
- Clear any server cache you might have.


> 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. 
>   

Why would that help? Aren't you trying to browse a custom api viewer, 
built in your own project with "generate.py api"?!

> It also generated a script folder with classes in lowercase (qx.class.js) and 
> calling index.html works.
>   

You're using Windows, so capitalisation doesn't matter.

> 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.
>   

Yes, there is not much use in testing against an offline access (file:// 
protocol). You have to test and compare online access.

T.


------------------------------------------------------------------------------
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