javascript and xajax issue

nzrubin used Ask the Experts™
Hi guys!
im making photoalbum with tabs and im using xajax to load the tab only if user click on it.
(otherwise all the photoalbum images will load and this will take to long)

the problem is that the photo at the  tab N1 is not poping up as it does in the tab N2


the javascript that pops up the photo is:

thank you for your help

the script below is how xajax is on my page
$xajax = new xajax();
function myFunction()
$newContent = '
<ul class="page" >
<div class="albm_title">South Island Ferry ride</div>
<li class="hz sub"><span><img src="" /></span>
<div class="photo_title"></div>
<img src="" alt="" title="" />
    // Instantiate the xajaxResponse object
    $objResponse = new xajaxResponse();
    // add a command to the response to assign the innerHTML attribute of
    // the element with id="SomeElementId" to whatever the new content is
    $objResponse->assign("SomeElementId","innerHTML", $newContent);
    //return the  xajaxResponse object
    return $objResponse;
}/// end function
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">';

Open in new window

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Add this after line 28

// Bind the click gallery events to the images (?)

Open in new window


coooooooooollllllllllllll!!!!!!!!!!!!!!! thank you!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial