Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problems with iFrame - Help?

Okay, I am trying to insert a scrolling text box in an iFrame and used the code from iWeb FAQ. No problem there.

I created the page I wanted the iFrame in and altered the size of the box to suit my needs. I then created a blank page called iFrame and hid it from the navigation bar and set the size to the size of the iFrame.

I then went back to the html snippet and altered the address to my own website, site name and page, but when I clicked on apply, all it came up with was "We cannot find page on this server".

What am I missing or doing wrong with this?

I have named the pages with .html at the end and have done the same with the address in iWeb, although the site has not been published. Is this correct, or have I done something obvious wrong?

Thanks.

MacBook Core 2 Duo, iPhone, Mac OS X (10.5)

Posted on Mar 1, 2010 2:24 PM

Reply
13 replies

Mar 2, 2010 3:45 AM in response to star-fish

I can't provide a url at present, as the site is not published - I decided to try and experiment with iFrames, before publishing. Anyway, if it helps I can tell you exactly what I did? 1. I created the page where I wanted the iframe to go and placed an html snippet on the page and entered the relevant code, changing colours and sizes to suit my needs. I tested it by placing a link to the Apple website and that displayed immediately in the iframe with no problems. This page has been given the page name that I want and is included in the navigation menu. 2. Next, I created a blank white page that I named iWeb_iframe.html in iWeb and took this page out of the navigation menu. I proceeded to set the same width and height in the page settings as I did in my iframe - namely 750/450. It was on this page that I inserted my text that I wanted displayed in the iframe. 3. Next, I went back to the iframe on my page and went to

Mar 2, 2010 3:56 AM in response to Ethmoid

If you want to link to a iWeb page in the same Site use this :

<iframe src="../../iwebpage.html" width="500" height="500" frameborder="0" scrolling="yes"></iframe>

Change the width and height and apply CSS styles to the iframe.

Make sure links on the embedded page are set target="_top" otherwise the new pages are displayed in the Frame.

More info : [IFRAME - Inline Frame|http://htmlhelp.com/reference/html40/special/iframe.html]

Mar 2, 2010 7:58 AM in response to Wyodor

Okay, thanks for this. However, I have tried it and it is still not working. I placed the link into where the iFrame text is and tried linking to the page both with and without the .html at the end and all I get is a totally blank box with no text in whatsoever and with just the border and no scrolling feature.

When I try it and insert http://apple.com, the site load immediately, but not the text.

I am now at a loss to understand why it won't work?

Any more ideas?

Thanks

Mar 2, 2010 10:35 AM in response to Wyodor

Okay, so I made it work - created the text on the blank page that I wanted to go in the iframe and then published to a folder from iWeb. I then used Cyberduck to upload both files and html page to my server.

I then went back to my other page where my iframe was and placed the link in there to mydomain.com/page name and low and behold it has worked.

Problems with iFrame - Help?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.