That .live() code wouldn't work because what you've really written is:
var temp = exp_iphone_get_trans();
$('#transactions ul li a').live('click tap', temp);
Now you can probably see what the problem is with that. By adding the ()
after the function name, you are *calling* the funct
Use the callback of load function
$('#transactions').hide().load(url, function(){
$('#transactions ul li a').bind('click tap', exp_iphone_get_trans);
}).fadeIn();
On Sat, Dec 26, 2009 at 19:29, mrtoner wrote:
> Okay, the answer is probably obvious to you that are old hands at
> jQuery, but
Okay, the answer is probably obvious to you that are old hands at
jQuery, but I'm not seeing it. I finally figured out that if I load
new content via AJAX:
$(document).ready(function(e){
...
exp_iphone_get_sales();
});
function exp_iphone_get_sales() {
..
3 matches
Mail list logo