944,079 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1859
  • Java RSS
Jan 28th, 2006
0

JavaScript Issue in Mozilla

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ramamoorthy is offline Offline
2 posts
since Jan 2006
Jan 28th, 2006
0

Re: JavaScript Issue in Mozilla

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.
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: jdbc help?
Next Thread in Java Forum Timeline: Site doesnt work Properly





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC