473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

JavaScript include and Pocket PC Internet Explorer

WL
Hi,

I seem to have a bizar problem:

I have a .HTML file with:
<script language="javascript" src="include.aspx"></script>

In the include.aspx (on load) I do:
Response.ClearContents();
Response.ContentType = "text/javascript";
Response.Write ("document.write ('hello world');");
Response.End();

When calling the HTML file in IE I get the required outcome (the
document.write is executed and shows the result).

However, if I call the HTML file in Internet Explorer of my Pocket PC 2002
the document.write seems not be executed. When I use a plain and simple .js
file to "include" it works.

Does anyone have an idea ?

Thanks,

Wim

Nov 18 '05 #1
2 1447


WL wrote:
I seem to have a bizar problem:

I have a .HTML file with:
<script language="javascript" src="include.aspx"></script>

In the include.aspx (on load) I do:
Response.ClearContents();
Response.ContentType = "text/javascript";
Response.Write ("document.write ('hello world');");
Response.End();

When calling the HTML file in IE I get the required outcome (the
document.write is executed and shows the result).

However, if I call the HTML file in Internet Explorer of my Pocket PC 2002
the document.write seems not be executed. When I use a plain and simple .js
file to "include" it works.

Does anyone have an idea ?


Try whether
Response.ContentType = "application/x-javascript";
but that is only a guess as I have no experience with IE Pocket PC.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 18 '05 #2
WL
Hi Martin,

Bullseye ! This works !!! Seems that Pocket IE is a bit pickier than desktop
browsers in this matter !

Thanks again

Wim

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...


WL wrote:
I seem to have a bizar problem:

I have a .HTML file with:
<script language="javascript" src="include.aspx"></script>

In the include.aspx (on load) I do:
Response.ClearContents();
Response.ContentType = "text/javascript";
Response.Write ("document.write ('hello world');");
Response.End();

When calling the HTML file in IE I get the required outcome (the
document.write is executed and shows the result).

However, if I call the HTML file in Internet Explorer of my Pocket PC 2002 the document.write seems not be executed. When I use a plain and simple ..js file to "include" it works.

Does anyone have an idea ?


Try whether
Response.ContentType = "application/x-javascript";
but that is only a guess as I have no experience with IE Pocket PC.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
7
by: Dr John Stockton | last post by:
The following DOS prompt command line, in a Win98 DOS box, cscript //nologo ~tmp.js executes file ~tmp.js as javascript/Jscript. The following batch file, similarly run, executes the same....
9
by: vinodbijlani | last post by:
Guys, I want to access all the <div> tags on my page. below is javascript which is use to access them var divs=document.getElementsByTagName("div"); this works on IE but is failing on Pocket PC...
3
by: rcmail14872 | last post by:
I created a simple Data Access Page and it views fine in Internet Explorer 5.5 on my PC. But when I try to view it on my Pocket PC running Pocket PC 2002 operating system, I get the error message...
0
by: William LaMartin | last post by:
I have recently started checking how accessible my web sites are to the Pocket PC using Pocket Internet Explorer (PIE). The main trouble I have discovered is with aspx pages in which I use an...
3
by: chethana | last post by:
I am using copmaq ipaq pocket pc 2002 h3600 series. This device is synchronized with desk top pc running on windows 2000. I want this pocket pc to be conncted to internet .Kindly help ...
3
by: Daniel Liberman | last post by:
Hi, everyone. That's my environment: - I have a pocket pc (iPAQ h4350) application developed with VSNET2003/C# that has a SQL Server CE Database, running. That's working fine. Obs: the pocket...
11
by: Doug van Vianen | last post by:
Hi, I often like to include some JavaScript coding in my web pages to make them more interesting. Unfortunately, even when this coding is as simple as a check to see what the display width is in...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.