Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-01-2002, 04:10 PM   #1
Member (9 bit)
 
tranman's Avatar
 
Join Date: Dec 2001
Location: New Mexico
Posts: 273
iframe problem

First time using iframe, and it's not working quite right. I'll post the code further down. The problem is that the page is supposed to show an icon (header), then iframe another web site, then have the footer info on the bottom of the original page. I tried putting the iframe sequence in, but when i try to test it, the original HTML flashes (it looks like it's going to work), then it just moves to the www site that I have in the iframe. Essentially, I've just created a giant, automatic link to the site. Any help? Here's the code...

(code removed by moderator)

Note: Please repost your code, but upload it as a text file instead, please.

Last edited by glc; 06-01-2002 at 11:45 PM.
tranman is offline   Reply With Quote
Old 06-01-2002, 09:41 PM   #2
Member (9 bit)
 
tranman's Avatar
 
Join Date: Dec 2001
Location: New Mexico
Posts: 273
iframe redux

Sorry about that last post. I didn't realize that my problem would be recreated in my post if I copied the HTML into the text of the message. Anyway, does anyone have any idea how to solve my problem? I'm trying to put another web site into an iframe. When the coding appears correct to me, it automatically jumps to a full page version of the iframe link, and I lose the header and footer of the original page. What am I doing wrong? Is it possible to put another site (.com) into iframe, or is it specifically for a page (.html)?
tranman is offline   Reply With Quote
Old 06-02-2002, 01:18 AM   #3
Member (9 bit)
 
tranman's Avatar
 
Join Date: Dec 2001
Location: New Mexico
Posts: 273
Update

Well, Microsoft's home page works just fine when named in an iframe. Pops up in the box just great. Can anyone tell me why www.swmls.com does not work then?
tranman is offline   Reply With Quote
Old 06-02-2002, 02:28 PM   #4
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Look in the source code of your page, you'll find this:
Code:
<script language="Javascript">
<!-- 

if (top.location != self.location) {
top.location = self.location.href
}

//--> 
</script>
This piece of code is responsible for reloading the page in the whole window.

Last edited by aym; 06-02-2002 at 02:31 PM.
aym is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:22 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2