Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to speed up the execution of jquery in the body of an ASP page
    primarykey
    data
    text
    <p>I am running some jquery in the body of an asp file. Immediately after it is the drop down menu that it effects. The script works fine, the issue is it takes a while to load the script in firefox.</p> <p>How can I speed this up without moving it higher up in the body or header.</p> <p>Please note: The link provided is the live website, I am aware that it is firing an object error back because I have a old version of jQuery. (On our internal website the jquery is the latest version)</p> <p>Link:http://www.casa.gov.au/scripts/nc.dll?WCMS:PWA::pc=PC_91330</p> <p>The code is below: </p> <pre><code>&lt;script&gt; $(document).ready(function() { $(document).on("change","select#state",function(e){ $("form#state").submit(); }); }); &lt;/script&gt; &lt;form id="state" action="avsafety.asp" method="get"&gt; &lt;p&gt;State:&lt;br/&gt; &lt;select id="state" name="state"&gt; &lt;option label="ACT" value="ACT" &lt;%if request.querystring("state") = "ACT" then response.write("selected") %&gt;&gt;ACT&lt;/option&gt; &lt;option label="NSW" value="NSW" &lt;%if request.querystring("state") = "NSW" then response.write("selected") %&gt;&gt;NSW&lt;/option&gt; &lt;option label="NT" value="NT" &lt;%if request.querystring("state") = "NT" then response.write("selected") %&gt;&gt;NT&lt;/option&gt; &lt;option label="QLD" value="QLD" &lt;%if request.querystring("state") = "QLD" then response.write("selected") %&gt;&gt;QLD&lt;/option&gt; &lt;option label="VIC" value="VIC" &lt;%if request.querystring("state") = "VIC" then response.write("selected") %&gt;&gt;VIC&lt;/option&gt; &lt;option label="SA" value="SA" &lt;%if request.querystring("state") = "SA" then response.write("selected") %&gt;&gt;SA&lt;/option&gt; &lt;option label="TAS" value="TAS" &lt;%if request.querystring("state") = "TAS" then response.write("selected") %&gt;&gt;TAS&lt;/option&gt; &lt;option label="WA" value="WA" &lt;%if request.querystring("state") = "WA" then response.write("selected") %&gt;&gt;WA&lt;/option&gt; &lt;/select&gt; &lt;noscript&gt;&lt;input type="submit" value="Search" /&gt;&lt;/noscript&gt; &lt;/p&gt; &lt;/form&gt; </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.
 

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