chanchelkumar Posted March 29, 2007 Share Posted March 29, 2007 Hi dudes, I want to load two div in one action!!! Is there any hope!!!! Link to comment https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/ Share on other sites More sharing options...
chanchelkumar Posted March 29, 2007 Author Share Posted March 29, 2007 ???[move]NO HELP FROM HERE!!!!!!!!!!!!!!! :-\ :'([/move] ??? Link to comment https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-217271 Share on other sites More sharing options...
The Little Guy Posted March 29, 2007 Share Posted March 29, 2007 http://snippets.tzfiles.com/snippet.php?id=27 Change this: document.getElementById('AJAX').innerHTML = ajaxRequest.responseText; To something like this (You can only use 2 classes of the same name though): document.getElementByClass('AJAX').innerHTML = ajaxRequest.responseText; Link to comment https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-217796 Share on other sites More sharing options...
mainewoods Posted April 3, 2007 Share Posted April 3, 2007 where is the data for the two divs coming from? Are you saying you want to make one ajax call which contains 2 items to be put into 2 divs? Link to comment https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-220246 Share on other sites More sharing options...
kaspalog Posted April 6, 2007 Share Posted April 6, 2007 i have a table: tbcities there are 3 fields/columns: (1) id, (2) city, and (3) zip if i search for id (one button click/action), i want the corresponding city and zip code loaded into separate divs. <div id="city">i want the city here</div> <div id="zip">i want the zip code here</div> how do i do that? pls help us. Link to comment https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-223061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.