[jQuery] Toggleing

[jQuery] Toggleing

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Toggleing</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Here I have created a DIV and a LINK (one of the ones I want to toggle)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"><div id="carrList">Quick Carrier Search: <br /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><input type="text" size="60" id="searchtxt" onkeyup="searchSel()"/><br /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><br /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><select size="19" id="carrierList" name="carrierList"></FONT>
<BR><FONT SIZE=2 FACE="Arial"><%=carrier_name%></FONT>
<BR><FONT SIZE=2 FACE="Arial"></select></FONT>
<BR><FONT SIZE=2 FACE="Arial"><br /></FONT>
<BR><FONT SIZE=2 FACE="Arial"><input type="submit" value="Select Carrier"/><br /></FONT>
<BR><FONT SIZE=2 FACE="Arial"></div></FONT>
<BR><FONT SIZE=2 FACE="Arial"><a href="" id="topLink" title="New Carrier Request">Click here if you do not see a carrier listed, and you want to request a carrier be added.</a></FONT></P>
<P><FONT SIZE=2 FACE="Arial">The Jquery:</FONT>
<BR><FONT SIZE=2 FACE="Arial">$(document).ready(function(){</FONT>
<BR><FONT SIZE=2 FACE="Arial">   $("#topLink").toggle(function(){</FONT>
<BR><FONT SIZE=2 FACE="Arial">       $(this).html("Click here to show the original carrier list.");</FONT>
<BR><FONT SIZE=2 FACE="Arial">       $("#carrList").slideUp("fast");</FONT>
<BR>        <FONT SIZE=2 FACE="Arial">   $("addCarr").slideDown("slow");</FONT>
<BR><FONT SIZE=2 FACE="Arial">   },function(){</FONT>
<BR><FONT SIZE=2 FACE="Arial">       $(this).html("Click here if you do not see a carrier listed, and you want to request a carrier be added.");</FONT>
<BR><FONT SIZE=2 FACE="Arial">       $("#carrList").slideDown("slow");</FONT>
<BR>        <FONT SIZE=2 FACE="Arial">   $("addCarr").slideUp("fast");</FONT>
<BR><FONT SIZE=2 FACE="Arial">   });</FONT>
<BR><FONT SIZE=2 FACE="Arial">});</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">I have a problem and a question:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">When I first load the page and click the jquery anchor link: I think it goofs up because of the href = "" ??</FONT>
<BR><FONT SIZE=2 FACE="Arial">It displays a server error Directory Listing Denied.</FONT>
<BR><FONT SIZE=2 FACE="Arial">If I click the browser Back button and do it again, the toggle starts working fine.</FONT>
<BR><FONT SIZE=2 FACE="Arial">What do I do differently to make it work the VERY first time the page loads?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The url has some asp querystring on it, but that alone should not mess it up should it? It is like:</FONT>
<BR><FONT SIZE=2 FACE="Arial"><A HREF="http://cmsr76w1/SBDX/Scripts/Carrier_Request_Form.asp?channel=04.SC:%20Volume&carrier=ACUITY&lookup=nbcarrier1&item=9988">http://cmsr76w1/SBDX/Scripts/Carrier_Request_Form.asp?channel=04.SC:%20Volume&carrier=ACUITY&lookup=nbcarrier1&item=9988</A></FONT></P>
<P><FONT SIZE=2 FACE="Arial">I had a working example already using this toggle at another site and it fires right every time that is why I am wondering if the URL address *might* be messing it up?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks.</FONT>
</P>
<FONT SIZE=3><BR>
<BR>
*************************************************************************<BR>
This communication, including attachments, is<BR>
for the exclusive use of addressee and may contain proprietary,<BR>
confidential and/or privileged information. If you are not the intended<BR>
recipient, any use, copying, disclosure, dissemination or distribution is<BR>
strictly prohibited. If you are not the intended recipient, please notify<BR>
the sender immediately by return e-mail, delete this communication and<BR>
destroy all copies.<BR>
*************************************************************************<BR>
</FONT>
</BODY>
</HTML>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/