Archived from groups: microsoft.public.pocketpc (
More info?)
Thankyou for your help, I have used the documentation that you suggest but it
seems to me that the script should get further than line 4 before failing
even if I'm pessimistic about the scripting support available! It generates
an error on the line the script starts on. The browser version does support
the window.location method as I've sucessfully used it previously but I'm
unsure about the document.getelementbyid method. Having said that, even if
this line does fail it should give a different line number in the error
message if this statement was causing the problem. It would be helpful to
have the DOM for this version of the browser but I can only find more recent
ones - any pointers to this information would be gratefully recieved.
Thanks,
Chris
"Mauricio Freitas [MVP]" wrote:
> PIE uses a very limited subset of Javascript called JScript. Perhaps you
> should have a look at MSDN:
>
>
http://msdn.microsoft.com/library/default.asp?url=/libr...
>
> (link may need Copy&Paste).
>
> There's a design overview and you probably will have to investigate
> alternatives to implement what you want.
>
> Also, I'd say you're running Pocket PC OS 2002, which may not support
> everything you need. You could look on MSDN for the stand alone emulator and
> try your pages on that instead.
>
> --
> Mauricio Freitas, Microsoft MVP Mobile Devices
>
http://www.geekzone.co.nz
> Bluetooth guides:
http://www.geekzone.co.nz/content.asp?contentid=449
> Software for Pocket PC and Smartphone:
http://www.geekzone.co.nz/store
> Software for Pocket PC directly on your device:
>
http://www.geekzone.co.nz/inhand.asp
>
>
>
>
> "Chris_h" <Chrish@discussions.microsoft.com> wrote in message
> news:0CF81BA6-2447-455E-B515-9ABE88F81C7F@microsoft.com...
> > I'm trying to build a simple site for pocket PC for a concept demonstrator
> > to
> > load an audio stream. It works fine in IE on the Pc but throws up 'line:4
> > char:1 object doesn't support property or method' when I try it on a
> > pocket
> > PC. The handheld is a rather antiquated HP jornada running PocketPC
> > 3.012039.
> > I can't find any details of the PIE version. Hopefully this is simple to
> > solve - I've not really used handheld devices much before.
> >
> > Thanks all,
> >
> > Chris
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> > <html>
> > <head>
> > <script type="text/javascript">
> > function trafficfm()
> > {
> > var area=document.getelementbyid("regionSelect")
> > //alert(area.selectedIndex)
> > var data=document.getelementeyid("qualitySelect")
> > //alert(data.selectedIndex)
> > if (data.selectedIndex==0)
> > {
> > switch(area.selectedIndex)
> > {
> > case 0:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > case 1:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > case 2:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > case 3:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > case 4:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > default:
> > window.location="
http://217.204.58.75/asx/HA_NAT_Low.asx"
> > break
> > }
> > }
> > else
> > {
> > switch(area.selectedIndex)
> > {
> > case 0:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > case 1:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > case 2:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > case 3:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > case 4:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > default:
> > window.location="
http://217.204.58.75/asx/HA_NAT_pda.asx"
> > break
> > }
> >
> > }
> > }
> > </script>
> > <link rel="stylesheet" type="text/css" href="ce.css" media="handheld" />
> > </head>
> > <body>
> > <img id="logo" src="images/solid_logo.gif"/>
> > <h1>Internet Radio Trial</h1>
> > <div id="pda_select">
> > <h2>Select a Region and Quality</h2>
> > <form>
> > <select id="regionSelect">
> > <option>North East</option>
> > <option>North West</option>
> > <option>Midlands</option>
> > <option>South West</option>
> > <option>South East</option>
> > </select>
> > <select id="qualitySelect">
> > <option>High</option>
> > <option>Low</option>
> > </select>
> > <input type="button" value="Go!" name="listen" onclick="trafficfm()"/>
> > </form>
> > </div><!--pda_select-->
> > </body>
> > </html>
>
>
>