I finally got what I wanted. Now my question is if the user types in to the search and hits the <enter> button it submits the form. It does not launch my javascript that is on the button.
Is there any way so when the user hits <enter> to have the button clicked so my javascript is fired and the form is not submitted? <html> <head> <!--- The Callback handler puts text in the window.cfm callback div. ---> <script language="javascript"> var mycallBack = function(){ } <!--- The error handler pops an alert with the error code and message. ---> var myerrorhandler = function(errorCode,errorMessage){ alert("[In Error Handler]" + "\n\n" + "Error Code: " + errorCode + "\n\n" + "Error Message: " + errorMessage); } </script> </head> <body> <cfform name="form1" id="w1"> <cfinput name="query" type="text"> <cfselect name="searchType"> <option value="ALL">All of these words</option> <option value="ANY">Any of these words</option> <option value="EXACT">This exact phrase</option> </cfselect> <cfinput type="button" name="submit" value="Submit" onClick="javascript:ColdFusion.navigate('searchTest.cfm?query=' + document.form1.query.value + '&searchType=' +document.form1.searchType.value+ '','w2',mycallBack,myerrorhandler);"> </cfform> <cfdiv id="w2"></cfdiv> </body> </html> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303688 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4