// Store the color validation Regex in a "static" object off of
// AjaxControlToolkit.ColorPickerBehavior. If this _colorRegex object hasn't been
// created yet, initialize it for the first time.
if (!AjaxControlToolkit.ColorPickerBehavior._colorRegex) {
AjaxControlToolkit.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}
);
}
}); </font>
</div>
Sys.Application.add_init(function() {
// Store the color validation Regex in a "static" object off of
// AjaxControlToolkit.ColorPickerBehavior. If this _colorRegex object hasn't been
// created yet, initialize it for the first time.
if (!AjaxControlToolkit.ColorPickerBehavior._colorRegex) {
AjaxControlToolkit.ColorPickerBehavior._colorRegex = new RegExp('^[A-Fa-f0-9]{6}
);
}
});
But now I'm getting the error "AjaxControlToolkit" is not defined.
Can anyone help?!
Did u put it inside script tags? <scripttype="text/javascript"> </script>
Boddam
Member
347 Points
335 Posts
Re: ColorPickerExtender fails when using SelectedColor
May 02, 2010 06:20 PM|LINK
Did u put it inside script tags? <script type="text/javascript"> </script>