SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 17th, 2000, 03:39 PM
talkshow talkshow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Lincoln, NE US
Posts: 2 talkshow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay, here is the question. This may be simple, or maybe not. I am trying to pull an external page (or cgi call, etc...) into an html page. The trouble I'm having, is that I do not want to use Frames, am not sure about using javascript, and have learned a little about using iFrames (or floating frames). Please advise.

Reply With Quote
  #2  
Old February 24th, 2000, 08:42 AM
selana selana is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: athens,greece
Posts: 2 selana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
when you say "pull" what do you mean???

------------------
gee......thanks!

Reply With Quote
  #3  
Old February 24th, 2000, 08:53 AM
talkshow talkshow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Lincoln, NE US
Posts: 2 talkshow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When I say 'pull', I want to set it up like a Server Side Include (SSI), but obviously the file to include does not reside on the native server so SSI won't work.

Reply With Quote
  #4  
Old February 24th, 2000, 11:38 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 43
As I see it, you have a couple of choices: one is to use PHP, if your server can or will support it. The PHP include() function can act like SSI but bring in any URL. That is your simplest way of doing this, but it requires server-side code (a very small amount)

Another choice works only for Netscape 4+ : the <LAYER> or <ILAYER> tag lets you specify an external source.

For Internet Explorer, you might use the <IFRAME> tag which can essentially do the same thing.

To work for both browsers, just set up a browser checking script and you're done.

Reply With Quote
  #5  
Old February 24th, 2000, 12:56 PM
Argrajoca Argrajoca is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: SPAIN
Posts: 47 Argrajoca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Try to put this where you want the frame:
<body>
......

<script language='javascript'>
var IE4=(document.all) ? 1 : 0;
var NN4=(document.layers) ? 1 : 0;
if (IE4) {
var theSource='<iframe id="Floating" src="http://www.floating.com/float.htm" width=300 height=100></iframe>'
document.write(theSource)
} else if (NN4) {
var theSource='<layer id=Floating src="http://www.floating.com/float.htm" width=300 height=100></layer>'
document.write(theSource)
}
</script>


....
</body>

Change width, height and URL according to your needs. It works better in IE that in Netscape, but the result is similar

Reply With Quote
  #6  
Old March 17th, 2000, 08:21 AM
sbarre sbarre is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 3 sbarre User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Doesn't cross-site scripting security prevent you from accessing the content of the IFRAME or ILAYER through scripting, if the SRC is from another hostname?


Reply With Quote
  #7  
Old March 28th, 2000, 05:39 PM
gmiller gmiller is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Posts: 5 gmiller User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
All of these approaches assume you want to include dynamic content. If you're just trying to avoid cut-and-pasting navigation links or something along those lines, you can use a preprocessor to include the chunks of text into your documents statically. Dozens of utilities to accomplish this are available on FreshMeat and other places.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Pull external html page into page Without Frames


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway