rebinding!
when you load new tags from ajax they don't magically get bind'ed
many people take the binding out of the main ready code and call it
from the main ready code, and once again after the ajax.
On 2/9/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
> Well, i had to get this to work so what I did was moved everything out of
> the page being loaded via ajax (.load) created a function called showCalc
> and put onclick="showCalc(this); return false;" on the buttons and now it
> seems to work.
>
> new function:
> var currenOpen = '';
> showCalc = function(linked){
> var div = $(linked).attr('title');
> $('#'+currenOpen).hide();
> currenOpen = div
> $('#'+div).show();
> }
>
> Now, my question really is, why the heck would the other way not work? Oh
> well... If anyone has an opinion, let me know.
>
> --
> Benjamin Sterling
> http://www.KenzoMedia.com
> http://www.KenzoHosting.com
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/