At 4:36 PM +0800 4/25/01, Mak Wing Lok wrote:
>sorry for the OT, but i do read the solution for the problem here before
>how can i format the text field i submitted by <textarea>? espcially on how
>can i detect the <enter> where user type on the <textarea>?
As I understand what you are asking:
You want to determine where in a text field (textarea) a user entered
information:
this is XXXXX text in to which...
where XXXXX is the text the user entered.
Unfortunately you can't really do this with normal means (JavaScript)
on the client side. JavaScript has an onSelect event handler (in
some versions on some browsers), but it is not well implemented.
On the server-side you could compare before and after versions, but
that gets messy if the user makes multiple insertions.
The easiest, most universal approach appears to be client-side
Flash... (and it would be easier if Flash supported regexp).
HTH
Dick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists