Hacker News new | past | comments | ask | show | jobs | submit login

I would skip the jQuery-ahm, especially since you are already committed to jQuery as a dependency.

//Overly simplified example $.get('tooltips.php?id=tooltip-id',function(data){$('#tt').text(data);});




Yeah I see your point, but when I said 'one line' I meant more like 'one word.' jQuery-ahm just uses a 'ahm' class on the html link to the Ajax endpoint. like <a href='/tooltip3' class='ahm'> and that's it. The line of jQuery you wrote is still very dense.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: