Does the form element still have an ACTION tag though? If it does and you removed this until the image was explicitly clicked, and then add it back in with _javascript_ before sumitting - would that work with your embedded control?

Jeremy Coulter wrote:
ok, just to clarify not using any buttons to do the submit. I am using an image, and using _javascript_ to do teh submit.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Phil Middlemiss
Sent: 7 December 2006 14:13
To: NZ Borland Developers Group - Offtopic List
Subject: Re: [DUG-Offtopic] HTML TextArea issue

Is it possible to not have any submit action on the form and use _javascript_ attached to the button instead? I'm guessing that would avoid the form capturing the return press.

Jeremy Coulter wrote:
Yes I see where you are going with that one.  It actually rings a bell. Ihad
this problem one before, and damned if I can remember why/where....as usual
:-(

Jeremy 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Neven MacEwan
Sent: 7 December 2006 12:58
To: NZ Borland Developers Group - Offtopic List
Subject: Re: [DUG-Offtopic] HTML TextArea issue

J

Yes but when you press enter it submits the form, what you could do is
capture the keypress (keyup, keydown?) on the Textarea and handle it
yourself in _javascript_, this may be able to be fudged so ie doesn't auto
submit

I just tested something like it in firefox and if you are on a text input it
submits on enter, it seems the textarea is handled differently between ff
and ie

Neven

Jeremy Coulter wrote:
  
P.s. forgot to say, I surley if I am typing in a textarea its safe to 
assume its GOT the focus??

-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]
On Behalf Of Neven MacEwan
Sent: 7 December 2006 10:40
To: NZ Borland Developers Group - Offtopic List
Subject: Re: [DUG-Offtopic] HTML TextArea issue

J

Which Agent/Browser? If you have a button its prob focused by default 
and enter will submit the page, try focusig the TextArea (in 
_javascript_)

N

Jeremy Coulter wrote:
    
Yeah forgot to mention, Shit enter didn’t work either.
IO created a totally new page, just a form and a textarea, and it 
works.....agh

-----Original Message-----
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]
On Behalf Of Neven MacEwan
Sent: 7 December 2006 10:06
To: NZ Borland Developers Group - Offtopic List
Subject: Re: [DUG-Offtopic] HTML TextArea issue

J

Just to point out the obvious but it is the agent not HTML that 
specifies this behaviour, so which agent are you using, have you 
tried
      
shift enter?
    
HTH

Neven

Jeremy Coulter wrote:
      
Hi All.
totally not Delphi related, hence why this is offtopic, but I have 
put a TextArea in an HTML for, BUT for some reason, when I type I 
cant get the Enterkey to work, i.e. add a new line.
 
Does the TextArea not support the enter key??
 
Thanks, Jeremy

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.9/573 - Release Date: 
05/12/2006


--------------------------------------------------------------------
-
-
--

_______________________________________________
Offtopic mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/offtopic
        
--
Neven MacEwan (B.E. E&E)
Ph. 09 620 1356 Mob. 027 4749 062

New Address Details
===================
MWK Computer Systems
1 Taumata Rd
Sandringham
Auckland

Ph 620 1356
Fx 620 1336

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 
06/12/2006
 
    

      
--
Neven MacEwan (B.E. E&E)
Ph. 09 620 1356 Mob. 027 4749 062

New Address Details
===================
MWK Computer Systems
1 Taumata Rd
Sandringham
Auckland

Ph 620 1356
Fx 620 1336

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 
06/12/2006
 
    

    

--
Neven MacEwan (B.E. E&E)
Ph. 09 620 1356 Mob. 027 4749 062

New Address Details
===================
MWK Computer Systems
1 Taumata Rd
Sandringham
Auckland

Ph 620 1356
Fx 620 1336

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 06/12/2006
 
    

  

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 06/12/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 06/12/2006


_______________________________________________ Offtopic mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/offtopic

No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.409 / Virus Database: 268.15.13/577 - Release Date: 12/6/2006
begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard

_______________________________________________
Offtopic mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/offtopic

Reply via email to