herghost Posted March 5, 2010 Share Posted March 5, 2010 Hi all, I have this: <a href="javascript:ajaxpage('viewcustomers.php', 'body');"><span><img src="images/users_options_menu.gif" /> View Customers</span></a> Which opens the page viewcustomers.php in my body tag, is it possible to do this and open another page in another div, so both open at same time? basically ajaxpage('test.php', 'left'); as well? Quote Link to comment Share on other sites More sharing options...
salathe Posted March 5, 2010 Share Posted March 5, 2010 Sure, just add it in there beside the existing one. Quote Link to comment Share on other sites More sharing options...
herghost Posted March 5, 2010 Author Share Posted March 5, 2010 How would you format it? <a href="javascript:ajaxpage('viewcustomers.php', 'body')('viewcustomerl.php', 'leftpanel';"><span><img src="images/users_options_menu.gif" /> View Customers</span></a> Does not work Quote Link to comment Share on other sites More sharing options...
salathe Posted March 5, 2010 Share Posted March 5, 2010 That is the idea, just with correct JavaScript syntax. javascript:ajaxpage('viewcustomers.php', 'body');ajaxpage('viewcustomerl.php', 'leftpanel'); Quote Link to comment Share on other sites More sharing options...
herghost Posted March 5, 2010 Author Share Posted March 5, 2010 Many Many thanks, 6 hours ive spent looking for a way to do something like this in ajax, with slide in divs, javascript alert boxes etc, as usual the simplest method is the easiest! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.