c# - Calling a service via Ajax Request -


i trying yo make call service it's not finding reason , think because not calling right way:

how can add response possible error?, better idea.. getting call failed because have in both functions:

function successfunc(response) {      if (200 == response.status) {         alert("call success");     } }  function failurefunc(response) {      alert("call failed");  } 

in order clients accessing web service through ajax, have add attribute declaration web service:

[system.web.script.services.scriptservice()] 

you can read more @ scriptserviceattribute class


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -