I posted this in the random tech thread but, it didn't get any responses. I think it might be an issue that merits a thread as well as I'm not sure how simple or complicated the answer is.
Which would take less bandwidth from a server. (not the individual although the individuals bandwidth would be nice to know as well)
Scenario one:
We have a php file that is iframed onto the main page. The php file on the main page displays only text characters and hyperlinks. In this scenario the php file is set with meta tags to refresh the php page every 3 minutes. Since the iframe is dependent on the php value, the iframe changes to reflect it and everyone is forced from 3 minutes of their entrance to reset that php page. Thus getting the new value on the php page
Scenario 2
We have a php file that is iframed onto the main page. The php file on the main page displays only text characters and hyperlinks. Rather than using metatags in the php file to refresh the page, on the main page is a script that only refreshes the iframe itself. The interval of refresh is the same. The value of the php file still changes just does not force a refresh of the php file, the script on the main page takes care of it by only refreshing the iframe. Downside to this is having a script on the main page
I think the argument is scenario 1 = a page refresh vs scenario 2 =only an iframe refresh. I think anyway but I figured I ask, either way emulate the main page to refresh slightly. Scenario 1 causes a slight refresh with all elements in tact just the iframe recognizes the php file forced a refresh so it changes that value. The second scenario is causing a slight refresh because the script is forcing the iframe to refresh. Or is it that there is no difference between the methods?
XI Wiki

