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









FUNCTION:  WMLBrowser.getCurrentCard

WMLBrowser.getCurrentCard( )
 
The WMLBrowser.getCurrentCard function returns the smallest relative URL of the current card with respect to the base URL. If the current card does not have the same base URL as the WML deck, then an absolute URL is returned.
 
If there is no current card, invalid will be returned.
 
This function does not take a parameter.
 
Code for GetCurrentCardExample.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>
   getCurrentCard example
   </p>
   <do type="accept">
      <go href="GetCurrentCardExample.wmls#findgetcurrentcard()" />
   </do>
</card>

<card id="card2">
<p>
   current card = $(currentcard)
</p>
</card>

</wml>

 
Code for GetCurrentCardExample.wmls
extern function findgetcurrentcard()
{
   var curcard = WMLBrowser.getCurrentCard();
   WMLBrowser.setVar("currentcard", curcard);
   WMLBrowser.go("GetCurrentCardExample.wml#card2");
};

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information