I don't know anything about the fancyzoom js other than looking at the
web site for 10 seconds just now but it sounds like you need to run
the setupZoom function each time you load a new page after tapping a
link so my answer is based upon that assumption. I have a similar
problem because I want to use jqplot to generate plots in returned
pages and need to run some javascript after a new page is loaded.
You need to include the fancy zoom javascripts in the head section of
the initial document you send to the device, not any subsequent pages.
So basically where you have a ref to include the iui js in the page
head section you also need to add in the fancyzoom js includes as
well. That gets the basic script into your main page so it's part of
the DOM when the page first loads. You might need to also call the
setupZoom function after the initial pages loads if it has any images
on it you want to zoom to.
Basically after that you need to rerun the setupZoom after each new
page is loaded. What I did is setup an event listener for the ? event,
thus:
addEventListener("aftertransition", function(event)
{
if (event.out == false) {
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" 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/iphonewebdev?hl=en.