Consuming a web service in javascript

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Consuming a web service in javascript

    -- This is a copy of a post I made in ColdFusion General Discussion --

    Hi,

    I am currently working on a project where we need to dynamically refresh lists
    based on user input in certain fields. So far we used MSXML to gather an XML
    file from ColdFusion in "runtime" as the visitor pick options and type in some
    text. Basically ONE .cfm file equal ONE (or a few) functions that returns an
    XML file.

    I would like to bring this one step further.

    I would like to consume a CFC webservice from Javascript... specifying a
    method and passing arguments. Is there a way to do it? Have anyone been able to
    do it?

    Is there a way to create a webservice object in javascript and then deal with
    it?

    The environment is Internet Explorer-only... so any IE-exclusive method is
    acceptable. I found some documentation by doing a Google search on this, but is
    seems the code isn't working anymore... the articles seems to be 2 years old.

    Many thanks.

    Patrick

    ScottyMTL Guest

  2. Similar Questions and Discussions

    1. Consuming .NET Web Service
      Is anyone consuming a .NET web service that returns multiple records? If so do you know how they are sending the data? thanks.
    2. Problem consuming ASP.NET web service in Flash 2004 MX using Web Service Class (WITHOUT Flash Remoting)
      This problem really has me stumped. I'm wondering if anyone can help me with the following problem: I am using Flash 2004 MX Professional and I...
    3. consuming webservices in VB.net thru javascript
      Hello all, I am creating a webservice in VB.net and accessing thru the client side javascript . I am passing a xmldom object in the script and...
    4. consuming web service
      hi there, I'm new on web services... I've already created a webservice and created the proxy class using wsdl. How can I create a .asp page...
    5. Consuming a web service from VB 6
      Hi, I have written a web service use ASP.NET I can access i from VB 6 via XMLHTTP and everything works fine until I try to pass parameters to...
  3. #2

    Default Re: Consuming a web service in javascript

    I'd have to know what you wanted to do specifically, but you can accomplish
    just about anything with javascript... so I'm gonna say "yes" :))

    Without more details... I couldn't give any real advice except this: in
    Dreamweaver, if you press F1 (or go to Help-Reference), you can
    use the dropdown menu to get the O'REILLY JavaScript Reference - a very helpful
    tool for pting together complex scripts. You said something about refreshing
    textfields upon a certain time index? Well... you can put your fields in
    layers, and then use the javascript function "onAfterUpdate=" to give instant
    updates when new field information is entered. If you want it to be updated in
    bursts... you can change which fields are verified when, and control it that
    way.

    I'm not sure what exactly it is that you want to do here... but these are just
    some things that are often overlooked that are usefull in many a situation :D

    Steel_Cat Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139