Set focus on Pocket PC Internet Explorer

Set focus on Pocket PC Internet Explorer

Post by QlBJ » Wed, 22 Sep 2004 23:05:02


I am trying to have a mobile form got to a specific text box when opened.

<script language="javascript">
document.Form1.btnShow.focus();
</script>

This works fine on a Web form, but not on a mobile form. I have seen other
post addressing this problem, but have been unsucessful in implementing them.
In short, how does one set focus on a mobile device. Also, what is a good
reference book for java script specifically for mobile devices.
--
Regards,

Don Riggs
Business Process Improvement
 
 
 

Set focus on Pocket PC Internet Explorer

Post by JuanD » Thu, 23 Sep 2004 05:23:10

Very few (and also expensive) phones support a very narrow version of
JavaScript, most devices usually don't support JavaScript, that's why you
can't put JavaScript into mobile web forms, because the ASP.NET Team left it
out to guaranteed compatibility with most devices.
Try WMLScript instead, you can find a great tutorial at
http://www.yqcomputer.com/

Juan David Gomez A.
Microsoft Certified Professional
Analista de Desarrollo - PSL S.A.
Web and Wireless Banking
Medellin - Colombia

 
 
 

Set focus on Pocket PC Internet Explorer

Post by QlBJ » Thu, 07 Oct 2004 06:41:02

I understand that WMLScript may be the answer and have reviewed the course
and ordered reference books. I still don't see how one sets the focus on a
specific control. This is a question I have seen asked on many newgroups,
but have yet to see an answer on how specifically it is done.