Aria Productions
Welcome!
Aria Productions
Welcome!
Aria Productions
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome to Aria Productions forum...One of the best clans and video makers in the world!
 
HomeLatest imagesRegisterLog in

 

 Using jQuery validation in a sharepoint web part

Go down 
AuthorMessage
raja123
Noob
Noob



Posts : 3
Join date : 2010-08-24

Using jQuery validation in a sharepoint web part Empty
PostSubject: Using jQuery validation in a sharepoint web part   Using jQuery validation in a sharepoint web part EmptyTue Aug 24, 2010 11:55 am

As we all know, a sharepoint page can only have one <form > tag in it. As anyone who wanted to use jQuery validation knows, the validation script needs to run on a form tag.
So how do I use the validation code in a sharepoint web part?

The answer is to run the script against the form that already exists in the page. For example, I had to write a web part with an email address field, and wanted to help the users by validating the text they entered is a valid email address on the client side (I also validate on the server side - just in case someone is running a browser with no script). This is the "Render" override code that I used:


software packaging
Stainless Steel Sheet
Back to top Go down
 
Using jQuery validation in a sharepoint web part
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Aria Productions :: Gaming! :: Tips and tricks-
Jump to: