[jQuery] Remove help
[jQuery] Remove help
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD>
<BODY>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=582051413-06082009>I have
append to add a loading div. But once loaded i want to fade it out and remove
it.</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=582051413-06082009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=582051413-06082009>I
have:</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=582051413-06082009><script
type=
"text/javascript">/*<![CDATA[*/<BR>$(document).ready(function(){<BR> $('#content').append('<div
id="load"></div>');<BR> $('#load').fadeIn('normal');<BR> $('#content').load('/<?php
echo $url ; ?>/profile/');<BR> $('#load').fadeOut('normal' , function()
{ $('#load').remove();
});<BR> <BR>});<BR></script></SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=582051413-06082009></SPAN></FONT> </DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN class=582051413-06082009>But it does
not remove the #load div...so looking at firebug the load div gets added
everytime a user clicks a link</SPAN></FONT></DIV>
<DIV><FONT size=2 face="Trebuchet MS"><SPAN
class=582051413-06082009></SPAN></FONT> </DIV>
<DIV><SPAN class=582051413-06082009>
<DIV class="nodeBox emptyNodeBox repIgnore nodeHidden" role=presentation>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><FONT face="Trebuchet MS"><FONT size=2><<SPAN
class=nodeTag>div</SPAN><SPAN class="nodeAttr editGroup"> <SPAN
class="nodeName editable">id</SPAN>="<SPAN
class="nodeValue editable">load</SPAN>"</SPAN><SPAN
class="nodeAttr editGroup"> <SPAN
class="nodeName editable">style</SPAN>="<SPAN
class="nodeValue editable">display: none;</SPAN>"</SPAN><SPAN
class="nodeBracket editable insertBefore">/></SPAN></FONT></FONT></SPAN></DIV></DIV>
<DIV class="nodeBox emptyNodeBox nodeHidden repIgnore" role=presentation>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><FONT face="Trebuchet MS"><FONT size=2><<SPAN
class=nodeTag>div</SPAN><SPAN class="nodeAttr editGroup"> <SPAN
class="nodeName editable">id</SPAN>="<SPAN
class="nodeValue editable">load</SPAN>"</SPAN><SPAN
class="nodeBracket editable insertBefore">/></SPAN></FONT></FONT></SPAN></DIV></DIV>
<DIV class="nodeBox emptyNodeBox nodeHidden repIgnore" role=presentation>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><FONT face="Trebuchet MS"><FONT size=2><<SPAN
class=nodeTag>div</SPAN><SPAN class="nodeAttr editGroup"> <SPAN
class="nodeName editable">id</SPAN>="<SPAN
class="nodeValue editable">load</SPAN>"</SPAN><SPAN
class="nodeBracket editable insertBefore">/></SPAN></FONT></FONT></SPAN></DIV></DIV>
<DIV class="nodeBox emptyNodeBox nodeHidden repIgnore" role=presentation>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><FONT face="Trebuchet MS"><FONT size=2><<SPAN
class=nodeTag>div</SPAN><SPAN class="nodeAttr editGroup"> <SPAN
class="nodeName editable">id</SPAN>="<SPAN
class="nodeValue editable">load</SPAN>"</SPAN><SPAN
class="nodeBracket editable insertBefore">/></SPAN></FONT></FONT></SPAN></DIV></DIV>
<DIV class="nodeBox emptyNodeBox nodeHidden repIgnore" role=presentation>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><FONT face="Trebuchet MS"><FONT size=2><<SPAN
class=nodeTag>div</SPAN><SPAN class="nodeAttr editGroup"> <SPAN
class="nodeName editable">id</SPAN>="<SPAN
class="nodeValue editable">load</SPAN>"</SPAN><SPAN
class="nodeBracket editable insertBefore">/></SPAN></FONT></FONT></SPAN></DIV>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><SPAN class="nodeBracket editable insertBefore"><FONT size=2
face="Trebuchet MS"></FONT></SPAN></SPAN> </DIV>
<DIV class=nodeLabel role=presentation><SPAN class="nodeLabelBox repTarget"
role=treeitem><SPAN class="nodeBracket editable insertBefore"><SPAN
class=582051413-06082009><FONT size=2 face="Trebuchet MS">How can I remove the
div once it done loading?</FONT></SPAN></SPAN></SPAN></DIV></DIV></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><FONT size=2 face=Arial>Dave </FONT></DIV></BODY></HTML>