Answer: We clear you WML are not embedded with WML pages.We use WMLScript into the WML pages with their references(WMLScript URLs). Example: <?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="no1" title="Go to URL"> <do type="options" label="Go"> <go href="check.wmls#go_url('R4R')"/>//It contains the reference of WMLScript. </do> </card> </wml> Script is in a file called test.wmls and the name of the function is go_url. We have created an WML page called test.wmls.
extern function go_url(the_url) { if (the_url=="R4R") { WMLBrowser.go("http://www.R4R.co.in/wap.wml") } } extern keyword the function can be called by other functions or WML events outside the .wmls file.To keep a function private and drop the extern keyword.
We clear you WML are not embedded with WML pages.We use WMLScript into the WML pages with their references(WMLScript URLs). Example: <?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="no1" title="Go to URL"> <do type="options" label="Go"> <go href="check.wmls#go_url('R4R')"/>//It contains the reference of WMLScript. </do> </card> </wml> Script is in a file called test.wmls and the name of the function is go_url. We have created an WML page called test.wmls.
extern function go_url(the_url) { if (the_url=="R4R") { WMLBrowser.go("http://www.R4R.co.in/wap.wml") } } extern keyword the function can be called by other functions or WML events outside the .wmls file.To keep a function private and drop the extern keyword. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.