aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes jQuery in action, problem with the examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jQuery in action, problem with the examples" Watch "jQuery in action, problem with the examples" New topic
Author

jQuery in action, problem with the examples

Karim Kiswarday
Ranch Hand

Joined: Oct 01, 2010
Posts: 50

Hi all,
some time ago I learned jQuery by jQuery in action book, and I used a lot the examples included in the book using Firefox.

Now I have tried to run again that examples (principally lab.operation.html - chapter 2) but they don't work anymore and I have to access to them using a webserver.
In the example page, they don't show the "DOM Sample" and "DOM Sample Code", they are simply empty.
In the source code I see there is an ajax request but I 'm pretty sure that before I didn't use a webserver.

At the beginning I thought it was a problem about the browser (maybe some update changed something) but also with other browsers (Chrome, IE, Opera) I have the same issue.
I know you are not sorcerer, but do you have some kind of idea why now they don't call the ajax request?

Thanks,
KK


No fun at the table, no fun in the sack.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61623
    
  67

Karim Kiswarday wrote: and I have to access to them using a webserver.

Do you mean as opposed to simply opening the files directly in the browser? Then yes. Ajax won't work correctly when using the file protocol, the files must be served by an HTTP server.

You can verify this by visiting the online version of the examples at http://www.bibeault.org/jqia2


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jQuery in action, problem with the examples