|
 |
asp_web_howto thread: JScript Function
Message #1 by "Marcelo" <foros@f...> on Wed, 12 Sep 2001 10:19:37 -0300
|
|
Hi!
I need to use a Jscript function in an include file that allows me to
call it using a parameter, so each time I call the function, with a text
message, I get an alert with that message.
I did this:
if famname = "" then
alertback ('ERROR') (i tried with many " ' , without quotes and
using call but I get this:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'alertback'
/new/leloo/ingresos.asp, line 17
My function is (in an include)
<script language="JavaScript">
function alertback(mensaje)
{
alert(mensaje);
history.back (1)
}
</script>
Any help?
Thanks
Marcelo
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 12 Sep 2001 14:29:13 +0100
|
|
Are you trying to call a client side function from a server side script?
-----Original Message-----
From: Marcelo [mailto:foros@f...]
Sent: 12 September 2001 14:20
To: ASP Web HowTo
Subject: [asp_web_howto] JScript Function
Hi!
I need to use a Jscript function in an include file that allows me to
call it using a parameter, so each time I call the function, with a text
message, I get an alert with that message.
I did this:
if famname = "" then
alertback ('ERROR') (i tried with many " ' , without quotes and
using call but I get this:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'alertback'
/new/leloo/ingresos.asp, line 17
My function is (in an include)
<script language="JavaScript">
function alertback(mensaje)
{
alert(mensaje);
history.back (1)
}
</script>
Any help?
Thanks
Marcelo
Message #3 by "Drew, Ron" <RDrew@B...> on Wed, 12 Sep 2001 09:59:56 -0400
|
|
Seems like you are trying to mix client side and server side script.
What is famname? Variable for Form input field, database field or...
-----Original Message-----
From: Marcelo [mailto:foros@f...]
Sent: Wednesday, September 12, 2001 9:20 AM
To: ASP Web HowTo
Subject: [asp_web_howto] JScript Function
Hi!
I need to use a Jscript function in an include file that allows me to
call it using a parameter, so each time I call the function, with a text
message, I get an alert with that message.
I did this:
if famname = "" then
alertback ('ERROR') (i tried with many " ' , without quotes and
using call but I get this:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'alertback'
/new/leloo/ingresos.asp, line 17
My function is (in an include)
<script language="JavaScript">
function alertback(mensaje)
{
alert(mensaje);
history.back (1)
}
</script>
Any help?
Thanks
Marcelo
|
|
 |