Topic awaiting preservation: Iframe help! loading multiple pages in ONE Iframe from index.htm (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 02-15-2005 20:33
Okay all, |
Paranoid (IV) Inmate From: France |
posted 02-15-2005 22:17
Hello, and welcome in the Asylum code: <a href="portfolio.htm" target="frame1">blah</a> |
Obsessive-Compulsive (I) Inmate From: |
posted 02-15-2005 23:09
Thanks for the quick response, but let's run through this together. |
Paranoid (IV) Inmate From: France |
posted 02-15-2005 23:30
Oh! so you'll need to send in GET ( aka in the URL ) a parameter to tell your pageset.html page which page to load by default in the IFRAME. Usually this is a task for server side script, but it can be done on client side. code: < a href="pageset.htm?pageInFrame1=portfolio.htm">blah</a> Then in pageset.html you'll need some JavaScript to pick the infos in GET ( via the document.search property which would return ?pageInFrame1=portfolio.htm in that case) and set the src attribute of the IFRAME. |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 06:12
pageset.html has a banner and a flash file that needs to stay loaded the whole time in order to work... here is the link so you can check it out... http://www.bradparish.com/rta2/index.htm |
Paranoid (IV) Inmate From: France |
posted 02-16-2005 13:11
quote: You can simply do this with server side script. In PHP it will be damn easy. You could put the HTML markup of your banner and flash file in an external file, and include( ) it at the top of each page. Period. code: <FilesMatch "\.html$"> That will treat the .html files as PHP and will auto append the file banner.php |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 14:12
Thanks for the advice, but have one last question.. returning to my original question... what does the script look like that needs to go in the pageset.html to GET the portfolio page in the iframe... I would like to know for future knowledge... Thanks for all your help.... |
Paranoid (IV) Inmate From: France |
posted 02-16-2005 14:29
code: <script type="text/javascript"> To learn more about JavaScript and DHTML, be sure to check the Javascript/DHTML and DHTML/JavaScript. |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 14:54
looks great, thank you for all your help... i will read up on your links.. thank you and have a good day... |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 16:13
I inserted the above script into my document, and i am getting a blank page in the iframe. What am I doing wrong... i set the src of the frame code: src = "_GET['frame1']"
|
Maniac (V) Inmate From: under the bed |
posted 02-16-2005 16:17
to go along with Poi's suggestion of doing this server side, these tutorials at the Gurus Network be useful: |
Paranoid (IV) Inmate From: France |
posted 02-16-2005 16:19 |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 17:39
looking at the php tutorials, can you position where the pages are loaded into the template.. via tables, or css... Because I have a side menu and top header. so i would need to position the page load in x=225 7 y =105... that is how i have it lay out now... |
Paranoid (IV) Inmate From: France |
posted 02-16-2005 18:04
Yes your menu can be loaded in the template, and positionned with CSS. Avoid tables if you don't use them to display tabular datas. quote:
|
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 19:29
Will I get the same effect as the flash menu.. I like how it expands and contracts when I click other buttons.. I have found other menu that just expand all the way, but does not contract when another button is hit. I would pefer not to use the flash navigation because it will cause problems.. |
Maniac (V) Inmate From: under the bed |
posted 02-16-2005 19:53 |
Paranoid (IV) Inmate From: France |
posted 02-16-2005 20:09
Doh! I double checked the page you gave ealier, and actually I didn't knew I had to click on the texts to open a sub level of navigation. Since nothing happened when I hovered the texts I thought they were completely inactive. |
Obsessive-Compulsive (I) Inmate From: |
posted 02-16-2005 20:28
I will make the hover a different color so that you know to click on the menu.. Thanks for all your help today... I have learned alot and need to catch up on all the readings that are linked to this page....thanks again. |