javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'"http://forums.asp.net/t/1771885.aspx/1?javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Wed, 22 Feb 2012 08:45:57 -050017718854842300http://forums.asp.net/p/1771885/4842300.aspx/1?javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <pre class="prettyprint">&lt;tr&gt; &lt;td class=&quot;formtitle&quot;&gt;MATERIAL&lt;/td&gt; &lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;select class=&quot;text&quot; id=&quot;Material1&quot; style=&quot;WIDTH: 310px&quot; onchange=&quot;listC1.populate();&quot;&gt; &lt;SCRIPT language=&quot;JavaScript&quot;&gt;listB1.printOptions()&lt;/SCRIPT&gt; &lt;/select&gt;&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt;</pre> <p>Hi all, Can anyone point me what problem above code. i browse this code in IE i can view the result. But i browse with google chrome, it doesn't gv the result. it seem like no response or the javascript can't work. Thanks.</p> 2012-02-21T06:21:34-05:004842312http://forums.asp.net/p/1771885/4842312.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p>Hi,</p> <p>Why you have nested script tag inside select?</p> <p>What exectly the following is-</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>dicman</h4> listC1</blockquote> <p></p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>dicman</h4> listB1</blockquote> <p></p> 2012-02-21T06:32:07-05:004842400http://forums.asp.net/p/1771885/4842400.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p>hi,</p> <p>&nbsp;</p> <p>i not sure what is this, because this code is a part of code shown in my project.</p> <p>if not mistaken is a list of dropdown list selection.</p> <p>&nbsp;</p> <p>do you know how can make this code work in chrome?</p> <p>&nbsp;thanks.</p> 2012-02-21T07:21:00-05:004844075http://forums.asp.net/p/1771885/4844075.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p><img src="http://www.freeimagehosting.net/newuploads/4sj6e.png"></p> <p>hi, i just check it with developer tool in google chrome and found that this error show out. Object # has no method 'load' createXML May i know how to load the xml file in google chrome? thanks.</p> 2012-02-22T02:54:56-05:004844082http://forums.asp.net/p/1771885/4844082.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p>Hi,</p> <p>Please share your javascript code also..</p> 2012-02-22T02:59:58-05:004844090http://forums.asp.net/p/1771885/4844090.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <pre class="prettyprint">&lt;script language=&quot;javascript&quot;&gt; createXML(&quot;../XML/BizCard.xml&quot;); &lt;% DbUtil dbutil = new DbUtil(); DataSet ds; DataSet ds2; DataSet ds3; int iFirstCheck = 1; string sSetDefaultOption = &quot;&quot;; for (int i = 1; i&lt;=5; i&#43;&#43;) { Response.Write (&quot;\n\n\nvar listB&quot; &#43; i.ToString() &#43; &quot; = new DynamicOptionList(\&quot;Material&quot; &#43; i.ToString() &#43; &quot;\&quot;,\&quot;Product&quot; &#43; i.ToString() &#43; &quot;\&quot;);\n&quot;); ds = dbutil.get_dataset (@&quot;SELECT prid, prcode, prlongdesc FROM tbrProduct WHERE (prid='1') ORDER BY prlongdesc&quot;); foreach (DataRow dr in ds.Tables[0].Rows) { Response.Write (&quot;listB&quot; &#43; i.ToString() &#43; &quot;.addOptions(\&quot;&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;\&quot;&quot;); ds2 = dbutil.get_dataset (@&quot;SELECT pacode, palongdesc, pwcode, pwdesc FROM tbrPaper Pa, tbrProduct Pr , tbrPaperWeight PW, tbrProduct_Paper PP WHERE Pr.prcode = '&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;' AND PP.ppprid = Pr.prid AND PP.pppaid = Pa.Paid AND PP.pppwid = PW.pwid AND PP.status ='1' ORDER BY pwdesc, palongdesc&quot;); foreach (DataRow dr2 in ds2.Tables[0].Rows) { Response.Write(&quot;,\&quot;&quot; &#43; dr2[&quot;pwdesc&quot;] &#43; &quot;gsm &quot; &#43; dr2[&quot;palongdesc&quot;].ToString() &#43; &quot;\&quot;,\&quot;&quot; &#43; dr2[&quot;pacode&quot;].ToString() &#43; dr2[&quot;pwcode&quot;].ToString() &#43; &quot;\&quot;&quot;); if (iFirstCheck == 1) { sSetDefaultOption &#43;= &quot;listB&quot; &#43; i.ToString() &#43; &quot;.setDefaultOption(\&quot;&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;\&quot;,\&quot;&quot; &#43; dr2[&quot;pacode&quot;].ToString() &#43; dr2[&quot;pwcode&quot;].ToString() &#43; &quot;\&quot;)\n&quot;; iFirstCheck = 0; } } Response.Write (&quot;);\n&quot;); iFirstCheck = 1; } Response.Write(sSetDefaultOption); Response.Write (&quot;\n\n\nvar listC&quot; &#43; i.ToString() &#43; &quot; = new DynamicOptionList(\&quot;Volume&quot; &#43; i.ToString() &#43; &quot;\&quot;,\&quot;Product&quot; &#43; i.ToString() &#43; &quot;\&quot;,\&quot;Material&quot; &#43; i.ToString() &#43; &quot;\&quot;);\n&quot;); ds = dbutil.get_dataset (@&quot;SELECT prid, prcode, prlongdesc FROM tbrProduct WHERE (prid='1') ORDER BY prlongdesc&quot;); foreach (DataRow dr in ds.Tables[0].Rows) { ds2 = dbutil.get_dataset (@&quot;SELECT pacode, palongdesc, pwcode FROM tbrPaper Pa, tbrProduct Pr, tbrPaperWeight Pw ,tbrProduct_Paper PP WHERE Pr.prcode = '&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;' AND PP.ppprid = Pr.prid AND PP.pppaid = Pa.Paid AND PP.pppwid = Pw.pwid ORDER BY pwdesc, palongdesc&quot;); foreach (DataRow dr2 in ds2.Tables[0].Rows) { Response.Write (&quot;listC&quot; &#43; i.ToString() &#43; &quot;.addOptions(\&quot;&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;|&quot; &#43; dr2[&quot;pacode&quot;].ToString() &#43; dr2[&quot;pwcode&quot;].ToString() &#43; &quot;\&quot;&quot;); ds3 = dbutil.get_dataset(@&quot;SELECT DISTINCT pppvolume FROM tbrProduct_Paper_Price PPP, tbrProduct_Paper PP, tbrProduct Pr, tbrPaper Pa, tbrpaperweight PW WHERE PPP.ppid = PP.ppid AND PP.pppwid = PW.pwid AND PP.ppprid = Pr.prid AND PP.pppaid = Pa.paid AND PR.prcode = '&quot; &#43; dr[&quot;prcode&quot;].ToString() &#43; &quot;' AND PA.pacode = '&quot; &#43; dr2[&quot;pacode&quot;].ToString() &#43; &quot;' AND PW.pwcode ='&quot; &#43; dr2[&quot;pwcode&quot;].ToString() &#43; &quot;'&quot;); foreach (DataRow dr3 in ds3.Tables[0].Rows) { Response.Write(&quot;,\&quot;&quot; &#43; dr3[&quot;pppvolume&quot;].ToString() &#43; &quot;\&quot;,\&quot;&quot; &#43; dr3[&quot;pppvolume&quot;].ToString() &#43; &quot;\&quot;&quot;); } Response.Write (&quot;);\n&quot;); } } } Response.Write(&quot;var ppptype = \&quot;&quot; &#43; Request.Cookies[&quot;cpricetype&quot;].Value &#43; &quot;\&quot;;&quot;); %&gt;</pre> <p>thanks for your reply. here is the part which cannot work in chrome.</p> 2012-02-22T03:04:54-05:004844404http://forums.asp.net/p/1771885/4844404.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p>Anyone here know the solution?</p> <p>i check in google found that this prolem also occur in safari too.</p> <p>&nbsp;</p> <p>Thanks.</p> 2012-02-22T06:18:26-05:004844736http://forums.asp.net/p/1771885/4844736.aspx/1?Re+javascript+createXML+cannot+work+in+googlew+chrome+Object+Document+has+no+method+load+Re: javascript / createXML cannot work in googlew chrome "Object #<Document> has no method 'load'" <p>Finally found the solution:</p> <pre class="prettyprint">try { createXML(&quot;../XML/BizCard.xml&quot;); } catch(e) //for chrome &amp; safari { var xmlhttp = new XMLHttpRequest(); xmlhttp.open(&quot;GET&quot;,&quot;../XML/BizCard.xml&quot;,false); xmlhttp.send(null); xmlDoc=xmlhttp.responseXML; }</pre> <p>&nbsp;</p> 2012-02-22T08:45:57-05:00