Welcome Guest Search | Active Topics | Sign In | Register

Spellchecker Options
mhorrell
Posted: Monday, November 7, 2011 8:05:21 AM
Rank: Member
Groups: Member

Joined: 11/2/2011
Posts: 10
I just purchased your product and so far it has been Great! I am new to scripting and I cant figure out how to combine spellchecking with a button I use to add date to my server?? I have a command button that I need to fire off the spellchecker and if there are no errors and the data to my sql server?? Please help...
eo_support
Posted: Monday, November 7, 2011 9:45:53 AM
Rank: Administration
Groups: Administration

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

Thank you very much for your business. We won't be able to advice on implementation about your specific scenario though. We can only provide information that are generic in nature and are directly related to our product.

From the SpellChecker's point of view, you can either triger it directly by setting the SpellChecker's StartButton to the ID of your button, or start it through JavaScript. The code to start the spellchecker through JavaScript would be something like this:

Code: JavaScript
var spellChecker = eo_GetObject("SpellChecker1");
spellChecker.start();


Once the SpellChecker starts, there is NO WAY for you to detect whether there is an error or not. You can only detect whether user has decided to correct an error. You can handle the SpellChecker's ClientSideOnCorrectError event to be notified whenever user corrects an error. The code will be something like this:

Code: JavaScript
function on_correct_error()
{
    //your event handling code here.
    ....
}


Code: HTML/ASPX
<eo:SpellChecker ClientSideOnCorrectError="on_correct_error" ....>
....
</eo:SpellChecker>


Once user closes the SpellCheckerDialog, the dialog's ClientSideOnEnd event will be called. You can handle that event if you need to perform additional action when user closes the dialog.

Hope this helps.

Thanks!
mhorrell
Posted: Monday, November 7, 2011 2:33:48 PM
Rank: Member
Groups: Member

Joined: 11/2/2011
Posts: 10
Not really! It would have been nice if you atleast pointed me at your example instead of me having to try and fail, just to find the example that spellchecks a grid and then posts back the results to the server! Frustrating!
eo_support
Posted: Monday, November 7, 2011 3:07:01 PM
Rank: Administration
Groups: Administration

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

There are plenty of samples and documentations that are included in the product and you can take a look of them as needed. However the purpose of those samples and documentation are to help you to understand how to use our product, not for you to just find something that matches exactly what you wanted to do so that you could copy and paste. We have thousands of customers all with different scenarios, so it's not possible for us to have samples that cover every scenario. The best we can do at here is to point you to the right direction so that you can work out the rest.

Thanks


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.