It's working.  It was the 'complete', I was not calling the function
correctly -> init() instead of imgReplace.init()

Thanks!

On Jun 24, 1:53 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Thanks for the replay Michael
>
> I tried the complete with evalScripts set to true and no luck.  I also
> tried 'success' but that
> did not do the trick.  I think it has to be in the callbacks, just can
> not figure out where.
>
> Thanks again.
>
> On Jun 24, 12:50 pm, schneimi <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I think this is because the javascript-code that comes with the ajax
> > answer is only inserted but not executed. There is the ajax-Option
> > evalScripts, you may try to set that to true.
>
> > I am not sure with 'complete', if I am not wrong it is executed at the
> > end of the ajax-call, but this is yet before the end of the code
> > insertion, so the next three thumbs may not already be there on
> > execution of 'complete'.
>
> > If I remember where I had a similar problem, I will let you know.
>
> > Hope this helps anyway,
>
> > Michael
>
> > [EMAIL PROTECTED] schrieb:
>
> > > Any direction on this is much appreciated, I think I need to somehow
> > > use the 'complete' option on the ajax call but I cannot get it to
> > > work.
>
> > > I have an image gallery that displays one big image in the preview
> > > pane, and three thumbnails.  I use an ajax call to fetch the next
> > > three or previous three based on user selection.  I also use
> > > javascript to load a selected thumbnail into the preview pane
> > > onclick.  I am not using any inline javascript (no 'onclick'), I add
> > > an event listener to each thumbnail.  Problem is that when the next
> > > three thumbnails are populated via the ajax, the event listeners are
> > > not getting added to them.
>
> > > Is there a way I can force the javascript to add the event listener
> > > after the ajax call returns the next three (or previous three)?
>
> > > Thanks much for any time and direction.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to