Christian, I guess I just don't understand the issue. When I need to use a button/link for multiple function I do something like what I posted before and all is fine. Can you explain or show in what context your code will be in?
[code] $('#link').click(function(){ sayHi(); }); sayHi = function(){ alert('hi'); $('#link').unbind('click').click(function(){ sayBye(); }); } or $('#link').click(function(){ sayHi(); $(this).unbind('click'); }); sayHi = function(){ alert('hi'); $('#link').click(function(){ sayBye(); }); } [/code] On 6/20/07, Christian <[EMAIL PROTECTED]> wrote:
On Jun 20, 2:09 pm, Christian <[EMAIL PROTECTED]> wrote: > Thanks for the suggestion, but still no dice. Well, I am working around this in a somewhat hackish way... var sayhi = function(e) { alert('hi'); e.halt = true; $('#mybutton').click(saybye); }; var saybye = function(e) { if (e.halt == true) return; alert('bye'); }; I still think that there *must* be a better way, but this is going to get me past this problem for now I suppose. Christian
-- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com