Click to See Complete Forum and Search --> : Could some one show me how to use the embed?
aidanmack
05-25-2006, 04:47 AM
Hi,
I have never used the Embed function in HTML
Is it possible to use it for loading another page in?
for example below i have used the embed function to try un load google in to another page but this doesnt seem to work...
<EMBED name="test" src="http://www.google.co.uk/" height="100" width="200"></EMBED>
Is it actually possible to get it to work?
I am simply looking at diffrent ways of getting pages to load in to other pages.
So far i have succesfully mastered the ways of the iframe!
Thanks
Aidan
the tree
05-25-2006, 06:38 AM
I have never used the Embed function in HTML.That's good because there isn't one. <embed> is a proprietry tag and doesn't appear in the HTML specifications.
From the example you gave, iframe is the most apropriate element to use.
object could also do it I suppose, but shouldn't need to.
What's your reason for wanting to do this anyway?
Chalk4Brains
05-25-2006, 06:58 AM
Hi,
I have never used the Embed function in HTML
Is it possible to use it for loading another page in?
for example below i have used the embed function to try un load google in to another page but this doesnt seem to work...
<EMBED name="test" src="http://www.google.co.uk/" height="100" width="200"></EMBED>
Is it actually possible to get it to work?
I am simply looking at diffrent ways of getting pages to load in to other pages.
So far i have succesfully mastered the ways of the iframe!
Thanks
AidanYou can use the embed tag to load a web page in an existing one but you need to use the tag in conjunction with the object tag. See below:
<object data="http://www.somesite.com/somePage.htm" width="600" height="400">
<embed src="http://www.somesite.com/somePage.htm" width="600" height="400"></embed>
</object>The only problem with this is that you have to specify a URL, under the src="" attribute, that points to a specific file, and not just a website domain name. If you simply put in a URL like http://www.somesite.com/ for the src="" attribute, nothing would load in the embedded area.
However, I would recommend you stick with using iframes for this purpose.
Hope this helps....
aidanmack
05-25-2006, 07:11 AM
What's your reason for wanting to do this anyway?
Thanks for your help.
Sounds like i am best stickin with an iframe.
Basically we designed a database orientated site on another server with a different domain...
But now the boss says he wants to incorporate it in to another site. due to diffrent reasons the only way i can do it is to actually pull the database page into the one he wants it in.
if that makes sense!..
Iframe i think sounds the best route.
Does any one no of any problems i should be aware of when using a Iframe? for example browser or os probs?
thanks
Aidan
Chalk4Brains
05-25-2006, 07:37 AM
Thanks for your help.
Sounds like i am best stickin with an iframe.
Basically we designed a database orientated site on another server with a different domain...
But now the boss says he wants to incorporate it in to another site. due to diffrent reasons the only way i can do it is to actually pull the database page into the one he wants it in.
if that makes sense!..
Iframe i think sounds the best route.
Does any one no of any problems i should be aware of when using a Iframe? for example browser or os probs?
thanks
AidanAs far as I am aware the iframe tag is supported in the following browsers:
Internet Explorer v3 and above
Netscape v6 and above
Opera v5 and above
All other, newer versions of browsers, such as, Mozilla Firefox, should support the iframe property as well.
aidanmack
05-25-2006, 07:39 AM
Thats great,
Thankyou all very much for your time and help