samdeskin
04-26-2006, 01:08 AM
I think this will be a fun challenge for a really creative programmer:
1. Have three iFrames in one Browser window for the websites Google, Yahoo, and Wells Fargo.
----A. Google behaves well in iFrames
----B. Links on Yahoo seem to open in a new browser
--------i. The links on the websites should open within their respective iFrames – unless the user right clicks and decides otherwise or the website requires the link to be opened in a new window.
----C. Wells Fargo seems to open in a new window, not the iFrame – but other sites with SSL do just fine.
--------i. The websites should open within their respective iFrames
2. Using one set of buttons in the browser window so the user can go Back, Forward, Refresh and Close the active iFrame.
----A. Traditionally, iFrames use the browser’s history. What we need is a way to access the “history” for each iFrame separately, so pressing Back does not cycle through the browser’s history, but “the iFrames’ history.”
3. There also seems to be some interactivity issues with iFrames and cookies. For example, Google, does not seem to recognize that cookies are turned on or that the user is already logged in outside of the iFrame.
Here is the script I have so that does not work...
<table width="100%" height="100%"><tr>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://google.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"><p></td>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://yahoo.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"></td>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://wellsfargo.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"></td>
</tr></table>
Any thoughts??
sam
1. Have three iFrames in one Browser window for the websites Google, Yahoo, and Wells Fargo.
----A. Google behaves well in iFrames
----B. Links on Yahoo seem to open in a new browser
--------i. The links on the websites should open within their respective iFrames – unless the user right clicks and decides otherwise or the website requires the link to be opened in a new window.
----C. Wells Fargo seems to open in a new window, not the iFrame – but other sites with SSL do just fine.
--------i. The websites should open within their respective iFrames
2. Using one set of buttons in the browser window so the user can go Back, Forward, Refresh and Close the active iFrame.
----A. Traditionally, iFrames use the browser’s history. What we need is a way to access the “history” for each iFrame separately, so pressing Back does not cycle through the browser’s history, but “the iFrames’ history.”
3. There also seems to be some interactivity issues with iFrames and cookies. For example, Google, does not seem to recognize that cookies are turned on or that the user is already logged in outside of the iFrame.
Here is the script I have so that does not work...
<table width="100%" height="100%"><tr>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://google.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"><p></td>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://yahoo.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"></td>
<td width="33%"><iframe align="center" width="100%" height="95%" src="http://wellsfargo.com" frameborder=yes name="myIframe" id="myIframe"></iframe>
<p align="center"><input type="button" VALUE="Back" onClick="history.go(-1)"><input type="button" VALUE="Forward" OnClick="history.go(1)"><input type="button" value="Refresh" onClick="window.location.reload()"><input type="button" VALUE="Close" OnClick="window.close()"></td>
</tr></table>
Any thoughts??
sam