Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2010, 04:16 AM
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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)
 
Old May 21st, 2010, 01:26 AM
Registered User
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.




Similar Threads
Thread Thread Starter Forum Replies Last Post
flXHR issues maverickr BOOK: Professional XMPP Programming with JavaScript and jQuery 6 March 13th, 2014 03:30 PM
Getting started with Chapter 3 - flXHR problem gkamp BOOK: Professional XMPP Programming with JavaScript and jQuery 17 January 13th, 2012 06:48 PM
flXHR problem. unable to get started yaronfa BOOK: Professional XMPP Programming with JavaScript and jQuery 4 April 22nd, 2010 07:06 AM
flXHR Security Exception with Dig grantcv1 BOOK: Professional XMPP Programming with JavaScript and jQuery 3 April 15th, 2010 01:09 AM
flXHR question... msanders BOOK: Professional XMPP Programming with JavaScript and jQuery 2 March 10th, 2010 08:02 PM





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