|
|
 |
BOOK: Beginning JavaScript and CSS Development with jQuery
 | This is the forum to discuss the Wrox book Beginning JavaScript and CSS Development with jQuery by Richard York; ISBN: 9780470227794 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning JavaScript and CSS Development with jQuery section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

October 28th, 2009, 04:21 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Try example from chapter two
For whatever reason, I cannot get the Try example 2.2 from chapter two to work. I gewt the following error in firebug:
$ is not defined
Example%202-2. js()Example%202-2. js (line 94)
error source line: [Break on this error] $(document).ready(tmpExample.ready);
I have tested this by copying your code from the download and it still does not work. Any ideas?
Dave
|

October 29th, 2009, 07:00 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
|
|
It sounds like you are not linking to the jquery source file correctly. Check your code inlucdes the correct link and that the jquery. js file is in the correct place:
Code:
<script type="text/javascript" src="jquery.js"></script>
__________________
/- Sam Judson : Wrox Technical Editor -/
|

October 29th, 2009, 12:39 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Nope .. that's not it. I am used to a lot of include files as I do a lot of PHP stuff. I always keep files like this inside a js folder which is inside an assets folder. I double checked that and the path is correct and I awlways, whenever posssible, use site relative links. I have not had a chance to go back to this but will try again soon. It may be I missed a parenthesis or something.
Dave
|

October 29th, 2009, 12:48 PM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 1,359
Thanks: 0
Thanked 31 Times in 31 Posts
|
|
I downloaded the example code and it ran fine first time btw.
__________________
/- Sam Judson : Wrox Technical Editor -/
|

October 29th, 2009, 12:49 PM
|
|
Registered User
|
|
Join Date: Oct 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
OK .. I will try it again. Probably was too tired when trying it and just screwed it up somewhere.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |