Connecting Tech Pros Worldwide Forums | Help | Site Map

How can I "include" an HTML file from another server?

indessen@hotmail.de
Guest
 
Posts: n/a
#1: Mar 18 '06

Hi,

got the following problem: I want to include some code in an HTML page
so that at a particular place, it fetches another HTML file from
another server and puts it in. Reason for this is that this space keeps
changing. The original HTML runs on an eBay server, i.e. I cant place
the second file on their server.

Is there a standard HTML code or some Javascript that can do this?

Thanks,
Michael


Barbara de Zoete
Guest
 
Posts: n/a
#2: Mar 18 '06

re: How can I "include" an HTML file from another server?


On Sat, 18 Mar 2006 17:51:10 +0100, <indessen@hotmail.de> wrote:
[color=blue]
> got the following problem: I want to include some code in an HTML page
> so that at a particular place, it fetches another HTML file from
> another server and puts it in. Reason for this is that this space keeps
> changing. The original HTML runs on an eBay server,[/color]

Does author/owner of that page on eBay server know that you want to run
his/her content in your pages?



--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
indessen@hotmail.de
Guest
 
Posts: n/a
#3: Mar 18 '06

re: How can I "include" an HTML file from another server?



Does it matter? ;) But to answer your question: I run numerous auctions
on ebay and I want to run a self-ad in my auction, but because
everything runs automated with templates etc, I want to store the "ad"
on my own server and change it whenever I want to without having to
update the auctions or templates.

Barbara de Zoete
Guest
 
Posts: n/a
#4: Mar 18 '06

re: How can I "include" an HTML file from another server?


[ Before any further participating in usenet newsgroups, please read
<URL:http://www.safalra.com/special/googlegroupsreply/> or, better yet,
get a proper usenet news client ]

On Sat, 18 Mar 2006 18:06:26 +0100, <indessen@hotmail.de> wrote:
[color=blue]
> Does it matter? ;)[/color]

I don't see the humor in that. To me is does matter a lot, since my
content gets abused by others too many times.
[color=blue]
> But to answer your question: I run numerous auctions
> on ebay and I want to run a self-ad in my auction,[/color]

I have no idea what a self-ad is?
[color=blue]
> but because
> everything runs automated with templates etc, I want to store the "ad"
> on my own server and change it whenever I want to without having to
> update the auctions or templates.[/color]

I see. This is the other way around than I originally understood your
question. As I understand it now, you want to use some of _your_ code
within an auction that is run on eBay? I'm not familiar with eBay.


--
______PretLetters:
| weblog | http://www.pretletters.net/weblog/weblog.html |
| webontwerp | http://www.pretletters.net/html/webontwerp.html |
|zweefvliegen | http://www.pretletters.net/html/vliegen.html |
Penguiniator
Guest
 
Posts: n/a
#5: Mar 18 '06

re: How can I "include" an HTML file from another server?


indessen@hotmail.de wrote:
[color=blue]
>
> Hi,
>
> got the following problem: I want to include some code in an
> HTML page so that at a particular place, it fetches another
> HTML file from another server and puts it in. Reason for this
> is that this space keeps changing. The original HTML runs on an
> eBay server, i.e. I cant place the second file on their server.[/color]

http://www.w3.org/TR/html401/present...ml#edef-IFRAME

<IFRAME src="foo.html" width="400" height="500"
scrolling="auto" frameborder="1">
[Your user agent does not support frames or is currently
configured
not to display frames. However, you may visit
<A href="foo.html">the related document.</A>]
</IFRAME>
Roy Schestowitz
Guest
 
Posts: n/a
#6: Mar 19 '06

re: How can I "include" an HTML file from another server?


__/ [ Penguiniator ] on Saturday 18 March 2006 19:42 \__
[color=blue]
> indessen@hotmail.de wrote:
>[color=green]
>>
>> Hi,
>>
>> got the following problem: I want to include some code in an
>> HTML page so that at a particular place, it fetches another
>> HTML file from another server and puts it in. Reason for this
>> is that this space keeps changing. The original HTML runs on an
>> eBay server, i.e. I cant place the second file on their server.[/color]
>
> http://www.w3.org/TR/html401/present...ml#edef-IFRAME
>
> <IFRAME src="foo.html" width="400" height="500"
> scrolling="auto" frameborder="1">
> [Your user agent does not support frames or is currently
> configured
> not to display frames. However, you may visit
> <A href="foo.html">the related document.</A>]
> </IFRAME>[/color]

Thanks, Penguiniator. I wanted to do this 6 months ago, but the folks in
alt.html made no such suggestion.

In case you are curious, http://www.schestowitz.com/introduction.htm (see 2
iframes at the bottom).

Best wishes,

Roy
Stan Brown
Guest
 
Posts: n/a
#7: Mar 19 '06

re: How can I "include" an HTML file from another server?


Sat, 18 Mar 2006 11:42:08 -0800 from Penguiniator <no-
spam@spamme.com>:[color=blue]
> http://www.w3.org/TR/html401/present...ml#edef-IFRAME
>
> <IFRAME src="foo.html" width="400" height="500" scrolling="auto" frameborder="1">
> [Your user agent does not support frames or is currently configured
> not to display frames. However, you may visit
> <A href="foo.html">the related document.</A>] </IFRAME>[/color]

Thanks for jogging my memory. But having read the spec I'm confused
on one point:

How should I set the height attribute? I want this iframe to take as
much space as is available in the window. I know I don't want a fixed
number of pixels. But height="100%" is ignored by both Mozilla 1.7
and IE6. I tried style="height:100%" and that also had no effect. I'm
sure I'm failing to understand something about teh box model; can you
help me out?

