Click here to Skip to main content
11,923,046 members (63,002 online)
Rate this:
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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151125.3 | 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