View Full Version : Dynamic DIV
01-13-2010, 05:28 PM
Hello all. I am currently viewing various reports based on a location chosen by a dropdown. When I select GO, the page sends the location to a popup, which then queries based on that location and displays the graph on the popup window. What I want to do is to eliminate the popup and send the location to a <div> on the same page and then have the query run and display the graph on the same page. Is this possible, or do Divs have to be static content?
01-13-2010, 06:13 PM
It can be done with AJAX (or 'SJAX' in this case):
var request=window.XMLHttpReqest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
request.open("GET", "yourpage.html", false);
but why not just use an iframe?
01-13-2010, 07:10 PM
Thanks alot. I totally forgot about iframes. As usual, I always try to over complicate things... :)
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.