Take this simple form snippet: <form action="searchResults.cfm"> <input name="searchField" type="text" value="#url.searchField#"> <a onmouseover="(window.status='Search...'); return(true);" href="javascript:location.href='searchResults.cfm?searchField=' + document.top_search.searchField.value;"><img src="/images/button.gif" alt="" width="20" height="18" border="0"></a> </form>
Using JS, how can I replace all spaces with plus (+) signs? Can it be done "inline", or must I create a JS function? Basically, I want the URL on the results page to look something like this: http://mydomain.com/searchResults.cfm?searchField=blue+tennis+racket Thanks, Che ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:325147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4