Welcome Guest Search | Active Topics | Sign In | Register

ASP.Net 3.5 AJAX Application with SpellChecker Options
Rob
Posted: Wednesday, September 23, 2009 1:48:25 PM
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.
eo_support
Posted: Wednesday, September 23, 2009 1:52:18 PM
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
Rob
Posted: Wednesday, September 23, 2009 3:01:06 PM
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.
eo_support
Posted: Wednesday, September 23, 2009 3:03:40 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe the property should be ClientSideOnMessage instead of ClientSideOnError.

Thanks!
Rob
Posted: Wednesday, September 23, 2009 3:28:01 PM
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.
eo_support
Posted: Wednesday, September 23, 2009 4:04:31 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.