Results 1 to 3 of 3

Thread: Javascript Loop Through Objects <Resovled>

Threaded View

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Javascript Loop Through Objects <Resovled>

    hello people i have a problem

    out of a database im entering items into a rich textbox javascript control. On the page i am giving each textbox a name such as "txtbody" and with the article id number on the end

    ie so an example name would be txtbody1 if you were editing article 1

    the control requires me to update using the following javascript command

    updateRTE(txtn);

    (txtn) being the textbox name

    so basically how can i make this work

    var frm = document.frmedit;
    frm."conceptRTEvalue"+ctls[i].value = frm.'content'+ctls[i].value;

    the conceptRTEvalue is a hidden field

    ctls is an array populated by spliting an argument which contains the ID numbers

    content is the rich text box


    hope i have explained this ok, and thanks for your help

    Senorbadger
    Last edited by señorbadger; Aug 28th, 2004 at 01:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width