473,775 Members | 2,340 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.


MyTestWML.wml
-------------------------

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC
"-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.or g/DTD/wml_1.1.xml">
<wml>

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

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

</wml>


test.wmls
--------------

extern function HelloWML()
{
Dialogs.alert(" Hello from HelloWML");
}
Mar 16 '08 #1
2 4552
rush2pooja
3 New Member
hi,

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
bazm
6 New Member
Hi,

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

2
2662
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 cookie is present, then the rest of the html page should load. I'm able to get function to detect...
4
4292
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 have 'gotcha's':
1
2641
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 add a new one. After the edit is complete I want to make the panel again VISIBLE=False, as well as...
0
3091
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 "WMLBrowser.go('http://....../demo2.php')" , the variable "HTTP_REFERER" in server would be NULL. So how can I send a "Referer" head to...
3
1901
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 ************************************************************************************************* callingFn1.wml
4
13034
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 master page doesnt execute????? thought master page Load event gets called even when pages are in...
1
2834
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 ....
0
1791
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 ...
4
3875
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'
0
9621
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9915
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7463
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5358
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4014
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
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.