Jump to content

[SOLVED] Myspace Registration Form...


unsider

Recommended Posts

http://signups.myspace.com/index.cfm?fuseaction=signup

 

Do not enter any input, and scroll down to click the "Sign Up" submit button.

 

After, you will notice the red outlines on the incomplete form boxes, and the the notices as to why the error occured.

 

Im curious, are there any articles as to how this done, or if someone can briefly explain, or point me in the right direction.

 

Just specifically the JS (red outlines, notices to the right, etc..)

 

Greatly appreciated. Thanks.

Link to comment
Share on other sites

If you view their source, you can see the code they use.

 

When you submit, it calls a javascript function to check the values to see if they are what is expected.  If they aren't it uses javascript to change their CSS values, such as input.style.border = "1px solid red"; for the wrong ones.  Then they use an onclick event to popup a div that has the appropriate error message (Stored at the bottom of their script).

 

CSS, hiding/showing divs, all manipulated by javascript.

 

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.