JavaScript, Windows Mobile, and document.getElementById()

N

Nathan Sokalski

I am working on a small web application for mobile devices. I have been
testing it on a device running Windows Mobile 6. So far, my biggest problem
has been JavaScript compatibility. The first thing I have come to that I
have been unable to find a workaround for is document.getElementById(). I
have been trying to get properties from different elements using this, but
it doesn't seem to be returning anything. I have been doing my testing using
a simple window.alert(); to display a property value, and everything works
as expected on my desktop, but Windows Mobile 6 is just displaying an empty
dialog box. Can somebody help me here? Thanks.
 
E

Evertjan.

Nathan Sokalski wrote on 26 mei 2009 in
microsoft.public.scripting.jscript:
I am working on a small web application for mobile devices. I have
been testing it on a device running Windows Mobile 6. So far, my
biggest problem has been JavaScript compatibility. The first thing I
have come to that I have been unable to find a workaround for is
document.getElementById(). I have been trying to get properties from
different elements using this, but it doesn't seem to be returning
anything. I have been doing my testing using a simple window.alert();
to display a property value, and everything works as expected on my
desktop, but Windows Mobile 6 is just displaying an empty dialog box.
Can somebody help me here? Thanks. --

The operating system dos not specify the j[ava]script engine per se.

I suppose you mean in a browser, since getElementById() stipulates that,
but if so what browser?

IE? Opera6.8? OperaMini? etc?
 
N

Nathan Sokalski

I know that I mean IE, but I don't know what version since I can't find
anywhere that specifies the version. But I do know that I am using the
version that came with Windows Mobile 6; if you can tell me how to find out
what version I am using, I would appreciate that as well as finding the
answer to my original question. Thanks.
--
Nathan Sokalski
(e-mail address removed)
http://www.nathansokalski.com/

Evertjan. said:
Nathan Sokalski wrote on 26 mei 2009 in
microsoft.public.scripting.jscript:
I am working on a small web application for mobile devices. I have
been testing it on a device running Windows Mobile 6. So far, my
biggest problem has been JavaScript compatibility. The first thing I
have come to that I have been unable to find a workaround for is
document.getElementById(). I have been trying to get properties from
different elements using this, but it doesn't seem to be returning
anything. I have been doing my testing using a simple window.alert();
to display a property value, and everything works as expected on my
desktop, but Windows Mobile 6 is just displaying an empty dialog box.
Can somebody help me here? Thanks. --

The operating system dos not specify the j[ava]script engine per se.

I suppose you mean in a browser, since getElementById() stipulates that,
but if so what browser?

IE? Opera6.8? OperaMini? etc?
 
J

Jesse Houwing

Hello Nathan,
I know that I mean IE, but I don't know what version since I can't
find anywhere that specifies the version. But I do know that I am
using the version that came with Windows Mobile 6; if you can tell me
how to find out what version I am using, I would appreciate that as
well as finding the answer to my original question. Thanks.

Try document.all.elementname (or in a different case...) this version of
IE is based on a very old version of the desktop IE. The one that will come
with windows Mobile 6.5 and later should solve all your issues.

Jesse
Nathan Sokalski wrote on 26 mei 2009 in
microsoft.public.scripting.jscript:
I am working on a small web application for mobile devices. I have
been testing it on a device running Windows Mobile 6. So far, my
biggest problem has been JavaScript compatibility. The first thing I
have come to that I have been unable to find a workaround for is
document.getElementById(). I have been trying to get properties from
different elements using this, but it doesn't seem to be returning
anything. I have been doing my testing using a simple
window.alert(); to display a property value, and everything works as
expected on my desktop, but Windows Mobile 6 is just displaying an
empty dialog box. Can somebody help me here? Thanks. --
The operating system dos not specify the j[ava]script engine per se.

I suppose you mean in a browser, since getElementById() stipulates
that, but if so what browser?

IE? Opera6.8? OperaMini? etc?
 
R

robgbne

I am working on a small web application for mobile devices. I have been
testing it on a device running Windows Mobile 6. So far, my biggest problem
has been JavaScript compatibility. The first thing I have come to that I
have been unable to find a workaround for is document.getElementById().

Have you tried document.all?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top