Click to See Complete Forum and Search --> : A <div> question


Bcoons
12-30-2002, 03:52 PM
Heres what I'm trying to do, I'm trying to use div.innerHTML to place the HTML output of an ASP page. i.e.

<div id="test"></div>

<script language="JavaScript">
test.innerHTML = pagewithinfo.asp
</script>

Now, I realize that setting test.innerHTML to pagewithinfo.asp will just output that text on the website, instead I want the processed HTML from pagewithinfo.asp to be displayed in the div.

Any help is appreciated! :)

khalidali63
12-30-2002, 04:01 PM
I am sure there is a way to read urls in a asp.
read the desired url in asp,put it in a string and then put that string something like this

test.innerHTML = <% urlReader()%>

My asp code is most probably wrong(Since I don't know it...*-*)

But the logic will work

cheears

Khalid

Bcoons
12-30-2002, 04:05 PM
the idea behind this is, i need to use dynamic output on a standard HTML page. I can't use asp code on the page with the DIV and Javascript. So I need some sort of javascript command that will return the HTML output of a page to a variable.

(If you're curious why I need to do this, the website's pages were registered into search engines with HTML extensions, I can't just change those to ASP extensions without reregistering it)