SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old June 1st, 2004, 09:49 AM
camilorostoker camilorostoker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 camilorostoker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old June 7th, 2004, 02:16 PM
True Power True Power is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 True Power User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well, in the wml file, you have the function spelled Coice

Reply With Quote
  #3  
Old June 7th, 2004, 04:00 PM
camilorostoker camilorostoker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 camilorostoker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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:
Originally Posted by True Power
well, in the wml file, you have the function spelled Coice

Reply With Quote
  #4  
Old October 26th, 2004, 08:57 AM
flyinghigh flyinghigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 47 flyinghigh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m 12 sec
Reputation Power: 4
The line "WMLSBrowser.go(url);" should be changed to "WMLBrowser.go(url);".

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Unable to call WMLScript from WML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway