| | |
Get the output of a webpage and assign it to a Div...
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2008
Posts: 31
Reputation:
Solved Threads: 0
Does anyone know of a way to retrieve the output of a webpage and place the output in the current web page (not using iframes)?
For example, here is a simple web page (test.html):
<html>
This is just a test
</html>
I would like to take the output of this page and insert into my current page:
<div id="test">
This is just a test
</div>
Thanks in advance,
Mapper
For example, here is a simple web page (test.html):
<html>
This is just a test
</html>
I would like to take the output of this page and insert into my current page:
<div id="test">
This is just a test
</div>
Thanks in advance,
Mapper
•
•
Join Date: Apr 2008
Posts: 31
Reputation:
Solved Threads: 0
Would something like this work:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function testIIS(){ var http1 = getHTTPObject(); http1.open("GET", "http://devsptl/test2/test.txt", true); http1.onreadystatechange = function() { if (http1.readyState == 4) { alert(http1.responseText); } } }
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Popup Window from parent window
- Next Thread: is it possible to retrieve manufacturer information using javascript?
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column cookies createrange() css cursor dependent disablefirebug dom download dropdown editor element engine error events explorer ext file form forms google gwt gxt hiddenvalue highlightedword html htmlform ie8 iframe image() images internet java javascript jawascriptruntimeerror jquery jsf jsfile jump libcurl math matrixcaptcha microsoft mimic object onerror onmouseoutdivproblem onreadystatechange parent pdf php player post problem progressbar rated rating regex runtime scroll search security select session shopping size software sql star stars synchronous text textarea unicode validation w3c web website window windowofwords windowsxp wysiwyg xml \n





