[jQuery] CODE REVIEW: the fruits of today's labor-nowwithREALCODE!

[jQuery] CODE REVIEW: the fruits of today's labor-nowwithREALCODE!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags" xmlns:ns0 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="State"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Monotype Corsiva;
}
@font-face {
font-family: Tahoma;
}
@font-face {
font-family: Verdana;
}
@font-face {
font-family: Century Gothic;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
P.MsoEnvelopeAddress {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt 2in; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
LI.MsoEnvelopeAddress {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt 2in; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
DIV.MsoEnvelopeAddress {
FONT-WEIGHT: bold; FONT-SIZE: 14pt; MARGIN: 0in 0in 0pt 2in; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
P.MsoEnvelopeReturn {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
LI.MsoEnvelopeReturn {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
DIV.MsoEnvelopeReturn {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-STYLE: italic; FONT-FAMILY: "Monotype Corsiva"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle19 {
FONT-WEIGHT: normal; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal
}
SPAN.EmailStyle20 {
FONT-WEIGHT: normal; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal
}
SPAN.EmailStyle21 {
FONT-WEIGHT: normal; COLOR: black; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-reply
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=664443516-29032007><FONT face=Arial
color=#0000ff size=2>That's SLICK! Thanks for the update David.
Appreciated.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> discuss-bounces@jquery.com
[mailto:discuss-bounces@jquery.com] <B>On Behalf Of </B>David
Dexter<BR><B>Sent:</B> Thursday, March 29, 2007 11:11 AM<BR><B>To:</B> 'jQuery
Discussion'<BR><B>Subject:</B> Re: [jQuery] CODE REVIEW: the fruits of today's
labor-nowwithREALCODE!<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Never satisfied
until I test something I set up your code here with my modifications. 
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><A
href="http://brilliantlemming.com/test/andy.html">http://brilliantlemming.com/test/andy.html</A><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Have a look at the
source.  <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">There was one error
in my if statement…. It should have read:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">if(curImg.attr("src").indexOf('tri_open')
== -1){ <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Cheers,                   <o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><B><FONT
face=Verdana size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Verdana"><ns0:PersonName
w:endInsDate="2007-03-29T09:09:00Z" w:endInsAuthor="David Dexter"
w:insDate="2007-03-29T09:09:00Z" w:insAuthor="David Dexter"><ns0:PersonName
w:endInsDate="2007-03-29T09:09:00Z" w:endInsAuthor="David Dexter"
w:insDate="2007-03-29T09:09:00Z" w:insAuthor="David Dexter"><FONT
color=#336699><SPAN style="COLOR: #336699">David
Dexter</SPAN></FONT></ns0:PersonName></U2:PERSONNAME><FONT color=silver><SPAN
style="COLOR: silver">   |  brilliantlemming.com  | 
</SPAN></FONT><ns0:place w:endInsDate="2007-03-29T09:09:00Z"
w:endInsAuthor="David Dexter" w:insDate="2007-03-29T09:09:00Z"
w:insAuthor="David Dexter"><ns0:City w:endInsDate="2007-03-29T09:09:00Z"
w:endInsAuthor="David Dexter" w:insDate="2007-03-29T09:09:00Z"
w:insAuthor="David Dexter"><st1:place w:st="on"><st1:City w:st="on"><FONT
color=silver><SPAN
style="COLOR: silver">Brentwood</SPAN></FONT></st1:City></ns0:City></st1:place><FONT
color=silver><SPAN style="COLOR: silver">, </SPAN></FONT><ns0:State
w:endInsDate="2007-03-29T09:09:00Z" w:endInsAuthor="David Dexter"
w:insDate="2007-03-29T09:09:00Z" w:insAuthor="David Dexter"><st1:State
w:st="on"><FONT color=silver><SPAN
style="COLOR: silver">CA</SPAN></FONT></st1:State></ns0:State></ns0:place><FONT
color=silver><SPAN style="COLOR: silver">  | 
310.414.0949</SPAN></FONT></ns0:PersonName></SPAN></FONT></B><B><FONT
face=Verdana color=silver size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: silver; FONT-FAMILY: Verdana"><o:p></o:p></SPAN></FONT></B></P></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>David Dexter<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, March 29, 2007 8:58
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'jQuery
Discussion'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re:
[jQuery] CODE REVIEW: the fruits of today's labor
-nowwithREALCODE!</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">Andy,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">I’d do something
like this…….<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">$(document).ready(
function(){<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">         
$('.row td img.open').bind("click", function() {<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
var curImg = $(this);<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
var id = curImg.parent().parent().attr("id");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
var idArr = id.split("-");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
var child = $('#' + id + '-details');<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">         
// I'd do a simple check to see if the image you just clicked has a src that
includes "tri_open"<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">         
// If it doesn't run your open stuff <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
if(curImg.attr("src").indexOf('tri_open' == -1){ <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
curImg.attr("src","images/loader.gif");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
$('.hidden:visible').slideUp("fast");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
         
$('img[@src=images/tri_open.gif]').attr("src","images/tri_closed.gif");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
$.get("ajax3.cfm", {method:idArr[0],key:idArr[1]},
function(data){<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                                     
curImg.attr("src","images/tri_open.gif");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                                     
child.html(data).slideToggle("fast");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
});<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
}else{<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">         
// If it does close it up.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
curImg.attr("src","images/loader.gif");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                            
child.slideUp('fast',function(){<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                                                                                               
         
curImg.attr("src","images/tri_closed.gif");<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                                                                                                         
});<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">                  
}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">         
});<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">});<o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><B><FONT
face=Verdana color=#336699 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #336699; FONT-FAMILY: Verdana">David
Dexter</U2:PERSONNAME></SPAN></FONT></B><B><FONT face=Verdana color=silver
size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: silver; FONT-FAMILY: Verdana"> 
 |  brilliantlemming.com  |  Brentwood, CA  | 
310.414.0949<o:p></o:p></SPAN></FONT></B></P></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Andy Matthews<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, March 29, 2007 8:32
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'jQuery
Discussion'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re:
[jQuery] CODE REVIEW: the fruits of today's labor -
nowwithREALCODE!</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Well, technically
that's already there, but because of the way that I'm detecting "open" rows, if
you click on a row that's already open, it has some weirdness to it. I'm going
to change some of that out today.</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>David Dexter<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, March 29, 2007 9:26
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'jQuery
Discussion'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re:
[jQuery] CODE REVIEW: the fruits of today's labor - now
withREALCODE!</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Verdana color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">I would definitely
consider adding close functionality to a menu that is already expanded. That way
if a user clicks an arrow in the down state the row would collapse and the arrow
would then point back to the right.<o:p></o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal
style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"><B><FONT
face=Verdana color=#336699 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #336699; FONT-FAMILY: Verdana">David
Dexter</SPAN></FONT></B><B><FONT face=Verdana color=silver size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: silver; FONT-FAMILY: Verdana"> 
 |  brilliantlemming.com  |  Brentwood, CA  | 
310.414.0949<o:p></o:p></SPAN></FONT></B></P></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Andy Matthews<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, March 29, 2007 6:12
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'jQuery
Discussion'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [jQuery]
CODE REVIEW: the fruits of today's labor - now with
REALCODE!</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Sorry guys...I tried
posting the code last night using the Google Groups interface, but it didn't
come through.</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">Here you
go:</SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"><A
href="http://www.commadelimited.com/uploads/psychic">http://www.commadelimited.com/uploads/psychic</A></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">
discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Andy Matthews<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, March 28, 2007 4:59
PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> [jQuery]<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [jQuery] CODE REVIEW: the fruits
of today's labor</SPAN></FONT><o:p></o:p></P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Okay...</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I finished my proof of concept for
the project I've got. It works just as I want it to in IE6, IE7 and FF2. I
wondered if you guys would mind testing it in whatever browsers you have as well
as taking a look at the jQ code and telling me where I might be able to thin
things out a bit.</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Please don't hesitate to offer any
criticism, critiques or suggestions. I'd love to know where I could improve this
code, or if I'm doing anything "wrong".</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Anyone out there that's wanting to
do the same thing, feel free to snake this code. It's all
yours.</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><B><FONT face=Arial size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">____________________________________</SPAN></FONT></B><B><FONT
face="Century Gothic" size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10.5pt; FONT-FAMILY: 'Century Gothic'"><o:p></o:p></SPAN></FONT></B></P>
<DIV>
<P class=MsoNormal><B><FONT face="Century Gothic" size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10.5pt; FONT-FAMILY: 'Century Gothic'"> <o:p></o:p></SPAN></FONT></B></P></DIV>
<P class=MsoNormal><B><FONT face="Century Gothic" size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10.5pt; FONT-FAMILY: 'Century Gothic'">Andy
Matthews<BR></SPAN></FONT></B><FONT face="Century Gothic" size=1><SPAN
style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Century Gothic'">Senior Coldfusion
Developer<BR><FONT color=gray><SPAN style="COLOR: gray"><IMG id=_x0000_i1026
height=23 src="cid:664443516@29032007-2EF7" width=162
border=0><BR></SPAN></FONT>Office:  877.707.5467 x747<BR>Direct:
 615.627.9747<BR>Fax:  615.467.6249</SPAN></FONT><o:p></o:p></P>
<DIV>
<P class=MsoNormal><FONT face="Century Gothic" size=1><SPAN
style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Century Gothic'">amatthews@dealerskins.com<BR><A
href="http://www.dealerskins.com/">www.dealerskins.com</A></SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV></DIV></BODY></HTML>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
























































































































































































































































































































































































































































    • Topic Participants

    • lists