Log in

View Full Version : How to use .js files (containing javascript code) on Pocket PC.


Fausto70
07-12-2004, 06:07 PM
Hi to everybody,
I have on my apache server some html/javascript pages. I put a lot of javascript code inside a .js file, that I load by the html command:
<script language=JavaScript src="file.js"></script>
If the client is a normal PC with IE5.5 no problem...

The problem is when the client if a pocket PC with Pocket Internet Explorer. (I tried it with the emulator always on PC).
In that case it seems that the .js file is totally ignored.

For me is very important to use a .js file, because the my target is to hold it on the cache of the client, so to avoid to download every time a lot of javascript code.

Any suggestion?
Thank You very much in Advance

Robb Bates
07-12-2004, 07:06 PM
I do believe your problem lies in the fact that PIE doesn't natively handle javascript. It can handle Jscript which I believe is some sort of javascript subset.

You'll have to get a third party browser like Netfront that can handle javascript.

Anyone may correct me if I'm wrong.

Robb

Milky28
07-12-2004, 07:50 PM
True, PIE uses JScript instead of JavaScript - although I believe the problem here is that PIE doesn't recognize external .js files. You will probably have to embed the script within the page.