Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Feature: Working with SpellCheck.asmx [10063]

$
0
0
From http://spservices.codeplex.com/discussions/353539

Marc,

Is there anything in SPServices that allows you to work with this service? Or anything in the works?

My goal is to be able to spell check single and multi-line fields on a form prior to submission.

Thanks!

Bill
Comments: Hello Marc, I have tried it out ! The webservice spellcheck.asmx cannot be called properly with 0.7.2 I had to update the webservice definition contained in SPServices() as follow to make it work (missing '>' at end of line 2) : case SPELLCHECK: SOAPEnvelope.opheader += "xmlns='http://schemas.microsoft.com/sharepoint/publishing/spelling/' >"; SOAPAction = "http://schemas.microsoft.com/sharepoint/publishing/spelling/SpellCheck"; Also, we are not able to use the parameter "chunksToSpell" as spelled chunks need to be surrounded with <string>myChunkSpell</string> I am not very familiar with your great lib and maybe you wrote a utility function to handle this case. Please find my apologizes if this is a stupid question. Thanks for your time and energy, your work is a piece of art ! Sebastien As reference, you will find my example code : var chunks = "Thhank yoou Marck ;)".split(" "), i = 0; for (i=0; i<chunks.length; i++){ chunks[i] = "<string>" + chunks[i] + "</string>"; } var spellResults = $().SPServices({ operation: "SpellCheck", chunksToSpell: chunks, declaredLanguage: 1036, // use 1033 for english useLad: false, completefunc: function(xData, Status){ ... } });

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>