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? Link to comment https://forums.phpfreaks.com/topic/194262-two-links-at-once-is-this-possibe/ 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. Link to comment https://forums.phpfreaks.com/topic/194262-two-links-at-once-is-this-possibe/#findComment-1021979 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 Link to comment https://forums.phpfreaks.com/topic/194262-two-links-at-once-is-this-possibe/#findComment-1021987 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'); Link to comment https://forums.phpfreaks.com/topic/194262-two-links-at-once-is-this-possibe/#findComment-1021990 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! Link to comment https://forums.phpfreaks.com/topic/194262-two-links-at-once-is-this-possibe/#findComment-1021994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.