1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Problem with OnClick

Discussion in 'C#' started by Supremus, Nov 9, 2006.

  1. #1
    I have a 3 * 3 table that displays 9 jpgs. I want to click on one image and send 2 or 3 parameters to a function that reads/writes the database and redraws the table.

    I am a bit lost on getting the OnClick part to work. I can't get it to call the function.

    <td><img src="<%= maparray(xloc-1,yloc-1)%>" onclick="<%=myfunc 20,20 %>"></td>
     
    Supremus, Nov 9, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #2
    just do it via querystring. Prior to building the Links and Anchors in the Table - just create the links with querystrings with the links.
     
    ccoonen, Nov 10, 2006 IP