Calling webservice using javascript
-
I'm calling webserivce using javascript.it's working fine. here i'm populating the dropdown using the result of webservice. and added a (Select from list) item to dropdown.In the dropdown onchange event i'm calling the webservice to fill the another dropdown, here is the problem.when i'm selecting the (select from list) item.no need to call the webserivce and clear the second dropdown list.In this situation i'm planning to use same javascript method to clear the second dropdown. here my javascript function Users_Check(result) { if(result.error) { alert('Error occured while processing.Error Description :-' + result.errorDetail.string); return false; } else { if(result.value!=null) { if(result.value.length>0) { if(result.value[0].length>0) { var tOptArr=result.value[0].split('~'); document.getElementById('ddlGroups').options.length = 0; for(var iLoop=0;iLoop<tOptArr.length;iLoop++) { var opt = document.createElement('option'); document.getElementById('ddlGroups').options.add(opt); opt.text=tOptArr[iLoop]; } } return false; } } else { alert('Unable to get the required information. Check the page scripts.'); return false; } } } this code will call through webserivce but i my case i need to call manually.how can pass the result to this method..