Click here to Skip to main content
11,645,499 members (80,561 online)
Rate this: bad
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.

Posted 4-Feb-13 4:12am
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
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.

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

  Print Answers RSS
0 814
1 OriginalGriff 650
2 Sergey Alexandrovich Kryukov 438
3 CPallini 436
4 Afzaal Ahmad Zeeshan 418
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 703
2 Afzaal Ahmad Zeeshan 702
3 DamithSL 681
4 CPallini 595

Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2015
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