|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Unable to call WMLScript from WML
Hi,
I am trying to call a simple WMLScript function from my WML script. I have gotten the WML pages to work, even a CGI-generated WML page! But for some reason I can't seem to access any WMLScript functions. The examples I am working with are extremely simple so I have a feeling its not related to my actual code but maybe server configuration. Here is my code, any help or suggestions is greatly appreciated. index.wml ----------- <wml> <card id="Welcome" title="Welcome"> <do type="accept" label="NEXT"> <go href="welcome.wmls#doCoice($(page))"/> </do> <p>Choose an option:<br/> <select name="page"> <option value="wml-standings.cgi">Standings</option> <option value="wml-schedule.cgi">Game Schedule</option> <option value="wml-submit.cgi">Submit Result</option> </select></p> </card> </wml> welcome.wmls ---------- extern function doChoice(p) { var url = "http://www.mydomain.com/cgi-bin/" + p; WMLSBrowser.go(url); } httpd.conf ---------- AddType text/vnd.wap.wml wml AddType text/vnd.wap.wmlscript wmls AddType application/vnd.wap.wmlc wmlc AddType application/vnd.wap.wmlscriptc wmlsc AddType image/vnd.wap.wbmp wbmp |
|
#2
|
|||
|
|||
|
well, in the wml file, you have the function spelled Coice
|
|
#3
|
|||
|
|||
|
LOL, sorry. That was just a spelling mistake in preparing my code sample for the post. The actual wml file has the function spelled correctly. Thanks anyways
Camilo Quote:
|
|
#4
|
|||
|
|||
|
The line "WMLSBrowser.go(url);" should be changed to "WMLBrowser.go(url);".
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Unable to call WMLScript from WML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|