did it. I added a timeout function to the page:

setInterval(determineOrientation, 300);

determineOrientation is my method to handle the orientation specific
display stuff. that was the only way i could trigger that when going
back to a cached page. works great.

stan

On Jul 15, 5:35 pm, Jon Brisbin <[EMAIL PROTECTED]> wrote:
> This problem of caching has been discussed not too long ago. You  
> should be able to find a solution by searching the archives. At any  
> rate, onload handlers do not execute when you go back to a page that  
> is loaded from cache.
>
> I don't remember off the top of my head the easiest solution, but it's  
> not entirely trivial, as you're dealing with browser cache issues.  
> Some of that you may be able to eliminate by sending no-cache headers.
>
> Thanks!
>
> Jon Brisibnhttp://jbrisbin.com
>
> On Jul 15, 2008, at 3:23 PM, stan wiechers wrote:
>
>
>
> > hi there
>
> > i have a php driven iphone website which displays its elements
> > differently depending on the orientation of the iphone. lets assume
> > there is page1.php and page2.php and the orientation is vertical. the
> > user is on page1.php and follows a link to page2.php where he is asked
> > to change the orientation to horizontal for better display of a wide
> > image. then the user hits back and the page1.php is loaded as it was
> > in vertical mode. the page contains javascript methods that determines
> > the orientation and arrange the layout, unfortunately the javascript
> > is not executed again when you go back to that page. i want to be the
> > horizontal layout.
>
> > any idea how i can achieve a re-execution of the javascript to display
> > elements accordingly to the phone orientation?
>
> > appreciate any help,
> > stan

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to