|
July 12, 2002 Calling the add Web Service from DHTML Tips: July 2002
Yehuda Shiran, Ph.D.
|
|
We have explained in Column 106 how to consume Web services through Microsoft Internet Explorer. There are three HTML items you need to add to your page for it to consume Web services:
add TABLE consists of four rows. You enter the first and second integers in the first and second rows, respectively, where we use INPUT fields. The third line is for putting a total ruler and a button to invoke the addition. The fourth line displays the result, by way of a DIV element: we update its innerHTML. Here is the add TABLE:
Notice the ID of the various fields. The ID of the first number field is "first", the ID of the second number field is "second", and the ID of the result DIV is "theResult1". The Add button invokes the addNumbers() function when clicked.To learn more about JScript .NET, go to Column 112, JScript .NET, Part VI: Creating IE Web Services.
People who read this tip also read these tips: Look for similar tips by subject: |