if it was me I would remove the form.

Put the event onKeyUp="javascript:entermessage()" and then in the
entermessage check that the key up was indeed return (enter = 13).

Then you remove the need for the unwanted form tags.


On 6/12/07, Phillip M. Vector <[EMAIL PROTECTED]> wrote:
>
> That did it! THANK YOU! :)
>
> Dinner wrote:
> > I don't know if there is an "onenter" input attribute... that might be a
> > problem.
> >
> > In your case tho, I think you could just do this, and fake the enter
> > key listener (since it's in a form, enter is bound by default to
> submit).
> > I think.
> >
> > <form onsubmit="entermessage();return false;">
> >
> > Which I hope would fire every time enter is pressed, but don't know
> > for sure.
> >
> > Otherwise you'd have to listen for a keypress, I guess, and see if
> > the key pressed was the enter key.  I've got some examples of that
> > lying around if you need it.  The interweb has 'em too.
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280891
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to