SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Feb 2005
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to pass a dynamic value at a method called dynamically injavascript

    <html>
    <body>
    I want to pass a parameter value in the foloowing <br>
    codein the method at mtr<br>
    "<a href="javascript:void(swapAreaText(mtr))">X</a><br>';"
    i.e.
    menu2[0]='<a href="javascript:void(swapAreaText(mtr[i]))">A</a><br>';<br>
    menu2[1]='<a href="javascript:void(swapAreaText(mtr[i]))">B</a><br>';<br>
    menu2[2]='<a href="javascript:void(swapAreaText(mtr[i]))">C</a><br>';<br>
    menu2[3]='<a href="javascript:void(swapAreaText(mtr[i]))">D</a><br>';<br>
    menu2[4]='<a href="javascript:void(swapAreaText(mtr[i]))">E</a><br>';<br>

    when a drop down menu apears, i want call the specifc method depending on the value of i
    </body>
    </html>
    Last edited by jsissiberia; Feb 18, 2005 at 06:08.


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
  •