| | |
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 |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captchaformproblem checkbox child class close codes date debugger dependent developer disablefirebug dom editor element embed engine events explorer ext file firefox flash form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming rated redirect runtime safari scriptlets scroll search security session shopping size software solutions sources star stars stretch synchronous tweet unicode variables web webkit webservice window wysiwyg \n





