#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    5
    Rep Power
    0

    JavaScript variables passed to java variables


    Hello,

    I am trying to pass a variable that is given it value on onchange

    </select></td>
    <td align=center><select onchange = "setTandemSwitchString()" name="switchListTable" size="10">
    <%= switchListInfo%>
    </select></td></tr>

    this calls setTandemSwitchString()

    function setTandemSwitchString()
    {

    strSwitch = document.eoFrame.switchListTable.options[document.eoFrame.switchListTable.options.selectedIndex].value;

    document.eoFrame.switchList.value = strSwitch;



    }
    I am trying to send strSwitch variable back to the bean so I need it to pass it back as a java variable.

    any suggestions?
    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Location
    Dublin
    Posts
    413
    Rep Power
    14
    I've had trouble going the other way - passing Java strings to javascript objects - in Netscape only (IE5&6, anyway, were fine).

    As such, I'd be interested to hear of any solution you come across....

    (not much help - sorry!)

IMN logo majestic logo threadwatch logo seochat tools logo