Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does this HTML fail in IE8/9 only when added with JavaScript?
    text
    copied!<p>i am using chrome. i am using a "div" with "float: left" and "float: right" buttons. The page is views in atleast all browser ( not IE8-IE9 ).</p> <p>Here is Chrome, IE8-IE9 (generated with javascript), and IE8-IE9 Normal HTML code Preview. [ full image preview ] <a href="http://i52.tinypic.com/28878tk.jpg" rel="nofollow">http://i52.tinypic.com/28878tk.jpg</a> i dont know what is the problem, div css float problem or javascript problem.</p> <p>here is css code:</p> <pre><code> #middleside01 { border: 0px solid #000; background: url(rp_images2/blue_mid.png); width: 715px; height: 250px; padding-left: 10px; padding-right: 10px; } .flagbtn1 { border: 0px solid #000; background: url(rp_images2/country_box.png); margin-top: 6px; float: left; width: 350px; height: 45px; } .flagbtn2 { border: 0px solid #000; background: url(rp_images2/country_box.png); margin-top: 6px; float: right; width: 350px; height: 45px; } </code></pre> <p>And here is Javascript code:</p> <pre><code>function insert_btn(im_url,id,flagid,name){ var tbl='&lt;a style="cursor:pointer" onclick="ajax_cl(\''+flagid+','+name+'\', flagsfldr);"&gt;&lt;div class="flagbtn'+id+'"&gt;'; if(ratepg==false){flagid='44';} tbl+='&lt;div class="flagbtnf"&gt;&lt;img src="'+im_url+'large/'+flagid+'.gif" alt="'+name+'" onError="this.src=\''+im_url+'large/noimgbig.jpg\';" /&gt;&lt;/div&gt;'; //if(name.length&gt;=30)name=name.substr(0,25)+"..."; if(ratepg==true){ tbl+='&lt;div class="flagbtnt rt-font"&gt;&gt; &lt;a onclick="ajax_cl(\''+flagid+','+name+'\', flagsfldr);" class="ft1"&gt;'+name+' ('+flagid+')&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;'; } else { tbl+='&lt;div class="flagbtnt rt-font"&gt;&gt; &lt;a onclick="ajax_cl(\''+flagid+','+name+'\', flagsfldr);" class="ft1"&gt;'+name+'&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/a&gt;'; } if(id=='2'){ tbl+='&lt;div class="clearfix"&gt;&lt;/div&gt;'; } return tbl; } </code></pre> <p>i used clearfix method, but it not works. What could the problem be?</p> <h1><BR><BR><BR><BR>[7:59 PM - 10-12-2011]<br></h1> <p>I got my Solution by removing this from first line of javascript:</p> <pre><code>&lt;a style="cursor:pointer" onclick="ajax_cl(\''+flagid+','+name+'\', flagsfldr);"&gt; </code></pre> <p>Thankyou so much to all. Someone said that why i use some requesting sentence. that's because i am new on stackoverflow, and it is my first question. so it happend.</p> <p>Thankx again to All.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload