Jump to content

Why won't this work?


Username:

Recommended Posts

You don't need to wrap the code within a document ready event if it's within the body -- in-fact if it's within the body it makes more sense not to wrap it within the event. The problem is the position, you're trying to bind the event before you've actually defined the element. Move the JS just after and it would work.

Link to comment
Share on other sites

You don't need to wrap the code within a document ready event if it's within the body -- in-fact if it's within the body it makes more sense not to wrap it within the event. The problem is the position, you're trying to bind the event before you've actually defined the element. Move the JS just after and it would work.

 

Well, it's gonna be a rather large code, so it has to be in a seperate file now anyway haha.

 

http://pictureunrelated.com/screengrabbr/2.30.55-AM_2011-11-29.png

 

It works alright I guess. It's really slow after about "Hello PHPFrea"

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.