p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional XMPP Programming with JavaScript and jQuery (http://p2p.wrox.com/forumdisplay.php?f=542)
-   -   flXHR problem (http://p2p.wrox.com/showthread.php?t=79482)

savswsoft May 20th, 2010 04:16 AM

flXHR problem
 
Hello,

I've read all threads related to flXHR problems, but it seems it's the new one.
I have the following structure of my files:
Code:

scripts/
        hellow.js
        libs/
              jquery-1.4.js
              strophe.js
              strophe.flxhr.js
              flXHR/
                    checkplayer.js
                    flensed.js
                    flXHR.js
                    flXHR.swf
                    flXHR.vbs
                    swfobject.js
                    updateplayer.swf
hellow.html

Content of hellow.html file (header section only):
Code:

<!-- Standard script links:-->
<script src="scripts/libs/jquery-1.4.js"></script>
<script src="scripts/libs/jquery-ui-1.8.1.custom.js"></script>
<script src="scripts/libs/strophe.js"></script>
<!--flXHR lib and plugin for Strophe -->
<script src="scripts/libs/flXHR/flXHR.js"></script>
<script src="scripts/libs/flXHR/checkplayer.js"></script>
<script src="scripts/libs/flXHR/flensed.js"></script>
<script src="scripts/libs/flXHR/swfobject.js"></script>
<script src="scripts/libs/strophe.flxhr.js"></script>

<script src="scripts/hellow.js"></script>

I use Tomcat as application server, and when i try to view hellow.html using URL: http://localhost:8080/MyTestProject/hellow.html
I can go to all files, not related to flXHR. I can see, for example strophe.js file, when I choose "View Source" in MF and click the link.
But when I try to go to "scripts/libs/flXHR/flXHR.js" I'm getting 404 error code.
But file exists.

After that I opened my hellow.html file not using URL, but using file protocol:
file:///C:/Users/.../MyTestProject/WebContent/hellow.html
When I opened View Source and clicked the "scripts/libs/flXHR/flXHR.js" link I got the file.

So my question is this, why flXHR-related files can not be found by application server (Tomcat6)

savswsoft May 21st, 2010 01:26 AM

It was my fault. I use Eclipse as my development tool. When I moved my flXHR-related scripts to the libs/flXHR folder i didn't refresh the folder. So application server did not see it. IDEA, for example updates it immediately. Now the issue is resolved.

Maybe this thread should be deleted at all? I'm not sure.

Thanks.


All times are GMT -4. The time now is 12:12 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.