Professional Web Applications Themes

javascript help - Macromedia Dreamweaver

Yesterday, I posted a dilemma I am facing, and got an answer, but wasn't able to try it till today, and it doesn't work. To review: Select box on the left contains all employees. Select box on right is empty when the page loads. Button in the middle allows you to select an employee from the left, and it appears in the right box when the arrow button is clicked. You can do this more than once. This all works fine. Of course, I want it to be able to pass the values in the right box on to the ...

  1. #1

    Default javascript help

    Yesterday, I posted a dilemma I am facing, and got an answer, but wasn't
    able to try it till today, and it doesn't work. To review:

    Select box on the left contains all employees. Select box on right is empty
    when the page loads. Button in the middle allows you to select an employee
    from the left, and it appears in the right box when the arrow button is
    clicked. You can do this more than once. This all works fine.

    Of course, I want it to be able to pass the values in the right box on to
    the next page when I click the submit button. However, nothing gets passed.
    However, when I add a name or two to the right box, and then manually select
    the name(s), it does get passed to the next page. But it isn't practical to
    ask someone to essentially select the names twice.

    When I posted this yesterday, I received advice to add this code to the
    submit button:

    onclick="selectAllOptions(doent.frm.SelectedEmp )"

    (where the form name is frm, and the right box is named "SelectedEmp")

    Like I said in my first paragraph, it doesn't work. I suspect that it is
    related to the fact that in the form tag, I have an onSubmit item, telling
    it to go through the Javascript code I have for validation.

    Anyone know if this could affect this. let me know. If anyone has helpful
    advice, please let me know. I can't believe no one has ever done this
    before. I have seen it countless times. I think.


    middletree Guest

  2. #2

    Default Re: javascript help

    Did you not see my reply?
    Mick

    middletree wrote:
     

    mick_white Guest

  3. #3

    Default Re: javascript help

    I posted this before I saw your reply. Have you seen my reply to your reply?
    It aint' working.


    "mick_white" <com> wrote in message
    news:com... [/ref]
    empty [/ref]
    employee [/ref]
    to [/ref]
    passed. [/ref]
    select [/ref]
    practical to [/ref]
    is [/ref]
    telling [/ref]
    helpful 
    >[/ref]


    middletree Guest

Similar Threads

  1. Include javascript in a javascript file
    By pentool in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: October 28th, 02:55 PM
  2. Replies: 0
    Last Post: November 9th, 02:17 AM
  3. need javascript staff (anyone who knows javascript peroid) (READ)
    By Šark Templer webforumsuser@macromedia.com in forum Macromedia Dynamic HTML
    Replies: 14
    Last Post: January 9th, 01:37 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139