rdeigsler#663
When I try to execute a remote script passing a string array, it fails. No error message, it just does not execute. The same script works if I use int, bool, or float data types but not with strings. Below is an example of the javascript that calls the server code and the server method also. I realize in the following example that a string is not the correct data type for the Blur method, but it is just an example. I get the same problem with any method trying to accept a string.
Also, when I change the code to pass just one argument, it fails no matter what data type. Hence, the extra argument in the preceding example.
Thank you for your help,
Rick Deigsler
<script>
function blurImage()
{
if (!bmv.invokeRemoteMethod("BlurImage",new Array("10","1")))
{
alert("Please wait until previous operation is completed.");
}
checkExceptions();
}
</script>
[RemoteScriptingMethod]
public void BlurImage(string radius, string pos)
{
bmvEditor.Bitmap.UndoRedoEnabled = true;
bmvEditor.Bitmap.Transforms.Blur((float)Convert.ToInt32(radius), Transforms.BlurType.Gaussian);
}
Also, when I change the code to pass just one argument, it fails no matter what data type. Hence, the extra argument in the preceding example.
Thank you for your help,
Rick Deigsler