|
July 13, 2002 Calling the IsPrime Web Service from DHTML Tips: July 2002
Yehuda Shiran, Ph.D.
|
|
In Column
106 we explained how to consume Web services through Microsoft Internet Explorer.
There are three HTML items you need to add to your page to enable it to consume
Web services:
isprime TABLE has two rows. The first row includes an entry field for the number to be tested and a button to invoke the check. The second row includes a DIV element that displays the answer, via an innerHTML update. The ID of the input field is "testValue" and the ID of the result DIV is "theResult2". The button calls isPrimeNumber() when clicked. Here is the HTML code:
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: |