unable to call function onload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aashishn86
    New Member
    • Mar 2009
    • 51

    unable to call function onload

    in my form
    i give the user two options,
    either to 'add a new transaction' or delete an existing one.
    the code for it is:
    for add transaction
    Code:
    <table align=center border='1' bordercolor="#ffffff" cellpadding="0" cellspacing="0" class='verdana2' width="100%">
    <tr 
    <td bgcolor='#cccccc' align='middle'> <b><A style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Sans-Serif; TEXT-DECORATION: none" href="Input.asp" ><center>Add New Transaction</center></a></b> </td>
    </tr>
    </table>
    for delete transaction ( use sessions with it)
    Code:
    <td align='left' class='cellDesc'>
    <A style="TEXT-DECORATION: none" href='Input.asp?sessionNum=<%=rsData.fields("ENTRY_NUMBER")%>' >
    <IMG alt="Modify Transaction Details" src ="http://bytes.com/images/configpencil.png" border=0 >
    </A>   
    </td>
    and on input form in the body tag i write
    Code:
    <body onload="test();">
    the function is called , when i am using the 'add new transaction'
    but is not called when i use the 'edit transaction'
    Last edited by jhardman; May 11 '09, 07:07 PM. Reason: Moved to javascript forum. ASP forum is for ASP questions
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Is it edit or delete? Post the generated source code on the page that the function is not called.

    Comment

    Working...