title: indexOf not working in IE 8/7
body: <p>I am trying to run a jquery/ajax call that works in IE9, Chrome, FF, Opera
  However, it fails in IE8 and UE7</p>
  
  <p>The code:</p>
  
  <pre><code>  $.ajax({url:plink,
        success: function(result) {
          ppriser = result.split("**")[1];
          plabels = result.split("**")[2];
          pgrupper = result.split("**")[3];
          priser = ppriser.split("!#");
          labels = plabels.split("!#");
          grupper = pgrupper.split("!#");
          $("td .pricetag").each( function() {
            var slutpris = "999999";
            var slutlabel = "";
            for(i=1;i&lt;priser.length;i++) {
              str = String($(this).attr('group')); 
              grp = String(grupper[i]);
              pos = grp.indexOf(str);
              if(grp==str || pos&gt;=0) {
                j=parseInt(priser[i]);
                k=parseInt(slutpris);
                if(j!=0 &amp;&amp; j&lt;k) {
                  slutpris = priser[i];
                  slutlabel = labels[i];
                }
                if(slutlabel=="") { slutlabel = "fra:"; }
                if(slutpris!="999999") { 
                  $(this).html(slutpris);
                  $(this).prev('td').html(slutlabel);
                }
                if(slutpris=="999999") {
                  $(this).css('display','none');
                  $(this).closest('.pris').css('display','none');
                }
              }
            }
          });
        }});
  </code></pre>
  
  <p>I have tried various combos of:
  cache:false,
  type:"POST",
  type:"GET",
  data:"HTML",
  dataType:"HTML",
  timeout: 10000,</p>
  
  <p>An example of the link plink:</p>
  
  <pre><code>Default.aspx?ID=148&amp;fb=true&amp;mode=-1&amp;groupid=1210405@@SHOP5,1210103@@SHOP5,
  </code></pre>
  
  <p>The jquery link:</p>
  
  <pre><code>&lt;script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>The ajax script link is placed at the end of the page.</p>