954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JavaScript Issue in Mozilla

I've created checkbox and added events to it through js file which is included in the jsp. It works fine in IE but not in Mozilla Firefox 1.5. This is the code fragments.

displayCheckbox.name = "Add_" +productid;
displayCheckbox.id ="Add_"+productid;

displayCheckbox.onclick = EventProducer.registerEventHandler(this, 'toggleSelected', [displayCheckbox, displayLI]);
displaySpan.onclick = EventProducer.registerEventHandler(this, 'clickCheckbox', [displayCheckbox]);
displaySpan.appendChild(displayCheckbox);

var displayA = document.createElement('a');
displayA.onclick = EventProducer.registerEventHandler(this, 'nop', []);
displayA.style.zIndex = Tree.BASE_Z_INDEX + 3;
displayA.className = itemLI.childA.className;
displayA.href = itemLI.childA.href;
displayA.innerHTML = itemLI.childA.innerHTML;
displaySpan.appendChild(displayA);

will you please any one look into that?

ramamoorthy
Newbie Poster
2 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

Shouldnt this be in the Javascript forum and not the Java forum? They are completely different languages.


FYI, appendChild function only works in some browsers in Windows, it does not work in Mac browsers except FireFox and maybe a couple others.

Drew
Junior Poster
166 posts since Apr 2004
Reputation Points: 25
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You