SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Help Me Please!

  1. #1
    SitePoint Member
    Join Date
    Jul 2004
    Location
    India
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help Me Please!

    Hi,
    I am very new to xslt.
    I have used a dhtml menu in my xslt.
    The menu will work like the (priority)Flags menu in MS outlook.
    My problem is..
    Each row of my table has Flag images.Flags onclick will
    display the flagsmenu.The selected flag from the menu
    shud replace the corresponding flag in the table.
    I generate unique ids for the images using generate-id().
    How can i refer the generated id using document.getElementById() in
    my javascript?

    Each menu item(flags) is linked to a function say,
    java_script_:changeimg('BlueFlag')
    The code goes like this...
    function changeimg(imagename)
    {
    if (document.images)
    {
    document.getElementById('FlagOne').src=imagename;
    }
    Here,'FlagOne' is a static id of a flag. So, i have generated unique ids
    for each flag dynamically.How can i refer the generated id using document.getElementById() in my javascript?

    Help Me Please!
    Thanks in advance.
    pkc.

  2. #2
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please do not double-post.

    Go here -> http://www.sitepoint.com/forums/show...90#post1315390


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
  •