I have a small test case for view at
http://oakroadsystems.com/math/deriv.htm
It passed validation by WDG and W3C for 4.01 Transitional.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Penguiniator
Guest
 
Posts: n/a
#8: Mar 19 '06

re: How can I "include" an HTML file from another server?


Stan Brown wrote:
[color=blue]
> How should I set the height attribute? I want this iframe to
> take as much space as is available in the window.[/color]

http://www.quirksmode.org/css/width.html

There is a css min-height rule available, but:

"Supported fully by Mozilla and Opera.

min-height is supported by Explorer 6 only for table elements
inside a table with table-layout: fixed.

min-height on body or html works only in Opera."

However, getting your iframe to stretch dynamically with such a
rule, even in Firefox or Opera, may give you disappointing
results. Try it to see what I mean.

And if you're worried about your IE user's experience with your
page as well as FF and Opera, ect., then this is out of the
question.

You're really kind of stuck with setting height explicitly.
Stan Brown
Guest
 
Posts: n/a
#9: Mar 19 '06

re: How can I "include" an HTML file from another server?


Sun, 19 Mar 2006 09:49:17 -0800 from Penguiniator <no-
spam@spamme.com>:[color=blue]
> Stan Brown wrote:[color=green]
> > How should I set the height attribute? I want this iframe to
> > take as much space as is available in the window.[/color][/color]
[snip references and comments][color=blue]
> You're really kind of stuck with setting height explicitly.[/color]

Thanks for your comments. I won't blame the messenger, but--

Drat! If I make it small enough for people with 800x600 screens (even
assuming that their browser window occupies the whole of the screen
height) it'll be way too small for people at higher resolutions. But
if I make it larger, then at low resolution there's both a scroll bar
for the iframe and a scroll bar for the overall browser window. At
least that's what Mozilla does, and I can't imagine IE being any less
annoying.

Any suggestions? I want users to be able to access these off-site
pages of mine without having to get into the other site's navigation.
Eventually I'll move them all over and integrate them into my main
site, but I was hoping for something quick and reasonably
satisfactory in the meantime.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Harlan Messinger
Guest
 
Posts: n/a
#10: Mar 20 '06

re: How can I "include" an HTML file from another server?


Stan Brown wrote:[color=blue]
>
> Any suggestions? I want users to be able to access these off-site
> pages of mine without having to get into the other site's navigation.[/color]

http://developer.ebay.com/
Stan Brown
Guest
 
Posts: n/a
#11: Mar 20 '06

re: How can I "include" an HTML file from another server?


Mon, 20 Mar 2006 08:56:50 -0500 from Harlan Messinger
<hmessinger.removethis@comcast.net>:[color=blue]
> Stan Brown wrote:[color=green]
> >
> > Any suggestions? I want users to be able to access these off-site
> > pages of mine without having to get into the other site's navigation.[/color]
>
> http://developer.ebay.com/[/color]

Sorry, eBay?

I think you may have my query confused with someone else's. (I didn't
start a new thread because my question, too, is about including a
page in another.)

My pages are presently at two sites. ORS <http://oakroadsystems.com/>
is primary and is where all development and maintenance happen. TC3
<http://www.acad.sunytccc.edu/instruct/sbrown/> is no longer
maintained. Eventually I want to bring my pages of general interest
over physically from TC3 to ORS. But as a first step I want to
integrate (some of) the TC3 pages into the navigation scheme of ORS.

http://oakroadsystems.com/math/deriv.htm is a first attempt, though
not adequate as has already been observed.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Nick Kew
Guest
 
Posts: n/a
#12: Mar 20 '06

re: How can I "include" an HTML file from another server?


Stan Brown wrote:
[color=blue]
> Drat! If I make it small enough for people with 800x600 screens (even
> assuming that their browser window occupies the whole of the screen
> height) it'll be way too small for people at higher resolutions.[/color]

So include it flexibly inline - eg with
<div class="included"> .....</div>

http://apache.webthing.com/mod_publisher/macro.html

--
Nick Kew
Stan Brown
Guest
 
Posts: n/a
#13: Mar 20 '06

re: How can I "include" an HTML file from another server?


Sun, 19 Mar 2006 09:49:17 -0800 from Penguiniator <no-
spam@spamme.com>:[color=blue]
> Stan Brown wrote:[/color]

relating to http://oakroadsystems.com/math/deriv.htm
[color=blue][color=green]
> > How should I set the height attribute? I want this iframe to
> > take as much space as is available in the window.[/color]
>
> http://www.quirksmode.org/css/width.html
>
> However, getting your iframe to stretch dynamically with such a
> rule, even in Firefox or Opera, may give you disappointing
> results. Try it to see what I mean.[/color]

If by "disappointing results" you mean "no results", I agree with
you. :-) Setting min-height didn't seem to have any effect at all in
Mozilla 1.7.
[color=blue]
> You're really kind of stuck with setting height explicitly.[/color]

I set 400, which seems about right for my 1024x768 screen. I've added
text making it easy for the user to reopen the page in a separate
window (which of course savvy users could do anyway).

Comments welcome.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
indessen@hotmail.de
Guest
 
Posts: n/a
#14: Mar 21 '06

re: How can I "include" an HTML file from another server?


thanks, that seems to work.! :)

any clue how to get rid of the visual frame?

indessen@hotmail.de
Guest
 
Posts: n/a
#15: Mar 21 '06

re: How can I "include" an HTML file from another server?


never mind about the frame, figured that out myself... ;)

thanks again!

Closed Thread