Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
URL.isValid
URL.resolve
FUNCTION: URL.getBase
URL.getBase()
The
URL.getBase
function returns the absolute URL of the current WMLScript file. The returned URL will not include the fragment portion.
The syntax of a URL is:
scheme://host:port/path;parameters$query#fragment
This function does not take a parameter.
Code for GetBaseExample.wml
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1">
<p>
getBase example
</p>
<do type="accept">
<go href="GetBaseExample.wmls#findgetbase()" />
</do>
</card>
<card id="card2">
<p>
base = $(base)
</p>
</card>
</wml>
Code for GetBaseExample.wmls
extern function findgetbase()
{
var base =
URL.getBase()
;
WMLBrowser.setVar("base", base);
WMLBrowser.go("GetBaseExample.wml#card2");
};
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information