473,611 Members | 2,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using WML and WMLScript

28 New Member
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

*************** *************** *************** *************** *************** *************** *******

<?xml version="1.0" standalone="yes "?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.or g/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Calculat e the cube" newcontext="tru e">
<do type="accept" label="Cube Value">
<go href="functions .wmls#cube(resu lt,$(number))"> </go>
</do>
<p>
Enter the number:<br/>
<input type="text" name="number" title="Number:"/>
<br/>
cube result:<u>$(res ult)</u>
</p>
</card>
</wml>


*************** *************** *************** *************** *************** *************** **
This is the code written in "functions.wmls "
*************** *************** *************** *************** *************** *************** **
extern function cube(varName,nu mber)
{
var result;
result = Float.pow(numbe r,3);
WMLBrowser.setV ar("varName",re sult);
WMLBrowser.refr esh();
}


When i run callinFn1>wml file using wmlsimulator its giving the following error

no card with id 'cube(result,2) ' in the document

How to fix this problem its very urgent...
can any one help me in this
Thank u in advance
Archu
Nov 1 '07 #1
3 1891
archu007
28 New Member
hi frds i got half solution
first we have to set the IIS

http://www.securitypronews.com/it/ap...ASPandPHP.html


the following url shows how to include wml files
after doing this the script is running
but here one problem
its returning the string values but not returning integers
plz help me out in this how to return integers from script to wml file

one more help i need is how to navigate to asp page from wml file
i have saved the page with .asp and in wml i navigated to that file
when i run the application its giving the error
as " Unsupported Content-Type: application/x-asp"
how to fix this

plz plz do let me know how to proceed

thank u in advance
Archu
Nov 2 '07 #2
archu007
28 New Member
No reply from any one
ok anyways i got solution for one problem ie accessing asp from wml

giv the whole path of asp file in wml .

<a href="https://loaclhost/wapsamples/wap.asp>go to asp</a>

then its working....
Note: one more thing to remember that there should be virtual directory created for the folder which consists asp pages in wwwroot .

But i didn't get solution how to return integers from wmlscript to wml

one more problem is can we use sqlserver for these applications instead of MsAccess if yes can anyone tell how to do that

thank u
Archu
Nov 2 '07 #3
kenobewan
4,871 Recognized Expert Specialist
Unfortunately, you make it difficult for the experts to answer your questions by not giving enough technical info versions etc. Sorry to say if the solution to your problems is how to reference a hyperlink and which database to use, then I believe that you need to use the stickies, take a course or buy a book.

Not sure what this post had to do with asp.net, but you are welcome to return when you are having problems with your asp.net code. I am closing this post.

MODERATOR
Nov 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5904
by: rawCoder | last post by:
Hi All, I have a *.cer file, a public key of some one and I want to encrypt some thing using this public key. Can someone point me to a sample code for Encrypting some file using X509Certificate ( *.cer file ) so that it can be used to email as attachment. The real part is Encrypting using X509Certificate and CryptoServiceProvider.
1
567
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I want to use a callback from the client side to update webcontrols based on user input without using postback. I am seeking a way to stop the compile errors. using System; using System.Data;
10
2649
by: Christopher Benson-Manica | last post by:
Why can't I use a class destructor in a using declaration: using MyClass::~MyClass; ? -- Christopher Benson-Manica | I *should* know what I'm talking about - if I ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
3
6998
by: domtam | last post by:
Hi there. My goal is to add some script to my home page (which is NOT asp / aspx page, and it is not hosted in IIS) so that any request from mobile browser will be redirect to another page (a wap page which uses asp.net mobile control page). How can I do that? Originally, I planned to use Javascript to do it. <script language="javascript">
3
8255
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0 build with these methods, will appear to encrypt and decrypt, but the resulting decrypted file will be corrupted. I tried encrypting a .bmp file and then decrypting, the resulting decrypted file under .NET 2.0 is garbage, the .NET 1.1 build works...
0
3085
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...
2
4548
by: bazm | last post by:
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...
1
2822
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
1787
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 ...
0
8097
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
8596
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...
0
8561
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8240
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
8411
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...
0
7038
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2546
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
1
1692
muto222
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.