JavaScript Issue in Mozilla

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2006
Posts: 2
Reputation: ramamoorthy is an unknown quantity at this point 
Solved Threads: 0
ramamoorthy ramamoorthy is offline Offline
Newbie Poster

JavaScript Issue in Mozilla

 
0
  #1
Jan 28th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 167
Reputation: Drew is an unknown quantity at this point 
Solved Threads: 7
Drew's Avatar
Drew Drew is offline Offline
Junior Poster

Re: JavaScript Issue in Mozilla

 
0
  #2
Jan 28th, 2006
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 Gauderman
ASP / MSSQL Coder
http://www.iportalx.net - My ASP Portal
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC