Wrox Home  
Search P2P Archive for: Go

  Return to Index  

beginning_javascript thread: Prompt() problem with Internet Explorer


Message #1 by "Tony Ryan" <trnet@o...> on Tue, 9 Jul 2002 02:51:41
Howdy
For some reason, when i use the Prompt() method, it won't display the text inside 
the brackets. e.g.

var x=prompt("Enter your name", "Type Your name Here")

When I run it in Netscape for Mac, it works fine but when I run it in IE for Mac, a 
dialog box appears without the "Enter your name" text. The dialog box has 
everything else like normal except the message text.

Even if I try the code below, a dialog box appears as normal but no "Hello".

prompt("Hello")

I have tried changing the script language to differnet versions of JavaScript and 
changed the document type but to no avail.

It used to work last time I tried about 3 months ago.

Any ideas would be gretly appreciated.

Tony
Message #2 by Jonathan Gold <jonnygee@p...> on Mon, 08 Jul 2002 21:12:09 -0700
Tony, it works fine in Win98 MSIE 6.0. I just cut and pasted it from your
post. Here's my code:

		<body>

		<script language="JavaScript">

		var x=prompt("Enter your name", "Type Your name Here")
		x=prompt("Hello")

		</script>

		</body>

Both prompt boxes come up as expected with whatever they're supposed to have
in them.



Jonathan Gold
jonnygee@p...

-----Original Message-----
From: Tony Ryan [mailto:trnet@o...]
Sent: Monday, July 08, 2002 7:52 PM
To: Beginning JavaScript
Subject: [beginning_javascript] Prompt() problem with Internet Explorer


Howdy
For some reason, when i use the Prompt() method, it won't display the text
inside
the brackets. e.g.

var x=prompt("Enter your name", "Type Your name Here")

When I run it in Netscape for Mac, it works fine but when I run it in IE for
Mac, a
dialog box appears without the "Enter your name" text. The dialog box has
everything else like normal except the message text.

Even if I try the code below, a dialog box appears as normal but no "Hello".

prompt("Hello")

I have tried changing the script language to differnet versions of
JavaScript and
changed the document type but to no avail.

It used to work last time I tried about 3 months ago.

Any ideas would be gretly appreciated.

Tony

Message #3 by "christopher ducker" <cducker@e...> on Tue, 9 Jul 2002 09:16:20 -0700
ooh this is fun:)

works fine in win2k netscape6 and ie5
my advice. jack the mac

chris


----- Original Message -----
From: "Jonathan Gold" <jonnygee@p...>
To: "Beginning JavaScript" <beginning_javascript@p...>
Sent: Monday, July 08, 2002 9:12 PM
Subject: [beginning_javascript] RE: Prompt() problem with Internet Explorer


> Tony, it works fine in Win98 MSIE 6.0. I just cut and pasted it from your
> post. Here's my code:
>
> <body>
>
> <script language="JavaScript">
>
> var x=prompt("Enter your name", "Type Your name Here")
> x=prompt("Hello")
>
> </script>
>
> </body>
>
> Both prompt boxes come up as expected with whatever they're supposed to
have
> in them.
>
>
>
> Jonathan Gold
> jonnygee@p...
>
> -----Original Message-----
> From: Tony Ryan [mailto:trnet@o...]
> Sent: Monday, July 08, 2002 7:52 PM
> To: Beginning JavaScript
> Subject: [beginning_javascript] Prompt() problem with Internet Explorer
>
>
> Howdy
> For some reason, when i use the Prompt() method, it won't display the text
> inside
> the brackets. e.g.
>
> var x=prompt("Enter your name", "Type Your name Here")
>
> When I run it in Netscape for Mac, it works fine but when I run it in IE
for
> Mac, a
> dialog box appears without the "Enter your name" text. The dialog box has
> everything else like normal except the message text.
>
> Even if I try the code below, a dialog box appears as normal but no
"Hello".
>
> prompt("Hello")
>
> I have tried changing the script language to differnet versions of
> JavaScript and
> changed the document type but to no avail.
>
> It used to work last time I tried about 3 months ago.
>
> Any ideas would be gretly appreciated.
>
> Tony
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
> http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
> http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>



  Return to Index