Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do I display a web page inside a web page? (there's a catch)
Old 03-05-2009, 11:26 AM How do I display a web page inside a web page? (there's a catch)
Junior Talker

Posts: 2
Trades: 0
Hi, I'm trying to throw together a simple web page that will display the contents of another web page. The catch is that I want to lock the displayed web page as to disallow any clicking on links, etc.

Right now I have this set up with frames (I know, frames suck) where there's a menu on the left whose links display different pages in the main window. Fine and great, but I don't want anyone doing anything but looking at the info in the main window (no clicking!).

This is being set up as a way to publicly display traffic reports from network monitoring software (I'm a network dude, not a web designer, so my skills here are limited).

Any suggestions, or can this even be done?
bshuster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-05-2009, 12:26 PM Re: How do I display a web page inside a web page? (there's a catch)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use an iframe in a container, then overlay it with an absolutely positioned transparent element.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-05-2009, 04:49 PM Re: How do I display a web page inside a web page? (there's a catch)
Junior Talker

Posts: 2
Trades: 0
Ok, I got the iframes part down. Anyone have a good resource on creating an "absolutely positioned transparent element"? I've been searching google, but can't find very specific info.
bshuster is offline
Reply With Quote
View Public Profile
 
Old 03-05-2009, 09:29 PM Re: How do I display a web page inside a web page? (there's a catch)
johniman7's Avatar
President, JLI Media

Posts: 965
Name: John Irving
Trades: 0
I am assuming by what you said this is a full page have. So you would create a div, we could call it blocker...

I was going to suggest some code, but since I had to tinker with it anyway, I just made the page for you, you can copy the css and html behind it and edit to your liking...

http://www.jlimedia.com/window/

If you look at the page it does what chris said. A 100% iframe with an absolutely positioned transparent element.

You can just view the source and copy. Notice it has this thread in the "window" that it creates.
__________________
Cheers, John Irving: My Blog
JLI Media:
Please login or register to view this content. Registration is FREE
| Website Development (Link Coming Soon!)
johniman7 is offline
Reply With Quote
View Public Profile Visit johniman7's homepage!
 
Old 03-06-2009, 04:25 AM Re: How do I display a web page inside a web page? (there's a catch)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
getting a DNS error on that site John.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-06-2009, 04:38 AM Re: How do I display a web page inside a web page? (there's a catch)
jay_wonders's Avatar
Novice Talker

Posts: 6
Name: Jay
Trades: 0
Use following code, this will work if you use xhtml doctype.

<!--#include file="filename.html"-->

Have a great day...
jay_wonders is offline
Reply With Quote
View Public Profile
 
Old 03-06-2009, 04:48 AM Re: How do I display a web page inside a web page? (there's a catch)
Average Talker

Posts: 24
Trades: 0
Don't use frames, if you're using a programming language ( PHP, JSP, ASP ) you can easily insert a page into another page.

Also, you might be interested doing this using JS / Ajax.
__________________
+
Please login or register to view this content. Registration is FREE

eugen is offline
Reply With Quote
View Public Profile
 
Old 03-06-2009, 07:02 AM Re: How do I display a web page inside a web page? (there's a catch)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by jay_wonders View Post
Use following code, this will work if you use xhtml doctype.

<!--#include file="filename.html"-->

Have a great day...
Having a XHTML doctype will NOT allow you to use server side includes. Your server must be set up to allow it first.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-06-2009, 07:04 AM Re: How do I display a web page inside a web page? (there's a catch)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by eugen View Post
Don't use frames, if you're using a programming language ( PHP, JSP, ASP ) you can easily insert a page into another page.

Also, you might be interested doing this using JS / Ajax.
Actually, for the use they are being put to frames or iframes are the perfect solution.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-06-2009, 07:08 PM Re: How do I display a web page inside a web page? (there's a catch)
johniman7's Avatar
President, JLI Media

Posts: 965
Name: John Irving
Trades: 0
Is my links still showing a DNS error? If it doesn't work I'll try another domain or just post the entire code in here. I have it working just how he wants.
__________________
Cheers, John Irving: My Blog
JLI Media:
Please login or register to view this content. Registration is FREE
| Website Development (Link Coming Soon!)
johniman7 is offline
Reply With Quote
View Public Profile Visit johniman7's homepage!
 
Old 03-07-2009, 03:54 AM Re: How do I display a web page inside a web page? (there's a catch)
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Working now, I take it that it was a brand new site.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How do I display a web page inside a web page? (there's a catch)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.86214 seconds with 12 queries