You are here: Re: Preventing Browser-caching between Frames « PHP Programming Language « IT news, forums, messages
Re: Preventing Browser-caching between Frames

Posted by Jerry Stuckle on 12/16/44 11:59

bvdb wrote:
> Hello,
> Erwin Moller wrote:
> ...
>
>>[Why not post this is a Javascript newsgroup?]
>
>
> Because there is no Javascript involved in my code, just HTML and PHP.
>
>
>>Two things:
>>1) You didn't describe how you detect the click.
>>Try using the onClick-event handler in Javascript ...
>
>
> My code works fine:
> If I load the list frame in a separate window and reload it the marking
> gets toggled on and off each time.
>
>
>>2) Caching. *IF* this is a caching-issue, just append some timestamp to the
>>url to prevent caching.
>
>
> This only works if the whole page would be regenerated - but the record
> frame remains the same, so the timestamp would also stay the same which
> makes it senseless.
>

The problem is each frame pretty much acts like a separate window from
the server's POV. That is, you can't force a frame to load from the
server end. You can update your data in one frame and send it to the
server. But only that frame will get updated - PHP can't force another
frame to get updated.

For that you'll have to use Javascript to request the second frame be
reloaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация