473,545 Members | 1,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How call WMLscript function on wml Page load

6 New Member
Hi All,

I have just finished a website with Html/javascript and I'm now trying
to create a similar website to work over WAP. Please can anybody help me
negotiate a roadblock?? I hope it is just plain ignorance on my part(or dimness!).

I need to do quite a bit of initialisation when a wml page is loaded so I need
to call a function on page load. After some research my attempt is below.
Either it does not work or the alert() in the wmlScript is failing. Or I'm just in a mess!

I would be very grateful for any suggestions.


<?xml version="1.0"?>
"http://www.wapforum.or g/DTD/wml_1.1.xml">

<script language="WmlSc ript" type="text/WmlScript" src="test.wmls" > </script>

<body onload="test.wm ls#HelloWML();" >
<form >
<textarea name="Text" id="TextBox" rows="10" cols="60"
style="backgrou nd-color:mistyrose ; color:blue;">



extern function HelloWML()
Dialogs.alert(" Hello from HelloWML");
Mar 16 '08 #1
2 4543
3 New Member

u said u have made an html page....so retreiving the data from database and displaying it is done using jsp.....so how does the same thing apply to wap?
how can u run jsp files in wap...?plz help
Mar 17 '08 #2
6 New Member

If you read the post you'll see that I have just finished a website with Html/javascript - thats finished and working fine. Now I'm trying to develop a WAP website - other than the underlying logic they are unrelated.
Mar 17 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

by: shree | last post by:
Hi all, I'm trying to call javascript function via onLoad but running into a problem. I would appreciate any help and suggestion. My application is as follows. When a page loads, I want to check whether the vistor has the site's cookie present in their browser. If its not present, then to redirect user to a login page (script). If the...
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage I know I need to call a function that will save data but I'm not sure exactly when to call this function. I've tried two ways and both seem to...
by: keith.walter | last post by:
My first asp.net app is almost "done" and I am stuck. Here is my situation: I have a "mother" page add_customer.aspx and a"child" user control add_group.ascx. On the mother page is an "add group" button that makes the the panel inwhich the add_customer control resides VISIBLE=True. On the control, the user can edit the list of groups, or...
by: rogowski | last post by:
the question is: If we click "<GO HREF='http://....../demo2.php' SendReferer='true'/>" in a WML page which from "http://....../demo1.php", the server would get the environment head variable "HTTP_REFERER" = "....../demo1.php". But in WMLScript, if we use "URL.loadString('http://....../demo2.php')" or...
by: archu007 | last post by:
Hi frds I have downloaded WMLProof is a simulator and WMLEditor I have wriiten WML application and called a function from the wml file I wrote the function in WMLScript When I run the Application using WMLProof Its giving error The following is code wriiten in ...
by: faraz | last post by:
I have a javascript function that i want to call masterpage load method called. I cant add onLoad event of body or table in master page. I have put the call to script function in <form>, it works on every pageLoad. seems my problem is solved. But when the pages uses UpdatePanel and it gets asynchronously postback. the function call at...
by: bazm | last post by:
Hi all, Anybody know where I can get WMLScript compiler? Nokia Mobile Internet Toolkit seems to have been removed by Nokia. Attempts to download give < this object is blocked > message. Thanks ....
by: bazm | last post by:
Hi all, I need to poll (AJAX/HTTP) a wap web server from mobile browsers - is WMLScript the only Client-side script possibility? (Not phone browsers running on Windows xxxx - I managed to do that!) Thanks ...
by: Ty | last post by:
Hello all, I am creating a web site with Visual Stuido 2008. I am trying to use a java script file to create a busybox for login from this page http://blogs.crsw.com/mark/articles/642.aspx. I am using a master page senerio. The erro I'm getting is 'busyBox' is not a member of 'ASP.login2_aspx'
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.