[jQuery] callback in a plugin

[jQuery] callback in a plugin

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2>hello!</FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial size=2>C</FONT></SPAN><SPAN
class=859324914-14052007><FONT face=Arial size=2>ould someone explain me how to
implement the ability to send a list of commands to be performed by a plugin
when it is done ? (i believe this is called a "callback"
function ? )</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial size=2>i would like to add
this to the jqUploader plugin, so that i could do something
like:</FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial size=2>function <FONT
face="Courier New"
size=3>pleaseDoTheseThings (params){</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007>    <FONT
face="Courier New">$("#dothis").show();</FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT
face="Courier New">}</FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face="Courier New">$(<SPAN
class=string>"input#example1"</SPAN>).jqUploader({ <BR>        background:     <SPAN
class=string>"FF9900"</SPAN>, <BR>        barColor:       <SPAN
class=string>"FFDD00"</SPAN>, <BR>        allowedExt:     <SPAN
class=string>"gif",</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face="Courier New"><SPAN
class=string></SPAN>        callBack:
pleaseDoTheseThings <BR>    }); </FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial size=2>Thanks a
lot!</FONT></SPAN></DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=859324914-14052007><FONT face=Arial
size=2>Alexandre</FONT></SPAN></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Verdana">Alexandre
Plennevaux - <SPAN class=SpellE><SPAN class=GramE>LAb</SPAN></SPAN><SPAN
class=GramE>[</SPAN>au] <SPAN class=SpellE>asbl.vzw</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"> / </SPAN><SPAN
class=SpellE style1="style1"><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Verdana">MediaRuimte</SPAN></SPAN><BR><SPAN
class=SpellE><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Lakensestraat</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">/Rue de Laeken
104<BR></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">B-1000
Brussel-Bruxelles-Brussels<BR></SPAN><SPAN class=SpellE><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Belgie</SPAN></SPAN><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">-Belgique-<SPAN
class=SpellE>Belgium</SPAN></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana">Tel:+32(0)2.219.65.55<BR>Fax:+32(0)2.426.69.86<BR>Mobile:+32(0)476.23.21.42<BR><A
title=http://www.lab-au.com/
href="blocked::http://www.lab-au.com/">http://www.lab-au.com<BR></A><A
title=http://www.mediaruimte.be/
href="blocked::http://www.mediaruimte.be/">http://www.mediaruimte.be</A></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"><A
title=http://www.mediaruimte.be/
href="blocked::http://www.mediaruimte.be/"></A></SPAN><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"
xml:lang="EN-GB">__________________________________________________________________________</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana" xml:lang="EN-GB">The
information in this e-mail is intended only for the addressee named above. 
If you are not that addressee, please note that any disclosure, distribution or
copying of this e-mail is prohibited.<BR>Because e-mail can be electronically
altered, the integrity of this communication cannot be guaranteed.</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-GB
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Verdana"
xml:lang="EN-GB">__________________________________________________________________________</SPAN></P>
<DIV> </DIV></BODY></HTML>
<BR>
<P><FONT SIZE=2>Ce message Envoi est certifié sans virus connu.<BR>
Analyse effectuée par AVG.<BR>
Version: 7.5.467 / Base de données virus: 269.7.0/803 - Date: 13/05/2007 12:17<BR>
</FONT> </P>