| | |
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: 30
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: 30
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 |
acid2 ajax ajaxcode ajaxhelp animate array automatically beta box bug calendar captchaformproblem cart checkbox child class codes column cookies createrange() css cursor decimal dependent design disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox focus forms frameworks google gwt html htmlform ie8 iframe images index internet java javascript jawascriptruntimeerror jquery jsf jsfile jsp jump listbox masterpage math menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent pdf php player post problem progressbar prototype redirect regex runtime scale scroll search select session shopping size sql text textarea toggle w3c web website window windowofwords windowsxp wysiwyg \n





