Click to See Complete Forum and Search --> : Embedding HTML page into another...


atari37
04-04-2007, 06:20 AM
Hi,

I'm working on a simple template with left navigational menus, header, footer and body. I want to be able to click on a link from the left menu and have it open in the body and not a different browser.

For example, the left nav menu has link for developers, new, search engine...Now, when I click on developers link, I want it to open webdeveloper.com in the body of the same page (right side of the page), etc.

Can this be done? Any help with be greatly appreciated. Thanks in advance.

gil davis
04-04-2007, 07:02 AM
I believe it is called an "iframe". ;)

atari37
04-04-2007, 07:09 AM
I believe it is called an "iframe". ;)

Thanks for the response, I will look into iframe. One other question.

Is it possible to have 2 different blocks of java script on one page? It's be a while since I did anything with HTML but if i'm not mistaking, I don't think you can have two different java script blocks (<script> </script>. I'm I right?

gil davis
04-04-2007, 08:16 AM
Is it possible to have 2 different blocks of java script on one page? It's be a while since I did anything with HTML but if i'm not mistaking, I don't think you can have two different java script blocks (<script> </script>. I'm I right?There is no limit to the number of javascript blocks you can have in a page.

atari37
04-04-2007, 08:28 AM
Okay...I've looked at iframe and I think it will serve my purpose. I'm hoping there's a way to widen the width of the iframe box to prevent too much scrolling...that's my only concern right now.

thanks again.

sae
04-05-2007, 03:44 PM
instead of iframes use php includes. MUCH more flexible. You do need php enabled on your webhost though.

WebJoel
04-05-2007, 04:19 PM
If your host doesn't allow *php, -time for another host. A nice FREE, ad-free host is awardspace.com They allow *php on even the 'free' account, and you have 200MB of space, no pop-up/under ads, you can use their uploader or your own FTP (<--preferred method), they leave you alone (no e-mails suggesting the benefits of 'upgrading to a premium package' of which theirs are quite nice :) ), you can conduct e-comm on your free site (most 'free hosting' forbids that for some nebulous reasoning and demands that you 'upgrade to a commercial package'). :)

Major Payne
04-05-2007, 04:20 PM
An example iFrame code if you can't go with php includes:

<iframe id="iframe#1" class="sidebar right" style="frameborder: 0; marginheight: 1%; marginwidth: 1%; scrolling: no;" src="coollinks.html"></iframe>

Adjust to fit your iFrame. Or use this online Iframe Generator (http://www.gotfusion.com/tutsdl/iframe_basics.cfm). Also, covers iFrame basics.

Ron