Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

jQuery - First Tutorial And I Cant Get It To Work!


  • Please log in to reply

#1
BARROS

BARROS

    Member

  • Member
  • PipPipPip
  • 511 posts
Hey,

Just started reading the jQuery Visual Quick Start guide by Peachpit and I have just started the 1st tutorial. My problem is that I can't get it to work...have tried in Firefox, IE and Chrome - not working.
I have included the page for you to download and check. When you click the "Stripe" button on the page, it should chage the 3rd paragraph's background to cyan. This does not happen, even thought the code is the exact same as in the book?!?

Can someone please help as this is stressin me out already! lol

Cheers,

-Lee

Attached Files


Edited by BARROS, 25 September 2009 - 07:27 PM.

  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Whatever editor you are using is not coding HTML properly:

Result: 0 errors / 6 warnings

line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 4 column 2 - Warning: <script> attribute "js�" lacks value
line 4 column 2 - Warning: <script> escaping malformed URI reference
line 17 column 2 - Warning: <style> inserting "type" attribute
line 31 column 1 - Warning: <p> attribute "id" has invalid value "�third�"
line 36 column 1 - Warning: <form> lacks "action" attribute
Info: Document content looks like HTML 4.01 Transitional
Info: No system identifier in emitted doctype


Remove the invalid HTML characters and add a proper document type. If you need a proper HTML Editor link, let me know.
  • 0

#3
BARROS

BARROS

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 511 posts
Hi,

Im using Notepad++, I added in a valid DOCTYPE line at the top of the html page and tried again. Still no luck. Its still throwing up the same errors. See attached picture :)

Cheers,

Attached Thumbnails

  • error.jpg

  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Didn't read that list did you? Just adding a doctype is not going to fix the problem. Correcting the illegal HTML characters may not either, but it gets you down to the actual problem. Heck, it might even work after that.
  • 0

#5
BARROS

BARROS

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 511 posts
Tried goin through the list of errors but still no solution. I can't believe the book is telling me to write this code when it doesn't even work!

Just gona leave it and move on to some other books/tutorials. Cheers for your help though!
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP