Note that there are some explanatory texts on larger screens.

plurals
  1. POknockout 2.0 doesn't work in IE8
    primarykey
    data
    text
    <p>This view works well with IE9 and Chrome. However, not with IE8. When the page is rendered, this is how it looks like:</p> <p><img src="https://i.stack.imgur.com/Fu7uW.png" alt="enter image description here"></p> <p>My HTML (MVC3 View) is as shown below. </p> <pre><code>&lt;div id="machinedisplay" data-bind="with: selectedMachine" &gt; &lt;h2&gt;&lt;span data-bind="text: MachineDesciption" /&gt;&lt;/h2&gt; &lt;!-- ko with: my.vm.machineData --&gt; &lt;table&gt; &lt;thead&gt;&lt;tr&gt; &lt;th&gt;Point Name&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Points Data&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt; &lt;tbody data-bind="foreach: Points"&gt; &lt;tr&gt; &lt;td data-bind="text: PointName()"&gt;&lt;/td&gt; &lt;td data-bind="text: PointDesciption()"&gt;&lt;/td&gt; &lt;td&gt; &lt;table style="width:100%;"&gt; &lt;thead&gt;&lt;tr&gt; &lt;th&gt;Name&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;th&gt;&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt; &lt;tbody data-bind="foreach: Params"&gt; &lt;tr&gt; &lt;td data-bind="text: ParameterName"&gt;&lt;/td&gt; &lt;td data-bind="text: ParameterDescription"&gt;&lt;/td&gt; &lt;td data-bind="text: StringValue"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;!-- /ko --&gt; &lt;/div&gt; </code></pre> <p>Any ideas on IE8 work around?</p> <p><strong>EDIT:</strong> To illustrate this problem on a simpler model, check out this fiddle <a href="http://jsfiddle.net/ericpanorel/nzKvb/" rel="nofollow noreferrer">http://jsfiddle.net/ericpanorel/nzKvb/</a></p> <p>I figured that I am running into problems because I am using the "with" or "if" bindings. I read somewhere that this causes problems with IE8.</p> <p>I used IE9, and if you use your developer tools to switch from IE9 to IE8, this Fiddle doesn't work properly anymore. This fiddle is actually derived from one of knockout's samples (<a href="http://knockoutjs.com/examples/gridEditor.html" rel="nofollow noreferrer">http://knockoutjs.com/examples/gridEditor.html</a>)</p> <p><strong>EDIT:</strong> I updated the fiddle... <a href="http://jsfiddle.net/nzKvb/20/" rel="nofollow noreferrer">http://jsfiddle.net/nzKvb/20/</a> It has something to do with short-hand closing of tags inside the nested containerless bindings</p> <pre><code> &lt;!-- ko if: Allowed--&gt; &lt;h2&gt; &lt;span data-bind="text: Dummy"/&gt; &lt;===== This will bomb in IE8 &lt;/h2&gt; </code></pre>
    singulars
    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.
 

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