[thelist] Brain fart html w/asp

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Thu Apr 11 15:19:00 CDT 2002


Are you talking "classic" ASP (ASP 3 and below) or ASP.Net?

onClick(call doit()) should probably be onClick="doit()"

That will correctly call client-side script (whether it's VBScript or
JavaScript).

You can have both client-side VBScript and JavaScript in the same page.  I
think that they're also able to call each other and see each other's global
variables, but I'm not 100% sure.

You can also have both server-side VBScript and server-side JScript in the
same page.

But in order for client-side code to interact in any way with server-side
code, there has to be an HTTP GET or POST.  (Usually, it's a form submit.)

Greg


-----Original Message-----
From: Rob Smith [mailto:rob.smith at thermon.com]
Sent: Thursday, April 11, 2002 2:04 PM
To: 'thelist at lists.evolt.org'
Subject: [thelist] Brain fart html w/asp


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]


Hi thelist,

I'm having a brain fart right now. I know how to do this in javascript, but
how different is it in ASP with HTML

<input type="button" name="Ok" value="Ok" onClick(call doit())>

Is the onClick part right or what do I need to do to call a function when
the button is clicked without using javascript.

Secondly,

can javascript call VBScript functions and the other way around?

-or-

Can you use Javascript and VBScript in the same page, sometimes working
together?

Thanks all

Rob


The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.





More information about the thelist mailing list