Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Small AJAX issue. Please help me out guys Re: [Solved] Small AJAX issue. Please help me out guys

#78260
noahgelman
Participant

I tried

Code:
$(function() {
$(“#artwork ul”).live(‘load’, function(){
//whatever you want to do

$(‘#artwork li a.quick-view’).css({‘display’ : ‘block’, ‘opacity’ : 0});

$(‘#artwork li’).hover(
function() {
$(this).children(‘.quick-view’).stop().animate({
opacity: 1,
},200);
},
function() {
$(this).children(‘.quick-view’).animate({
opacity: 0,
},400);
}
);
});
});

And also without the ul in the function with .live() attached to it. Did I do it right?

Another note in case it’s important (sorry, I forgot to mention it), the AJAX isn’t being controlled by my jquery, it’s being controlled by php. The site is being built on the Zend Frame work and I’m a front end guy so I don’t have much of any experience in it. Is there anything you could suggest?