AJAX on Mobile Internet Explorer

Hi!

I try to get AJAX running on a mobile Windows Mobile 5.0 based device
and failed. There should be a JavaScript support but nothing happens.
Have any of you experience with the rails javascripts on a this platform
or are there any hints, documentation on the net?

tia,

Daniel Völkerts schrieb:
[First post]
The docs on

said, that MIE supports JavaScript 5.6 (ECMA-Level 3) and a DOM based on
W3C’s Document Object Model Level 0.

So, I’m not yet a JS guy, but I’ll have to accompish this. Is there a
real chance to port the rails javascripts to this platform?

g,

Hmm, I think that’s a typo… the current version of javascript is
1.6… unless M$ has
some whack-ass numbering scheme of their own. Anyway, I think your
problem is something
other than incompatible javascript versions. Try putting some simple
javascript into a
page and see if it works.

b

I know this doesn’t fix your problem, but i’m doing some work with a
Windows
CE .NET 4.20 device and IE seems to work ok with the AJAX js I’ve used
so
far, although it is slow as mollasses as far as visual effects go (fade,
dragdrop, etc). i probably wont use any effects for the pages accessed
by
this device.

Chris H. schrieb:

I know this doesn’t fix your problem, but i’m doing some work with a
Windows CE .NET 4.20 device and IE seems to work ok with the AJAX js
I’ve used so far, although it is slow as mollasses as far as visual
effects go (fade, dragdrop, etc). i probably wont use any effects for
the pages accessed by this device.

Can you post an example? I tried this

<%= javascript_include_tag(:defaults) %>

Index of AJAX Demo

<%= link_to_remote 'Hallo Sagen',:update=> 'd1', :url=>{:action=>'hello'}%>
Test

and turned on the Mobile Internet Explorer JS errorreporting in the ppc
registry. If I click on ‘Hallo Sagen’ I got an object (null) error (I
haven’t the description on my side yet. I can post it later).

g,

well, i just did some tests…

apparently only the effects appear to work (draggable, etc), but
anything i
that does remote submission (link_to_remote, remote_form_tag) doesn’t
work.
monitoring webrick shows no requests…but the page DOES work in IE and
firefox. i’m not getting any javascript errors in CE however.

Chris

On Fri, Mar 17, 2006 at 11:14:51AM -0500, Chris H. wrote:
} well, i just did some tests…
}
} apparently only the effects appear to work (draggable, etc), but
anything i
} that does remote submission (link_to_remote, remote_form_tag) doesn’t
work.
} monitoring webrick shows no requests…but the page DOES work in IE
and
} firefox. i’m not getting any javascript errors in CE however.

Sounds like XMLHttpRequest may not be available on the CE version of IE.
If
you have any kind of support relationship with Microsoft you might want
to
check on it. Also, if you give me the details (various software
versions) I
will consult my sources.

The results of the following HTML may be instructive as well:

AJAX test

AJAX test

} Chris
–Greg

Gregory S. schrieb:

  alert("HTTP request failed: status "+this.xhr.status);
alert("Found a modern XMLHttpRequest object.");
  } catch (failed) {

}
}

AJAX test

} Chris

Sounds great. I’ll give it a try tomorrow and will although post my
configuration and version info.

I haven’t had to do anything to get script error dialogs when there is a
script error

Chris H. schrieb:

I haven’t had to do anything to get script error dialogs when there is a
script error

What version are your running on? I’ve Windows Mobile 5.0 (Dell Axim X51
Xscale-ARM) incl. Windows Mobile Internet Explorer (version?!?). I
looked up MSDN to find that hack so my guess was that this is a generell
Windows Mobile 5 problem. There are no option pane which control that
behaviour.

g,

Greg,

Sure enough, IE on Windows CE does not apparently support any form of
XMLHttpRequest. All tests failed.

Chris

Chris H. schrieb:

work in IE and firefox. i’m not getting any javascript errors in CE
however.

Yes the error reporting is disabled by default, you have to put it on
with a registry key
CURRENT_USER\Software\Microsoft\InternetExplorer\Main

new dword ShowScriptErrors 1

g,

interesting bit of information

honestly, i don’t know much about the device, other than it runs Windows
CE
.NET 4.20 and the HTTP User Agent is reported as Mozilla/4.0
(compatible;
MSIE 6.0; Windows CE). other than that, I don’t know much else about
it.
The device is a PSION TEKLOGIX 7535 handheld scanner.

yeah, but my device is a Windows CE .NET 4.20 device but does not appear
to
have MSXML.

On Fri, Mar 17, 2006 at 01:06:25PM -0500, Chris H. wrote:
} interesting bit of information
}
} pocketpcdn.com - Judi Online

Yeah, that’s sort of what I thought. MSXML is what provides the
XMLHttpRequest object on IE, and it looks like the Pocket PC 2000
Standard
ediition doesn’t include it. It looks like all later editions of Pocket
PC
or WinCE do, though.

–Greg

Daniel Völkerts schrieb:

Sounds great. I’ll give it a try tomorrow and will although post my
configuration and version info.

Here is my test result. Put the code from Chris into
rails\ajax\public\xhr.html and pointed my Mobile IE
to http://192.168.0.4:3000/xhr.html.

Loads without an error, mmm, that says that he evaled the JS propably,
right?

Know I click on the Button … and failed due no modern XmlHTTPReq.
Object. Damned! Thanks for the testscript Chris I’ll looking on the net
if we can install a MSXML package.

TIA,

Gregory S. schrieb:

According to that web page, and everything else I can find on the MSDN
site, you should have MSXML3, if not MSXML4. See if you can download it or
if it’s an optional component you didn’t install or something.

Windows Mobile 5 hadn’t it too. Try to install it at any way an post my
results. Thanks for the hint to the pocket community.

Daniel Völkerts schrieb:

Gregory S. schrieb:

According to that web page, and everything else I can find on the MSDN
site, you should have MSXML3, if not MSXML4. See if you can download
it or
if it’s an optional component you didn’t install or something.

Windows Mobile 5 hadn’t it too. Try to install it at any way an post my
results. Thanks for the hint to the pocket community.
Rejected, see above post.

On Fri, Mar 17, 2006 at 01:31:45PM -0500, Chris H. wrote:
} yeah, but my device is a Windows CE .NET 4.20 device but does not
appear to
} have MSXML.

According to that web page, and everything else I can find on the MSDN
site, you should have MSXML3, if not MSXML4. See if you can download it
or
if it’s an optional component you didn’t install or something.

–Greg

} On 3/17/06, Gregory S. [email protected] wrote:
} >
} > On Fri, Mar 17, 2006 at 01:06:25PM -0500, Chris H. wrote:
} > } interesting bit of information
} > }
} > } pocketpcdn.com - Judi Online
} >
} > Yeah, that’s sort of what I thought. MSXML is what provides the
} > XMLHttpRequest object on IE, and it looks like the Pocket PC 2000
Standard
} > ediition doesn’t include it. It looks like all later editions of
Pocket PC
} > or WinCE do, though.
} >
} > --Greg
} >
} > _______________________________________________
} > Rails mailing list
} > [email protected]
} > http://lists.rubyonrails.org/mailman/listinfo/rails
} >