javascript - Scriptaculous problem in IE -


We have a very troubling problem with Scriptaculous and Internet Explorer 7/8, we have two on the same page, But only one of them is doing the job (the first one). I hope this is a few simple mistakes in my implementation, but I can not find any decent documents. Hope anyone can help here.

HTML / JS looks like this:

  & lt; Ul & gt; & Lt; Li id = "linkA" square = "icon" & gt; & Lt; An onclick = "new effect" toggle ('diva', 'slide', {duration: 0.6}); return false; " Href = "#" & gt; Show A & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div id = "divA" style = "display: none" & gt; & Lt; Div & gt; - Things to display - & lt; / Div & gt; & Lt; / Div & gt; & Lt; Ul & gt; & Lt; Li id = "linkb" class = "icon" & gt; & Lt; An onclick = "new effect" toggle ('divB', 'slide', {duration: 0.6}); return back; " Href = "#" & gt; Show list B & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; Div id = "divB" style = "display: none" & gt; & Lt; Div & gt; - Things to display - & lt; / Div & gt; & Lt; / Div & gt;  

It works perfectly in Chrome and Firefox, but no one else ever works in IE 7 or 8, no matter what.

Any help would be greatly appreciated!

My bad round was made on a button click in HTML Javascript, but because of the paste here Was complicated, I simplified it into the code created. It has been learned that Javascript had an issue in the creation of HTML (apparently prototype and scriptwritable being able to find another DIV ID - why first one Should have worked fine, I do not know).

Now everything has done ... I have only this question that I can stop this question: (


Comments