Dave I would... but the actual example is a bit more complicated. Basically, I'm using CSS to create a background image that sits under a form text box. I then use a <a href> around a invisible "spacer.gif" to submit via a mouse click. The site is complicated design wise... I'm only trying to make the designer's layout functional.
~Che -----Original Message----- From: Dave Watts [mailto:[email protected]] Sent: Friday, July 31, 2009 3:55 PM To: cf-talk Subject: Re: Simple JS Question? > Thanks Dave. In isn't quite working. What's interesting is that if I > enter a search term and then hit the enter key, I get the pluses in > the url. If I click the submit button with my mouse, I get the spaces > between the search term in the url. If you hit enter, you're submitting the form. If you click the image - you don't actually have a submit button - you're changing the location object's href property. Why not simplify this, so that when you click the image you submit the form? Just get rid of all the JS, and use <input type="image" src="..."/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325151 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

