Web tier: servlets, JSP, Web frameworks: getElementById

  1. getElementById (1 messages)

    Hi i am using bea weblogic on publishing portlet applications, now my problem is that when i set an id to a tag, the portal appends the name of the porlet among other things... a sample id can be Porlet_4_1wlw-select_key:{actionForm.cdTipoJDC}

    To solve that problem i need to use a bea javascript function, getNetuiTagName("myNormalId") and that retreives me the complex id described.

    Now i am using:
    var availableList = document.getElementById(getNetuiTagName("availableOptions"))

    That works great on ie but on mozilla i receive null. I thing that is for the use of { } in the id name. I tried with scape characters \{ \} and the same result.

    am I wrong, mozilla doesn't support complex ids?


    Threaded Messages (1)

  2. getElementById[ Go to top ]

    simplifying my post:

    I have this:

    <title>Untitled Document</title>

    <form name="form1" method="post" action="">
      <select name="wlw-select_key:{actionForm.lsCdTemasDisp}" multiple>
       <option value="2">My Option</option>
    <option value="1">My Option 1</option>
      <input type="submit" name="Submit" value="Submit" onClick="alert(getElementById('wlw-select_key:{actionForm.lsCdTemasDisp}'))">

    how can i retrieve the select element on mozilla? (like i am using a framework i can't change the name or put something beyond (like the id).