Note that there are some explanatory texts on larger screens.

plurals
  1. POshow() hide() not working in firefox yet working in all other browsers
    text
    copied!<p>Here I am calling one JavaScript function <code>hideanddisplay()</code> to hide and display the menu which is added by using <code>&lt;tiles:insert&gt;</code>...</p> <p>The code where the function is used:</p> <pre><code>&lt;td onclick="hideanddisplay()" class="productLogo" title="Click to Hide/Display Navigator"&gt; &lt;span style="cursor:pointer"&gt;hiii &lt;span style="color:#FFFFFF"&gt;gud morning&lt;/span&gt;&lt;/span&gt; &lt;/td&gt; </code></pre> <p>By calling this function, the below piece of code should be hidden and shown, as per the requirement...</p> <pre><code>&lt;td id="sohamMenu" valign="top" class="leftmenuBG"&gt; &lt;div id="soham" class="TA" style="width:210px; height:500px; overflow-x:scroll; overflow-y:scroll;"&gt; &lt;tiles:insert attribute="menupage" /&gt; &lt;/div&gt; &lt;/td&gt; </code></pre> <p>Here is the function for hide and display:</p> <pre><code>function hideanddisplay() { var cookiewval = getMyCookie("status"); if (cookiewval == "hide") { $("#sohamMenu").show(500); document.cookie = "status=show;"; } else { $("#sohamMenu").hide(500); document.cookie = "status=hide;"; } function getMyCookie(name) { var prefix = name + "="; var start = document.cookie.indexOf(prefix) if (start == -1) { return null; } var end = document.cookie.indexOf(";", start + prefix.length) if (end == -1) { end = document.cookie.length; } var tempString = document.cookie var value = tempString.substring(start + prefix.length, end) return unescape(value); } </code></pre>
 

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