Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.mobile
RE: Running JavaScript in .NET Mobile WEB Form
Jeff Domkuski
7/22/2002 5:41:00 PM
First, Thanks for your reply. However, I am still a bit confused. How
is the Java script executed? In the WEB Form the "onload" attribute
enables the script to be run when the page is loaded. How is this
accomplished using a Mobile WEB Form? The "onload" attribute is not
available. What are my other options?
Thanks,
Jeff
*** Sent via Developersdex
http://www.develop...
***
Don't just participate in USENET...get rewarded for it!
2 Answers
(Jason Jing)
7/26/2002 8:12:00 AM
0
Hello,
You can use FOR EVENT statement to handle onload event like following:
<body Xmlns:mobile="
http://schemas.microsoft.com/Mobile/WebForm...
<mobile:Form id="Form1" runat="server">
<mobile:Panel id="Panel1" runat="server">
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="isHTML32">
<contenttemplate>
<SCRIPT LANGUAGE="javascript" for="window" EVENT="onload()">
<!--
alert("onload event fired");
//--></SCRIPT>
</contenttemplate>
</Choice>
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>
</body>
Jason Jing
Microsoft Support
This posting is provided "AS IS", with no warranties, and confers no rights.
Regards
Jason Jing
Microsoft Developer Support Engineer
zyjing@microsoft.com
Satisfied customers are my top priority. Please let my manager or me know
what you think of the level of service provided. You can send feedback to
Microsoft Management
managers@microsoft.com?body=Wen%20Yu&subject=DSVFB_Feedback or directly to
my manager, Wen Yu at wenyu@microsoft.com
--------------------
| From: Jeff Domkuski <jdomkuski@pccweb.com>
| References: <Hswth0WMCHA.1816@cpmsftngxa07>
| X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
| Subject: RE: Running JavaScript in .NET Mobile WEB Form
| Mime-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Message-ID: <OweX5YZMCHA.1744@tkmsftngp13>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.mobile
| Date: Mon, 22 Jul 2002 08:41:18 -0700
| NNTP-Posting-Host: 216.17.146.37
| Lines: 1
| Path: cpmsftngxa07!cpmsftngxa06!tkmsftngp01!tkmsftngp13
| Xref: cpmsftngxa07 microsoft.public.dotnet.framework.aspnet.mobile:4336
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.mobile
|
| First, Thanks for your reply. However, I am still a bit confused. How
| is the Java script executed? In the WEB Form the "onload" attribute
| enables the script to be run when the page is loaded. How is this
| accomplished using a Mobile WEB Form? The "onload" attribute is not
| available. What are my other options?
|
| Thanks,
|
| Jeff
|
| *** Sent via Developersdex
http://www.develop...
***
| Don't just participate in USENET...get rewarded for it!
|
Eytan
7/28/2002 4:27:00 AM
0
Hi,
I'm trying to set the focus to a textbox on my mobile web form based on your
example below and with no luck. I don't understand how to set TextBox1 to
get the focus.
Below is the content of my Mobile Web Form, can you please review and advise
what to do to solve my problem?
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" %>
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="MobileWebForm2.aspx.vb" Inherits="WMS.MobileWebForm2" %>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="
http://schemas.microsoft.com/Mobile/...
name="vs_targetSchema">
<body Xmlns:mobile="
http://schemas.microsoft.com/Mobile/WebForm...
<P>
<mobile:Form id="Form1" runat="server">
<mobile:Panel id="Panel1" runat="server">
<mobile:TextBox id="TextBox1" runat="server"></mobile:TextBox>
<mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
<Choice Filter="isHTML32"
Xmlns="
http://schemas.microsoft.com/mobile/html32template"></...
</mobile:DeviceSpecific>
</mobile:Panel>
</mobile:Form>
</P>
</body>
Thanks in advance for your kind help
Eytan.
"Jason Jing" <zyjing@online.microsoft.com> wrote in message
news:sUXfVtGNCHA.5572@cpmsftngxa07...
> Hello,
>
> You can use FOR EVENT statement to handle onload event like following:
>
> <body Xmlns:mobile="
http://schemas.microsoft.com/Mobile/WebForm...
> <mobile:Form id="Form1" runat="server">
> <mobile:Panel id="Panel1" runat="server">
> <mobile:DeviceSpecific id="DeviceSpecific1" runat="server">
> <Choice Filter="isHTML32">
> <contenttemplate>
> <SCRIPT LANGUAGE="javascript" for="window" EVENT="onload()">
> <!--
> alert("onload event fired");
> //--></SCRIPT>
> </contenttemplate>
> </Choice>
> </mobile:DeviceSpecific>
> </mobile:Panel>
> </mobile:Form>
> </body>
>
> Jason Jing
> Microsoft Support
> This posting is provided "AS IS", with no warranties, and confers no
rights.
>
>
> Regards
>
> Jason Jing
> Microsoft Developer Support Engineer
> zyjing@microsoft.com
>
> Satisfied customers are my top priority. Please let my manager or me know
> what you think of the level of service provided. You can send feedback to
> Microsoft Management
> managers@microsoft.com?body=Wen%20Yu&subject=DSVFB_Feedback or directly to
> my manager, Wen Yu at wenyu@microsoft.com
>
>
>
> --------------------
> | From: Jeff Domkuski <jdomkuski@pccweb.com>
> | References: <Hswth0WMCHA.1816@cpmsftngxa07>
> | X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
> | Subject: RE: Running JavaScript in .NET Mobile WEB Form
> | Mime-Version: 1.0
> | Content-Type: text/plain; charset="us-ascii"
> | Content-Transfer-Encoding: 7bit
> | Message-ID: <OweX5YZMCHA.1744@tkmsftngp13>
> | Newsgroups: microsoft.public.dotnet.framework.aspnet.mobile
> | Date: Mon, 22 Jul 2002 08:41:18 -0700
> | NNTP-Posting-Host: 216.17.146.37
> | Lines: 1
> | Path: cpmsftngxa07!cpmsftngxa06!tkmsftngp01!tkmsftngp13
> | Xref: cpmsftngxa07 microsoft.public.dotnet.framework.aspnet.mobile:4336
> | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.mobile
> |
> | First, Thanks for your reply. However, I am still a bit confused. How
> | is the Java script executed? In the WEB Form the "onload" attribute
> | enables the script to be run when the page is loaded. How is this
> | accomplished using a Mobile WEB Form? The "onload" attribute is not
> | available. What are my other options?
> |
> | Thanks,
> |
> | Jeff
> |
> | *** Sent via Developersdex
http://www.develop...
***
> | Don't just participate in USENET...get rewarded for it!
> |
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
RE: Running JavaScript in .NET Mobile WEB Form
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password