Note that there are some explanatory texts on larger screens.

plurals
  1. POUnknown Runtime Error in IE8
    primarykey
    data
    text
    <p>I'm receiving an "Unknown Runtime" error in IE8. </p> <p>I have an input field where you enter your zip code, then hit a button that says "Get Quotes" for Shipping Estimates, but when I hit this button in IE8 I get an Unknown Runtime Error. Works fine in Chrome, of course.</p> <p>This is probably going to be a complicated one.</p> <p>The error happens on the "targetElem.innerHTML = oResponse.results[0];" line of this code:</p> <pre><code>DmiAjaxFetch = function(targetId, dsPageName, stdQueryParams, paramVal) { var oAL = DmiAjaxFetchHelper(dsPageName, stdQueryParams); oAL.handleResponse = function(sQuery, oResponse) { var targetElem = document.getElementById(targetId); targetElem.innerHTML = oResponse.results[0]; }; // finally, kick off the request to the handler oAL.sendQuery(paramVal); }; </code></pre> <p>I have this script at the top of my page, to show/hide based on a button click. The button is "Get Quotes" - when I click Get Quotes, it takes the ZIP code entered, grabs data for that ZIP Code, then shows the Table. This is the JS to show the table:</p> <pre><code>&lt;script&gt; function toggleTable() { var lTable = document.getElementById("CartTotalContent"); lTable.style.display = (lTable.style.display == "table") ? "none" : "table"; } &lt;/script&gt; </code></pre> <p>My JS for obtaining the total of the cart on the page is:</p> <pre><code> function populateCartTotalInCartPage() { var e = document.getElementsByName("COUNTRY_SHIP")[0].value; var t = document.getElementsByName("PostalCode_SHIP")[0].value; if (e != " - Select - " &amp;&amp; document.getElementById("shipping_method") != null) { var n = document.getElementsByName("shipping_method"); var r; for (var i = 0; i &lt; n.length; i++) { if (n[i].checked) { r = n[i].value } } var s = r; DmiAjaxFetch("CartTotalContent", "DmiAjax.aspx", "request=CartTotalContent&amp;country_ship=" + e + "&amp;zip_ship=" + t + "&amp;shipping_method=" + s + "&amp;extra=", rnd()) } } </code></pre> <p>My button code is:</p> <pre><code>&lt;input type="button" OnClick="populateCartTotalInCartPage();toggleTable();" value="Get Quotes" class="btn btn-orange"&gt; </code></pre> <p>The table I'm looking to show is:</p> <pre><code>&lt;div class="container"&gt; &lt;div class="pull-right"&gt; &lt;div class="span4 pull-right"&gt; &lt;table class="table table-striped table-bordered" id="CartTotalContent"&gt; &lt;tr&gt; &lt;td&gt;&lt;span class="extra bold"&gt;Sub-Total :&lt;/span&gt;&lt;/td&gt; &lt;td&gt;&lt;span class="bold"&gt;$&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;a href="checkout.aspx"&gt;&lt;input type="submit" value="CheckOut" class="btn btn-orange pull-right"&gt;&lt;/a&gt; &lt;input type="button" value="Continue Shopping" onClick="history.back(-1);" class="btn btn-orange pull-right mr10" style="margin-bottom:10px;"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p></p> <p>If you're interested in seeing it in action: Add something to your cart, enter zip code, hit Get Quotes <a href="http://rsatestamls.kaliocommerce.com/" rel="nofollow">http://rsatestamls.kaliocommerce.com/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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