Click here to Skip to main content
11,488,646 members (76,836 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 5: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 Sergey Alexandrovich Kryukov 489
1 OriginalGriff 328
2 Mehdi Gholam 145
3 Sascha Lefèvre 135
4 KarstenK 115
0 Sergey Alexandrovich Kryukov 9,308
1 OriginalGriff 8,352
2 Sascha Lefèvre 3,334
3 Maciej Los 2,956
4 Richard Deeming 2,370

Advertise | Privacy | Mobile
Web01 | 2.8.150520.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