[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

How I can create client script that execute in Pocket PC???

Ricardo TIneo

5/31/2002 7:51:00 PM

Hi..
I'm developing a web application to IE Pocket PC in
ASP.NET..
I am fighting with a problem.. the client script no
execute!
I tried to do this:

<html>
<head>
<title>Prueba</title>
</head>
<script language=vbscript >
<!--
Sub Mensaje()
MiTexto.value ="Hola"
End Sub
-->
</script>
<body >
<input type="button" value="Pruebas" id="MiBoton"
onclick="Mensaje">
<br>
<input type="text" size id="MiTexto">
</body>
</html>

In IE Win32-based the client script run successfull,
whereas in IE PocketPC-based no...

any suggestions please...

regards...
4 Answers

Craig Deelsnyder

6/3/2002 3:27:00 AM

0

You have to put your controls in a form. Also, try using for the onclick

<input type="button" value="Pruebas" id="MiBoton"
onclick="javascript:Mensaje();">

BTW, Pocket IE will not display JavaScript errors. It will just stop
executing the Javascript at that point. The only way to debug is using
alert() statements.


"Ricardo Tineo" <rtineo@t-gestiona.com.pe> wrote in message
news:9e3601c208cb$dc0ce0d0$9ae62ecf@tkmsftngxa02...
> Hi..
> I'm developing a web application to IE Pocket PC in
> ASP.NET..
> I am fighting with a problem.. the client script no
> execute!
> I tried to do this:
>
> <html>
> <head>
> <title>Prueba</title>
> </head>
> <script language=vbscript >
> <!--
> Sub Mensaje()
> MiTexto.value ="Hola"
> End Sub
> -->
> </script>
> <body >
> <input type="button" value="Pruebas" id="MiBoton"
> onclick="Mensaje">
> <br>
> <input type="text" size=15 id="MiTexto">
> </body>
> </html>
>
> In IE Win32-based the client script run successfull,
> whereas in IE PocketPC-based no...
>
> any suggestions please...
>
> regards...


Ricardo TIneo

6/3/2002 6:38:00 PM

0

Hi.. i try put my controls in a form, but still not
working...
It will be because I am proving it in the emulator??

regards,
Ricardo
>-----Original Message-----
>You have to put your controls in a form. Also, try using
for the onclick
>
><input type="button" value="Pruebas" id="MiBoton"
>onclick="javascript:Mensaje();">
>
>BTW, Pocket IE will not display JavaScript errors. It
will just stop
>executing the Javascript at that point. The only way to
debug is using
>alert() statements.
>
>
>"Ricardo Tineo" <rtineo@t-gestiona.com.pe> wrote in
message
>news:9e3601c208cb$dc0ce0d0$9ae62ecf@tkmsftngxa02...
>> Hi..
>> I'm developing a web application to IE Pocket PC in
>> ASP.NET..
>> I am fighting with a problem.. the client script no
>> execute!
>> I tried to do this:
>>
>> <html>
>> <head>
>> <title>Prueba</title>
>> </head>
>> <script language=vbscript >
>> <!--
>> Sub Mensaje()
>> MiTexto.value ="Hola"
>> End Sub
>> -->
>> </script>
>> <body >
>> <input type="button" value="Pruebas" id="MiBoton"
>> onclick="Mensaje">
>> <br>
>> <input type="text" size=15 id="MiTexto">
>> </body>
>> </html>
>>
>> In IE Win32-based the client script run successfull,
>> whereas in IE PocketPC-based no...
>>
>> any suggestions please...
>>
>> regards...
>
>
>.
>

Ricardo TIneo

6/3/2002 7:34:00 PM

0

Hi.. i try put my controls in a form, but still not working...
It will be because I am proving it in the emulator??

regards,
Ricardo

(Andres Sanabria)

6/4/2002 2:29:00 AM

0