Results 1 to 3 of 3

Thread: two questions. forums and embed

  1. #1
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Question two questions. forums and embed

    I'm confused about how to put text on in to a textarea.
    if you had a select list or another textarea where you were moving the text from one area to another.
    you could use push or if you were using select you could use seleced index's name and use it as the value of the textarea right?

    If you wanted to do that with the selected index's value you do the same?


    also I saw a code in a book to use document.write to write out the object and embed tags.

    if I wanted to try and embed WMP or Quicktime and I had the codebase
    would I use try catch to find out what player the person had.

  2. #2
    Join Date
    Feb 2007
    Location
    England
    Posts
    254
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Umm.. confusing question

    1. Getting text from a select to a text area.

    d = document;
    var textAreaElem = d.getElementById("textID")
    var selectElem = d.getElementById("selectID")
    textAreaElem.value = selectElem.options[selectElem.selectedIndex].value

    2. Try and Catch to determine client plugins
    I don't know, give them the option anyway.

    3. document.write use
    Only use it when the page is loading, otherwise it will remove everything else!

  3. #3
    Join Date
    Nov 2006
    Posts
    236
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    document write is that bad.

    I thoug I tryed that index thing before

Bookmarks

Posting Permissions

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