Proceed to WirelessDevNet Home Page
Publications, e-books, and more! Community Tutorials Store Downloads, tools, & Freebies! IT Career Center News Home
newnav.gif

Newsletters
EMail Address:



   Content
  - Articles
  - Columns
  - Training
  - Library
  - Glossary
 
   Career Center
  - Career Center Home
  - View Jobs
  - Post A Job
  - Resumes/CVs
  - Resource Center
 
   Marketplace
  - Marketplace Home
  - Software Products
  - Wireless Market Data
  - Technical Books
 
   News
  - Daily News
  - Submit News
  - Events Calendar
  - Unsubscribe
  - Delivery Options
 
   Community
  - Discussion Boards
  - Mailing List
  - Mailing List Archives
 
   About Us
  - About WirelessDevNet
  - Wireless Source Disks
  - Partners
  - About MindSites Group
  - Advertising Information
 
WMLScript Reference WMLScript Reference

WMLScript > URL > resolve()

resolve() - The resolve Function

Usage:  
resolve(baseUrl, embeddedUrl)
Description:  Returns an absolute URL from the given baseUrl and the embeddedUrl according to the rules specified in [RFC2396]. Before executing the rules specified in [RFC2396] the baseUrl is checked. If the baseUrl's path component is an empty string, then a single slash character ("/") is assumed as the path. If the embeddedUrl is already an absolute URL, the function returns it without modification.

Example:
var a = URL.resolve("http://foo.com/","foo.vcf");
// a = "http://foo.com/foo.vcf"
var b = URL.resolve("http://foo.com","c");
// b = "http://foo.com/c"
var c = URL.resolve("http://foo.com","/c");
// c = "http://foo.com/c"
var d = URL.resolve("http://foo.com","?q");
// d = "http://foo.com/?d"
var e = URL.resolve("http://","x");
// e = "http:///x"




Bookmark this page
Sponsors

Search

Eliminate irrelevant hits with our industry-specific search engine!









Wireless Developer Network - A MindSites Group Trade Community
Copyright© 2000-2010 MindSites Group / Privacy Policy
Send Comments to:
feedback@wirelessdevnet.com