Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Javascript
Hi Experts,
 
My requirement is very simple
 
I have a common.js file with so many functions and my web page having a custom validator for which i need to set ClientValidationFunction to a function which is placed in common.js
 
it always showing a error message the function is not defined.
 
please show me solution to solve this.
 
Regards,
Sabbi
Posted 4-Feb-13 4:12am
sabbi261.8K
Comments
sjelen at 4-Feb-13 10:23am
   
check your javascript, either your function is not declared to be visible from page or there is js error somewhere before function is declared and processig of .js file is aborted.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Make sure you have the script import tag in your page and that this import tag appears before you attempt to make a call to something in that library script.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100