WMLScript Developer's Guide

[Cover] [Previous Section] [Next Section] [Index]

Current chapter: Chapter 8 - Calling WMLScript Functions from WML
Section 44 out of 57 total sections , Section 3 out of 6 sections in this chapter


Declaring a WMLScript External Function

To make a WMLScript function accessible to a WML file, you must include the extern directive in the function declaration. The external function must also include at least one variable or parameter if the WML and WMLScript are to interact in complex and interesting ways.

For example:

extern function myfunction(cardURL)  
{  
var state;  
var action;  
var image;  
... //function implementation  
}  

[Cover] [Previous Section] [Next Section] [Index]


Part Number DKDS-41-002, UP.SDK Release 4.1, December 2000

Copyright © 1994-2000 Openwave Systems Inc. All rights reserved.
Please send comments and questions to sdk-doc-comments@openwave.com.