For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > July 2004 > JavaScript include and Pocket PC Internet Explorer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JavaScript include and Pocket PC Internet Explorer
WL

2004-07-18, 3:59 pm

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



Martin Honnen

2004-07-18, 3:59 pm



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/

WL

2004-07-18, 3:59 pm

Hi Martin,

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

Thanks again

Wim

"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:%23lv0UmMbEHA.212@TK2MSFTNGP12.phx.gbl...
>
>
> WL wrote:
2002[color=darkred]
..js[color=darkred]
>
> 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/
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com