Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rollover submit button in repeating form

Status
Not open for further replies.

rubertoga

Technical User
Jan 4, 2003
22
US
I'm trying to use a recordset to display all records based on a query with a maximum of 5 records displayed on a page. The records are displayed in a table. I need a submit button to take the value of each particular record to the next page via ASP.

I'm trying to use a rollover image to act as a submit button in a form. The code I am using works fine if i want to display just one record per page but as soon as i ask it to display more than one there is no rollover effect and I get the following error message:

"object doesn't support this property or method"

If I use a normal HTML submit button or image button it works just fine and I can display as may records as i like. Any body got any ideas?

The relevant code is below. As you can see i've used dreamweaver to generate the javascript to get the rollover effect.

<form action="history.asp" method="post" name="frmHistory">
<input type="hidden" value="<%=disputeRS("intDisputeID")%>" name="txtDispute">
<input type="hidden" value="<%=strSrcType%>" name="txtSrcType">
<a href="javascript:document.frmHistory.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('viewHistory','','images/viewHistoryOn.jpg',1)"><img src="images/viewHistoryOff.jpg" alt="View History" name="viewHistory" width="175" height="25" border="0"></a>
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top