|
 |
asp_databases thread: Netscape Compatibility Issue
Message #1 by arti_mahobe@h... on Tue, 26 Jun 2001 14:54:03
|
|
Hello Friends,
This is regarding how to display an alert/message box of type -
msgbox("Do you want to save changes",vbYesNo)
This is written in VBScript in ASP. I want to write something like this in
JavaScript as VBScript is not supported in Netscape Navigator. How do I do
this. I have other methods of doing it, but I want to do this in the above
manner only. Please update me with the information.
Arti
Message #2 by Hal Levy <hal.levy@s...> on Tue, 26 Jun 2001 10:04:41 -0400
|
|
You can use the jscript ALERT() function.
p.s. you should have asked this on the javascript list.
Hal Levy
StarMedia Network, Inc.
Intranet Development Manager
> -----Original Message-----
> From: arti_mahobe@h... [mailto:arti_mahobe@h...]
> Sent: Tuesday, June 26, 2001 10:54 AM
> To: ASP Databases
> Subject: [asp_databases] Netscape Compatibility Issue
>
>
> Hello Friends,
> This is regarding how to display an alert/message box of type -
>
> msgbox("Do you want to save changes",vbYesNo)
>
> This is written in VBScript in ASP. I want to write something
> like this in
> JavaScript as VBScript is not supported in Netscape
> Navigator. How do I do
> this. I have other methods of doing it, but I want to do this
> in the above
> manner only. Please update me with the information.
>
> Arti
Message #3 by Andrew Scott <Andrew@c...> on Tue, 26 Jun 2001 16:47:22 +0100
|
|
Yeah it was a javascript question...
ALERT() won't work cos javascript is case sensitive but alert() will
-----Original Message-----
From: Hal Levy [mailto:hal.levy@s...]
Sent: 26 June 2001 15:05
To: ASP Databases
Subject: [asp_databases] RE: Netscape Compatibility Issue
You can use the jscript ALERT() function.
p.s. you should have asked this on the javascript list.
Hal Levy
StarMedia Network, Inc.
Intranet Development Manager
Message #4 by "Drew, Ron" <RDrew@B...> on Tue, 26 Jun 2001 16:49:24 -0400
|
|
You can also put the following within a function...
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var agree=confirm("OK to keep going, Cancel goes back one. OK?");
if (agree)
document.write("OK entered");
else
document.write("Cancel entered");
// End -->
</SCRIPT>
</head>
<body>
<p><center>
<font face="arial, helvetica" size="-2">Have Fun!!<br>
</font>
</center><p>
</body>
</html>
-----Original Message-----
From: arti_mahobe@h... [mailto:arti_mahobe@h...]
Sent: Tuesday, June 26, 2001 10:54 AM
To: ASP Databases
Subject: [asp_databases] Netscape Compatibility Issue
Hello Friends,
This is regarding how to display an alert/message box of type -
msgbox("Do you want to save changes",vbYesNo)
This is written in VBScript in ASP. I want to write something like this in
JavaScript as VBScript is not supported in Netscape Navigator. How do I do
this. I have other methods of doing it, but I want to do this in the above
manner only. Please update me with the information.
Arti
Message #5 by Vivekanand.S@i... on Wed, 27 Jun 2001 09:15:07 +0530
|
|
use
Confirm('Do you want to save changes...');
but you will only get OK,Cancel options.you won't get yes,no,cancel opt
ions
here.
in Javascript.
With Regards
Vivekanand.S
arti_mahobe@h...
otmail.com To: "ASP Databases"
<asp_databases@p...>
06/26/01 cc:
08:24 PM Subject: [asp_databases] N
etscape
Please Compatibility Issue
respond to
"ASP
Databases"
Hello Friends,
This is regarding how to display an alert/message box of type -
msgbox("Do you want to save changes",vbYesNo)
This is written in VBScript in ASP. I want to write something like this
in
JavaScript as VBScript is not supported in Netscape Navigator. How do I
do
this. I have other methods of doing it, but I want to do this in the ab
ove
manner only. Please update me with the information.
Arti
Message #6 by "ARTI MAHOBE" <arti_mahobe@h...> on Wed, 27 Jun 2001 12:30:43 +0530
|
|
but what is the syntax....... How to use alert().
Arti
>From: Andrew Scott <Andrew@c...>
>Reply-To: "ASP Databases" <asp_databases@p...>
>To: "ASP Databases" <asp_databases@p...>
>Subject: [asp_databases] RE: Netscape Compatibility Issue
>Date: Tue, 26 Jun 2001 16:47:22 +0100
>
>Yeah it was a javascript question...
>
>ALERT() won't work cos javascript is case sensitive but alert() will
>
>
>
>
> -----Original Message-----
>From: Hal Levy [mailto:hal.levy@s...]
>Sent: 26 June 2001 15:05
>To: ASP Databases
>Subject: [asp_databases] RE: Netscape Compatibility Issue
>
>
>You can use the jscript ALERT() function.
>
>p.s. you should have asked this on the javascript list.
>
>Hal Levy
>StarMedia Network, Inc.
>Intranet Development Manager=20
Message #7 by Vivekanand.S@i... on Wed, 27 Jun 2001 13:08:35 +0530
|
|
alert is just to cauton user .it cant accept user response.
so use confirm instead
syntax for alertis
alert('lkjlqweqw');
syntax for confirm is
confirm(are you sure');
to check user respponse,u can use
if(confirm('are you sure'))
-----you can write code here
With Regards
Vivekanand.S
"ARTI MAHOBE"
<arti_mahobe@h... To: "ASP Databases" <asp
_databases@p...>
tmail.com> cc:
Subject: [asp_databases]
RE: Netscape Compatibility Issue
06/27/01 12:30
PM
Please respond
to "ASP
Databases"
but what is the syntax....... How to use alert().
Arti
>From: Andrew Scott <Andrew@c...>
>Reply-To: "ASP Databases" <asp_databases@p...>
>To: "ASP Databases" <asp_databases@p...>
>Subject: [asp_databases] RE: Netscape Compatibility Issue
>Date: Tue, 26 Jun 2001 16:47:22 +0100
>
>Yeah it was a javascript question...
>
>ALERT() won't work cos javascript is case sensitive but alert() will
>
>
>
>
> -----Original Message-----
>From: Hal Levy [mailto:hal.levy@s...]
>Sent: 26 June 2001 15:05
>To: ASP Databases
>Subject: [asp_databases] RE: Netscape Compatibility Issue
>
>
>You can use the jscript ALERT() function.
>
>p.s. you should have asked this on the javascript list.
>
>Hal Levy
>StarMedia Network, Inc.
>Intranet Development Manager
Message #8 by Vijay Saste <vijay_saste@y...> on Fri, 29 Jun 2001 01:19:41 -0700 (PDT)
|
|
Hi Arti,
Use the following method.
<script language="javascript">
<!--
function showHello(){
alert("Hello !");
}
//-->
</script>
Note: Javascript is case sensitive.
call this function on click event of a button.
<input type="button" value="show"
onclick="showHello();">
Regards
Vijay
|
|
 |