homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Common jquery file with parameter passing
Global jquery validation

Msg#: 4549442 posted 2:32 pm on Feb 27, 2013 (gmt 0)

I want to create a global .js file containing JQuery functions common to a set of tasks in any Asp .net web forms. For example, I want to create one file that contains functions related to Forms in my project. This file will contain JQuery functions to Validate Date, range validate, email validate, custom validate, alpha numeric checks, alphabhet lenght checking.
I also want the ability to pass control name to a function as parameter to reuse code.



WebmasterWorld Senior Member 5+ Year Member

Msg#: 4549442 posted 3:16 am on Mar 1, 2013 (gmt 0)

Include the global .js file the same way you include JQuery itself with a script tag, just following it should be OK.

You should be able to use your global functions just like the JQuery global ?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved