Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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)
  #2 (permalink)  
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



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


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