|
July 2, 2000 WMLScript's URL Library Tips: July 2000
Yehuda Shiran, Ph.D.
|
|
The WMLScript URL library supports a rich set of functions for handling absolute and relative URLs. The functions are: isValid(), getScheme(), getHost(), getPort(), getPath(), getParameters(), getQuery(), getFragment(), getBase(), getReferer(), resolve(), escapeString(), unescapeString(), and loadString(). Go to Column 63, The URL Library, to see a detailed definition of each function, including examples. Here is the definition of the loadString() function:
This function returns the content denoted by the given URL and the content type. The syntax is |
| Syntax | loadString(url, contentType) |
| Parameters | url = String, contentType = String |
| Returns | String, Integer, or invalid |
| Examples: | var a = URL.loadString("http://www.docjavascript.com/wireless/mortgage.scr", "text/x-vcard"); |
People who read this tip also read these tips: Look for similar tips by subject: