I don't think that the form object in ie4 has an onClick method, the button does.
Also (and this is just a style thing) I think I'd break the onClick into a seperate
function like this:
<script>
function SetAction(oForm, sAction){
oForm.action = sAction;
};
function SetActionAndSubmit(oForm, sAction){
SetAction(oForm, sAction);
oForm.submit();
};
</script>
<INPUT TYPE="Button" VALUE="<< Top" Name="Top"
onClick="SetActionAndSubmit(this.form, 'search.cfm?cStartLot=Top');">
<INPUT TYPE="Button" VALUE=">> Bottom" Name="Bottom"
onClick="SetActionAndSubmit(this.form, 'search.cfm?cStartLot=Bottom');">
etc...
A bit more readable?
HTH
Larry
>>> [EMAIL PROTECTED] 03/31/00 08:53AM >>>
Can any of you javascript gurus out there lend a helping hand ???
This works in netscape 4.x, but fails in i.e. 4 with a message that says :
"object doesn't support this property or method."
It looks like it's failing on the semi-colon after the word top
Changing the type from button to submit, makes the onclick "work", but the
cstartlot does not get passed onto the next page.
fyi, there will be 3 or 4 of these buttons in the form, each with a
different startlot that needs to be passed onto search.cfm.
<INPUT TYPE="Button"
VALUE="<< Top"
Name="Top"
onClick="document.CatNav.action='search.cfm?cStartLot=Top';document.CatNav.
onClick="document.CatNav.action='search.cfm?cStartLot=Top';document.CatNav.s
ubmit()">
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.