how to load a page in a div tag

hi,
i have a asp page in which iam using iframe to load a aspx page,but it is taking long time to load a page,so we r using div tag to load a page.is this possible to load a page using div.whats the javascript to load a page using div tag.
waiting for replies.

iam talking abt javascript only, i have html tag div,i want to load a page in to that div tag,is there a way to load a page using div tag

javascript can load content into a div tag, but that content has to come from somewhere and javascript cannot open a file (page) on its own. So you would need to send the page information to javascript and have it load that page information.

How do you propose getting the page-content-information to javascript?Ajax?
Preloaded when you load the main-page?

Have you considered using an iframe <iframe> element and having javascript load the page into the iframe? This is pretty easy and might be what you're looking for.

I would be surprised if using a <div> instead of an <iframe> reduces your load time, but you are free to explore this possibility...

I'm a PHP programmer, so I will use that as my server-side script example (sorry) and show one way to load that page into a <div> tag with JavaScript. But remember, if this page has full <html><head>...</head><body>...</body></html> type tags, this will be incredibly mangled and ugly results.

Hi I realize this thread is kind of old, but hopefully someone will be able to help me.

I am currently working on a photo portfolio site for a client, however I am trying to do it with AJAX and as I am still very new to AJAX. I am in need of some help, and my usual source doesn't know AJAX yet. :(

Ok what I am trying to do:

I have a image menu which expands the images when you roll over them (javascript using mootools) I want to make it so when the link in the menu is clicked it load in a html div below the image menu. Also I would liek to do it so that only the div updates and the whole page doesn't refresh, if it is possible. Also i am using php.

Hi.
I've been asked to do a project, and I've been out of the web development game for about a decade.
Since then, I've only occasionally been editing files, content, etc. and not really desigining websites.

Anyways, back when I was doing this, frames were the shiz and the fact that I could do that blew people's socks off.
Now, CSS is king, and so I need to load a website into a div.
Iframes wont work because it looks like crap when i've tried to use it.

Moving on, the website is healthytnteens.net.
The particular page im working on is index108.html.
What I'd like is to click on the pulldown menu "teen topics", and click on the second option "tobacco use" it to load "tobaccouse.html" (or whatever) into that main div called "featured_marketplace2". (Cut me some slack, i got a template and didnt rename the divs). Anyways, I know the javascript is working because it performs a function, but the WRONG function. It takes me back to "healthytnteens.net".
How do I change the below code to get it to load "tobacco.html" or whatever within that main div?

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error ...