Note that there are some explanatory texts on larger screens.

plurals
  1. POI got some error on click event of jquery - Error in event handler for 'undefined': INDEX_SIZE_ERR
    primarykey
    data
    text
    <p><img src="https://i.stack.imgur.com/ZCqD7.png" alt="enter image description here">There are too much code so i put them to Fiddle. <a href="http://jsfiddle.net/ylkwan/XP39S/7/" rel="nofollow noreferrer">http://jsfiddle.net/ylkwan/XP39S/7/</a> ,If you use Chrome,press ctrl+shift+j and double click the login button or signup button. There are some error occur</p> <p>css</p> <pre><code>/* Below is Header elements */ #header{ padding: 4px 4px; border-bottom: 1px solid #fff; background-color: #777; box-shadow: 0 -3px 3px rgba(0,0,0,.5) inset; width:1200; border-radius: 0 0 5 5; } #header #loginpaneldiv{ float: right; } #header #loginpaneldiv ul{ margin: 0 8 0 0 ; padding: 0; list-style: none; } #header #loginpaneldiv ul li { height :27px; padding:0; float: left; display: inline-block; } #header #loginpaneldiv ul li.left { border-right: 1px solid #ddd; } #header #loginpaneldiv li a { background:#eee; height:100%; display: inline-block; line-height: 25px; font-weight: bold; padding: 0 8px; text-decoration: none; color: #444; text-shadow: 0 1px 0 #fff; } #header #loginpaneldiv ul li.left a{ border-radius: 2 0 0 2; } #header #loginpaneldiv ul li.right a{ border-radius: 0 2 2 0; } #header #loginpaneldiv a:hover { background:#fff; } #header .form{ display: none; float: right; position: relative; top:-2; margin: 0px 0px -100% 0px; padding: 15px; border-bottom: 1px solid #fff; border-radius: 3px 0 3px 3px; width:250px; z-index:100; background: #fff; background-image: linear-gradient(top, #fff, #eee); box-shadow: 0 2px 2px -1px rgba(0,0,0,.9); } </code></pre> <p>html</p> <pre><code>&lt;! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd" &gt; &lt;html&gt; &lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="wrapper"&gt; &lt;div id="header"&gt; &lt;div id="loginpaneldiv"&gt; &lt;ul&gt; &lt;li class="left" id="login"&gt; &lt;a href="#"&gt;Log in &lt;span&gt;&amp;#x25BC;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt; &lt;li class="right" id="signup"&gt; &lt;a href="#"&gt;Sign up &lt;span&gt;&amp;#x25BC;&lt;/span&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div style="clear:both"&gt;&lt;/div&gt; &lt;div id="loginformdiv" class="form"&gt; &lt;form id="loginform" action="" method="post"&gt; &lt;input class="textbox" id="email" type="email" name="email" placeholder="Your email address" required&gt; &lt;/form&gt; &lt;/div&gt; &lt;div id="signupformdiv" class="form"&gt; &lt;form id="signupform" action="" method="post"&gt; &lt;input class="textbox" id="lastname" type="text" name="lastname" placeholder="Your Last Name" required&gt; &lt;/form&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;​ </code></pre> <p>​jquery</p> <pre><code>$(document).ready(function(){ function hide($element){ $element.css('background','#eee'); $element.find("span").html("&amp;#x25BC;"); $element.css('hover','#fff'); $('#'+$element.attr("id")+'formdiv').hide(); } function slideUp($element){ $element.find("span").html("&amp;#x25BC;"); $element.css('background','#eee'); $('#'+$element.attr("id")+'formdiv').slideUp("fast"); } function slideDown($element){ $element.css('background','#fff'); $element.find("span").html("&amp;#x25B2;"); $('#'+$element.attr("id")+'formdiv').slideDown("fast"); } try{ $("#loginpaneldiv li").click(function(event){ if($(this).attr("id")=="login"){ if($('#loginformdiv').is(':visible')){ hide($("#signup")); slideUp($('#login')); }else{ hide($("#signup")); slideDown($('#login')); } }else if($(this).attr("id")=="signup"){ if($('#signupformdiv').is(':visible')){ hide($("#login")); slideUp($('#signup')); }else{ hide($("#login")); slideDown($('#signup')); } } }); }catch(e){ } }); ​ </code></pre>
    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.
    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