From the sounds of it, I don't think it'll require hidden frames. Sounds
like what you need is a global variable to keep track of the
lastSelected textarea box, use the onfocus event to update the value of
lastSelected to the name of that text box. Then just have a button next
to the field you want to copy and have it set the value of the
lastSelected name to the value of the text box being copied from.

Does that make sense? Is that what you're trying to do?

Steve Nelson

Jim McAtee wrote:

> I've got an application with a form containing several textareas.
> This
> application is going to manage several thousand records, and the text
> in
> these fields, on average from 100 to 200 characters, will all be
> entered by
> hand.  I'm looking for a way to ease the initial data entry by
> allowing a
> user to copy into the form from existing records.
>
> So, is this possible (CF5):
>
> I'd like the user to be able to copy (on a per-field basis, rather
> than by
> record) from existing data that's been entered into the table.  I'm
> thinking
> of a drop-down select input, plus a button, next to each textarea
> where a
> user could select a related record (there would be anywhere from a
> dozen to
> perhaps 100 possible selections available in the select box).
> Clicking the
> button will plop the text from the other record into the field.
>
> If the number of selections were smaller, or the text to be copied
> were
> shorter, I'd just use _javascript_, with all possible text strings
> "preloaded"
> into JS arrays when the form is generated.  In this app I'll have to
> submit a
> request to the server, get a returned value and somehow pass this into
> the
> form field - without submitting the form itself.
>
> I'm guessing that if this is doable it's going to involve some
> fiddling with
> hidden frames...
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to