getElementById

Discussions

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?

    thanks

    Threaded Messages (1)

  2. getElementById[ Go to top ]

    simplifying my post:

    I have this:


    <html>
    <head>
    <title>Untitled Document</title>
    </head>

    <body>
    <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>
      </select>
      <input type="submit" name="Submit" value="Submit" onClick="alert(getElementById('wlw-select_key:{actionForm.lsCdTemasDisp}'))">
    </form>
    </body>
    </html>


    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).