Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Calling webservice using javascript

Calling webservice using javascript

Scheduled Pinned Locked Moved ASP.NET
helpjavascript
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vanamaindia
    wrote on last edited by
    #1

    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..

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups