PDA

View Full Version : How to Use 1 DIV tag to display 2 pages?



pranav
Apr 19th, 2009, 08:17 AM
I am Wondering how i can use only on <div> tag to display two pages(urls)..
I dont have to use iframe for this, i want to do this usiong <Div> tag only, alongwith all code inside the same tag.:confused:

BubikolRamios
Apr 19th, 2009, 11:52 AM
do this server side, in java you have



<jsp:include page=" ...

pranav
Apr 19th, 2009, 02:05 PM
I was asked to do this,

Create one sample.htm file ,
sample.htm must have no css file.
I have to place all the HTML source code of 2 different pages, all inside one < div>< /div>

And make it display as two different page, How can i do this please throw some light.

P.S. DO NOT USE IFRAME....

Bill Posters
Apr 19th, 2009, 02:17 PM
To have both pages appear as distinct pages, you'll need to use either frames or iframes. There is no other way.

A syntactically correct and well-formed markup document can have only one head and body element/object. If you start embedding/including additional sets of head and body elements within a markup document, then you're creating malformed documents - with no assurance as to how different browsers will attempt to make sense of it.

randyfisher
Apr 20th, 2009, 07:22 AM
Please visit these are links which will support you in your problem."how i can use only on <div> tag to display two pages(urls)..".

www.w3schools.com
www.phpsimple.net
www.tizag.com

Thanks,
Randy Fisher
acai berry (http://www.amazonthunder.com)