|
-
Jun 14th, 2004, 09:03 AM
#1
Thread Starter
Frenzied Member
Execute a function by click on image (Resolved)
Hi folks,
I try to execute a function by clicking on an image.
I have a table with in the last column an image.
By clicking in this image (trash can) the table must be remade but the line where the click was triggered must be deleted from db.
I got the code to delete the record.
Problem is I can't trigger this function onclick.
The error i retrieve is
FunctionName is not defined
Someone had this prob before ??
Advanced thanks Swatty
Last edited by swatty; Jun 30th, 2004 at 09:37 AM.
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Jun 14th, 2004, 10:38 AM
#2
Frenzied Member
I presume you're using ASP? Which is server side ONLY - therefore, you need to redirect it to another page, which handles the DB and thereafter sends it back to the page it was to first.
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Jun 30th, 2004, 09:37 AM
#3
Thread Starter
Frenzied Member
Resolved
Forgot to put script tag in front of function
Code:
If Question = Incomplete Then
AnswerNextOne
Else
ReplyIfKnown
End If
cu Swatty
-
Jun 30th, 2004, 12:36 PM
#4
Frenzied Member
Re: Resolved
Originally posted by swatty
Forgot to put script tag in front of function
DOH; forgot this is also a vbscript section, my bad
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|