|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 8
|
Hello, I am running an ASP.Net AJAX Application that dynamically loads a SpellChecker. Everything works in the Spell Checker, except the ClientSideOnError property. I cannot get the control to recognize that it needs to call my JavaScript function. Consequently, I cannot get it to display a localized string for the "No Error" message. I am using version 7.0.27.2. All other strings in the dialog work. Any assistance would be greatly appreciated.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Make sure your custom JavaScript error handler is outside and before your AJAX UpdatePanel.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 8
|
I put a script block between the Head and Body of the ASP.Net Form. It looks like this.
<script type="text/javascript"> <!-- function SpellCheckerError(control, error, message, type, args) { if (error == 'no_error') window.alert('Spell Check Completed - no errors detected'); } Then I assigned the event handler as follows.
((WebControl)wc).ClientSideOnError = "SpellCheckerError";
It doesn't work. It doesn't even fire. The default event handler does.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe the property should be ClientSideOnMessage instead of ClientSideOnError.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/23/2009 Posts: 8
|
That was it. Should your online documentation be updated? Go to localization and you will find that it isn't specifying ClientSideOnMessage. It's specifying ClientSideOnError. Thx. We will be purchasing the product soon.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. It definitely should be corrected. :) Thank you very much for the heads-up!
|
|