Actually,

You are right, I am in a bad habit of intranet applications where the only
browser to be used is IE.

Under Mozilla products (Firefox etc..) you DO need to wrap the form tag for
rendering. I am not sure if this is true with V2.0 of firefox but you did
jog my memory on Netscape doing just that.

Sorry to maybe have mislead anyone on that...


Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273



-----Original Message-----
From: Dinner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 13 June 2007 9:58 AM
To: CF-Talk
Subject: Re: OnEnter issues

On 6/12/07, Andrew Scott wrote:
>
> 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.


I've got a habit, I think I picked it up from Netscape, of putting form
fields in form tags, because IIRC, it wouldn't render the form field
if it wasn't in one.

Probably something long past being needed, but with the DOM
being what it is, it's sometimes nice to have a wrapper for form
type stuff.

Also, if you do it right, you can have you your code gracefully degrade,
when someone isn't using javascript.  (probably not an issue in an
app that relies on AJAX ;-}).

I've got a 1 page example of some dojo JS that wraps a "normal"
site in dojo-gooey-ness (Including forms and img/img areas!).
I will share it for a million dollars in small unmarked bills. Or if asked.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:280917
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to