Home Search Member List Faq Register Login  
UltimateSpell
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?

Thread Starter: fotstein   Started: 02-08-2010 10:33 AM   Replies: 22
 Karamasoft Support Forums » General Discussions » UltimateSpell » Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
 Printable Version    « Previous Thread   Next Thread »
  08 Feb 2010, 10:33 AM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
I found this solution in another thread:

eval('UltimateSpellAsYouTypes["' + textBoxID + '"].AddEventHandler("blur", function(evnt) { HandleBlur("' + textBoxID + '", evnt) });');

I got rid of eventautowire and went back to my earlier code but with the EVAL, this has resolved my issue.

  
  08 Feb 2010, 10:34 AM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?

dupe


  
  08 Feb 2010, 11:15 AM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
Ugh nevermind, it is still doing the same thing...


function UpdateDescSpell(results, userContext, methodName) {

var textbox = UltimateSpellAsYouTypes[userContext];

textbox.SetSpellText(results);

alert(textbox.GetSpellText);

}


The alert is showing the correct text, so somehow after this thing runs it is resetting the text.  But if I run it a second time, it works fine.  The only other event handler I have is the onfocus one which just clears out the box and that one is working.


  
  08 Feb 2010, 5:51 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
It seems that you either add the same event handler more than once or the event handlers are not added at the right time when the UltimateSpell control is fully loaded on the client-side.

We are not able to help you on this by looking at your code fragments unless you send us a self-contained web app that we can try it in our test environment. Thanks.

  
  08 Feb 2010, 10:49 PM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?

Ok I have been able to duplicate this in a simpler page and also found the problem.  I am using the ajax toolkit, when I remove the following lines it fixes my issue:

        <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true">
            <Services>
                <aspTongue TiederviceReference Path="wsLookup.asmx" />
            </Services>
        </cc1:ToolkitScriptManager>

Unfortunately taking this out is not an option, please let me know if this is a known issue, I am going to see if I can simplify my page any more and then I will email it to you.


  
  08 Feb 2010, 11:08 PM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
I just emailed a self contained project, I look forward to hearing back from you.  I really hope to get this resolved soon.
  
  09 Feb 2010, 12:14 PM
Karamasoft is not online. Last active: 9/8/2010 11:48:21 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,334
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
We couldn't reproduce the issue in our test environment and every time we made a change in the textboxes, it replaced the text with "New Text" properly regardless of whether the web service exists in the page or not. We looked at your code and it seems that you defined the UltimateSpell1 control at the top and created the _OnLoad event handler on it. It might be possible that when the _OnLoad event handler fires on it, the other UltimateSpell control client-side objects might not be fully loaded into the page. Therefore, you have two options:

1) Move the UltimateSpell1 control to the bottom of your page (at least after the GridView control and the UltimateSpellEv control).

2) Call the AddHandlers method using the window.setTimeout method instead of calling it directly as follows:

window.setTimeout('AddHandlers()', 1000);

  
  09 Feb 2010, 2:48 PM
fotstein is not online. Last active: 3/10/2010 10:43:11 AM fotstein

Top 10 Posts
Joined on 02-03-2010
Posts 32
Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?
Thanks very much, a combo of the above two suggestions seems to have resolved all my issues.  I really appreciate the help.

  
 Page 2 of 2 (23 items) « 1 2
Karamasoft Support Forums » General Discussions » UltimateSpell » Re: How do I use [ultimateSpellId]_OnLoad() with spellcheck in a gridview?

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.