Results 1 to 4 of 4

Thread: Execute a function by click on image (Resolved)

  1. #1

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    Angry 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

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    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.

  3. #3

    Thread Starter
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478

    Resolved

    Forgot to put script tag in front of function
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    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
  •  



Click Here to Expand Forum to Full Width