Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF2 ajax tag throws unknown javascript error in Internet Explorer
    primarykey
    data
    text
    <p>Having this lines of code:</p> <pre><code>&lt;h:commandLink value="Reset Filter" styleClass="button"&gt; &lt;f:ajax event="click" render="filterWindowDiv tableX" listener="#{beanX.reset}" /&gt; &lt;/h:commandLink&gt; </code></pre> <p>and as well as with:</p> <pre><code>&lt;h:commandLink value="Reset Filter" styleClass="button"&gt; &lt;f:ajax event="click" render="@all" listener="#{beanX.reset}" /&gt; &lt;/h:commandLink&gt; </code></pre> <p>an unknown error will be thrown in Internet Explorer 8:</p> <pre><code>Object doesn't support this property or method pageX.jsf, line1 character 7 </code></pre> <p>The <code>h:commandLink</code> is within a <code>o:window</code> (OpenFaces 3).</p> <p>However, I do get the same error if I am using the same lines of code for example for a Delete button which shows after invoking a bean method a <code>o:popupLayer</code>.</p> <p>Any ideas? Thank you in advance!</p> <hr> <p>I've had JavaScript code within my div which must be rendered adhoc while re-render a part of the page. However, it seems IE cannot handle that issue while FF don't mind. I think to remember I've read something something about this. Anyway, since I've removed the JavaScript error is gone.</p> <p>But how to invoke my JavaScript code <strong>after rendering</strong>? I've solved it like this example:</p> <pre><code>&lt;h:commandLink value="Reset Filter" styleClass="button"&gt; &lt;f:ajax event="click" render="@all" listener="#{beanX.reset}" onevent="callback" /&gt; &lt;/h:commandLink&gt; </code></pre> <p>Callback method:</p> <pre><code>function callback(data) { data.status == "success") { // your JavaScript code } } </code></pre> <p>Thanks again for all your help!</p>
    singulars
    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.
    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