Er,
function mute( ){ return false; }
Not false( );
On Sun, Jun 28, 2009 at 2:15 PM, David McGuigan <[email protected]>wrote:
> <a href=" javascript: functionThatExistsButReturnsFalse( ); " onclick="
> etc( ); ">etc</a>
>
> So, accessible to your page you'd have a
>
> function mute( ){ return false( ); }
>
> And then your buttons could be:
>
> <a href=" javascript: mute( ); "
> onclick="document.getElementById('form').reset()">clear</a>
> <a href=" javascript: mute( ); "
> onclick="document.getElementById('form').submit()">send</a>
>
> You may be able to return false directly in the href, I can't remember.
>
>
>
> On Sun, Jun 28, 2009 at 12:33 PM, Matthew Smith <[email protected]>wrote:
>
>>
>> I have a cfform with the following for reset and submit:
>> <a href="##" onclick="document.getElementById('form').reset()">clear</a>
>> <a href="##" onclick="document.getElementById('form').submit()">send</a>
>>
>> Clicking the reset button clears the form but the goes to domain.com/#,
>> as does the submit button.
>>
>> I can change it to this, and it works properly, but hovering over the
>> button does not change the pointer.
>> <a onclick="document.getElementById('form').reset()">clear</a>
>> <a onclick="document.getElementById('form').submit()">send</a>
>>
>> Any way to do this?
>>
>> Thanks.
>>
>>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:324033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4