Well thats interesting, I have been testing in Firefox all day. Soooo I
fired up the code in IE and noticed a difference.
IE. Works just fine. Cusor at Top
Firefox. Focus is set, but cursor is set at the end of text.
So focus alone doesn't gurantee that the cursor will be at the beginning of
the text cross browser. Intersting. Thats why I was wondering if there was a
way to specifically set the position.
Jeff
On 12/6/05, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
>
> function selTA()
> {
> document.formname.fieldname.focus();
> }
>
> window.onload = selTA;
>
>
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
>
> -----Original Message-----
> From: J W [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 06, 2005 2:24 PM
> To: CF-Talk
> Subject: OT: Javascript help.
>
> I have been beating my head around for the better part of today trying to
> figure this out..
>
> I am prefilling a textarea with some information.
>
> When the page loads, I would like to set focus to the text area and have
> the
> cursor position set to the first character in the textarea with the
> prefilled info. Is this even possible or am I just missing something
> stupid.
> I have scoured google to no avail...
>
> Thanks,
> Jeff
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226276
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54