Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 21st, 2004, 02:11 AM
PKC PKC is offline
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default document.getElementById().

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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
document.getElementById doesnt work in master page vikram_bendre ASP.NET 2.0 Professional 7 August 11th, 2010 11:50 AM
Using typeOf with getElementById() atcs2152 Javascript 2 December 16th, 2005 08:19 AM
Using getElementById Frank Huddleston XML 4 November 11th, 2005 01:44 PM
getElementByID error lian_a Javascript How-To 1 December 21st, 2004 01:42 AM
'getElementById()' anshul Javascript How-To 1 September 1st, 2004 03:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.