I have copied down code behind for webservice and javascript serially .They are as follows:
Here is the code snippet for web service:
public class WebService1 : System.Web.Services.WebService
{
[WebMethod]
public string HelloWorld()
{
return "Hello this is pratik";
}
}
And here goes the code snippnet for the .js file:
function CallWebService()
{
WebService1.HelloWorld(SucceededCallback);
}
// This is the callback function that
// processes the Web Service return value.
function SucceededCallback(result)
{
alert(result);
}
In IE there is no problem in getting the result .But in firefox i get the error :
"
the server method "helloworld" failed with the following error" , but no error is specified in the error window.
For the info,i am using firefox version "3.0.7"
it would be great of you guys out there if you can help me out.Thanks in advance
