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. Consuming WebService in javascript(Urgent)

Consuming WebService in javascript(Urgent)

Scheduled Pinned Locked Moved ASP.NET
javascripthtmlcomjson
2 Posts 2 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.
  • W Offline
    W Offline
    wEb GuRu
    wrote on last edited by
    #1

    Hi All Well I want to consume a webservice using javascript. I want my client to just Copy/Paste small piece of javascript in HTML. Somewhat like Google Adsense and other API's provided by Google. Please suggest any reference Article/ Project to accomplish this....!

    All the way from Sialkot ...

    M 1 Reply Last reply
    0
    • W wEb GuRu

      Hi All Well I want to consume a webservice using javascript. I want my client to just Copy/Paste small piece of javascript in HTML. Somewhat like Google Adsense and other API's provided by Google. Please suggest any reference Article/ Project to accomplish this....!

      All the way from Sialkot ...

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      wEb GuRu... wrote:

      Well I want to consume a webservice using javascript

      Yeah. It's possible.. You can use XmlHttpRequest object to invoke the webservice.. You should use "POST" instead of "GET" while invoking. (Note: You can use the pure Javascript code to consume the .NET webservice. You don't need to use "htc" for that.) I can give you the example how to comsume the Webservice from Javascript if you want.. I think you probably don't want because there is no relationship between "consuming the webservice from JS" and "I want my client to just Copy/Paste small piece of javascript in HTML. somewhat like Google Ads."

      wEb GuRu... wrote:

      I want my client to just Copy/Paste small piece of javascript in HTML.

      You want your client to copy and paste small piece of Javascript??? so, i will tell them to copy and past. :) btw, who are they??

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."

      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