Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-28-2002, 10:12 AM   PM User | #1
therry
New Coder

 
Join Date: Jun 2002
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
therry is an unknown quantity at this point
how to call a onclick function that having SQL statement in a image?

Hi,

If I'm having an image and when I onclick on the image, the onclick function should call a function which will do the UPDATE SQL statement .

Ex:

<img......onclick="update()">

function update()
{
update mmpo(table name) set user(field name) = 0;

}

how can I do using ASP & Microsoft SQL?
therry is offline   Reply With Quote
Old 06-28-2002, 03:30 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
never tried this before, not sure if it would work or not...

try using VBScript (Note, this will only work in IE4+)

<script language="VBScript" runat="Server">
Function update()
update mmpo(table name) set user(field name) = 0
End Function
</script>






Please keep in mind that I have no idea if this will work or not even in Internet Explorer. Just one of the random ideas I got.

Happy programming

~Quack
QuackHead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:07 AM.


Advertisement
Log in to turn off these ads.