Re: Javascript Arrgh!!
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="lt;lt;nbsp;Top" Name="Top" onClick="SetActionAndSubmit(this.form, 'search.cfm?cStartLot=Top');" INPUT TYPE="Button" VALUE="gt;gt;nbsp;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="lt;lt;nbsp;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?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Javascript Arrgh!!
Is CatNav the name of your FORM? The Form does not have an onClick method... so this: document.CatNav.onClick="document... wouldn't work...format it like this: INPUT TYPE="Button" VALUE="lt;lt;nbsp;Top" Name="Top" onClick="document.CatNav.action='search.cfm?cStartLot=Top'; document.CatNav.submit()" INPUT TYPE="Button" VALUE="lt;lt;nbsp;Top" Name="Top" onClick="document.CatNav.action='search.cfm?cStartLot=Top';docu ment.CatNav. onClick="document.CatNav.action='search.cfm?cStartLot=Top';docu ment.CatNav.s ubmit()" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Javascript Arrgh!!
I think you can't do it using semi-colons ... you will have to make a function script language="javascript" function doit() { document.CatNav.action='search.cfm?cStartLot=Top'; document.CatNav.submit(); } /script INPUT TYPE="Button" VALUE="lt;lt;nbsp;Top" Name="Top" onClick="doit();" -Message d'origine- De: Brian L. Wolfsohn [SMTP:[EMAIL PROTECTED]] Date: 31 mars, 2000 10:54 À:[EMAIL PROTECTED] Objet:Javascript Arrgh!! 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="lt;lt;nbsp;Top" Name="Top" onClick="document.CatNav.action='search.cfm?cStartLot=Top';document.CatNav .s ubmit()" Brian L. Wolfsohnhttp://www.cus.com CUS Business Systems Ft.Lauderdale,FL Software for Auctioneers (954) 565-5600 Email:[EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRstsbodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Javascript Arrgh!!
At 11:06 AM 3/31/2000 , you wrote: Tanks you vedy,vedy much. works like a charm... 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="lt;lt;nbsp;Top" Name="Top" onClick="SetActionAndSubmit(this.form, 'search.cfm?cStartLot=Top');" INPUT TYPE="Button" VALUE="gt;gt;nbsp;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="lt;lt;nbsp;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?sidebar Brian L. Wolfsohnhttp://www.cus.com CUS Business Systems Ft.Lauderdale,FL Software for Auctioneers (954) 565-5600 Email:[EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.