DrTrans Posted April 14, 2010 Share Posted April 14, 2010 <td align=\"center\" width=\"50%\" onMouseOver=\"this.bgColor = '#CEE3F6'\" onMouseOut =\"this.bgColor = '#FFFFFF'\" onclick=\"I3.location.href='propshort.php?prop=$propertyid'\">$propertyname</td> What i want to do is load 2 frames on OneClick. but also pass threw the variables to both paces. propshort.php and viewinvestbottom.php Thanks for your help Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/ Share on other sites More sharing options...
Ken2k7 Posted April 14, 2010 Share Posted April 14, 2010 And the problem is ...? Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041757 Share on other sites More sharing options...
DrTrans Posted April 14, 2010 Author Share Posted April 14, 2010 its only doing 1. propshort.php. I need it to do both. Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041759 Share on other sites More sharing options...
Ken2k7 Posted April 14, 2010 Share Posted April 14, 2010 Then have it do both. Write in the other command. Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041762 Share on other sites More sharing options...
DrTrans Posted April 14, 2010 Author Share Posted April 14, 2010 how? i tried to do another onClick event and it fails. Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041766 Share on other sites More sharing options...
Ken2k7 Posted April 14, 2010 Share Posted April 14, 2010 In the same OnClick. It's just JavaScript code in there. Put a semi-colon and continue with your next statement. :-\ Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041768 Share on other sites More sharing options...
DrTrans Posted April 14, 2010 Author Share Posted April 14, 2010 Genious.. thank you. Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041770 Share on other sites More sharing options...
TeddyKiller Posted April 14, 2010 Share Posted April 14, 2010 echo "<td align=\"center\" width=\"50%\" onMouseOver=\"this.bgColor = '#CEE3F6'\" onMouseOut =\"this.bgColor = '#FFFFFF'\" onclick=\"I3.location.href='propshort.php?prop=$propertyid'; STATEMENT TWO;\">$propertyname</td>"; Wow, so complicated.. Genious.. thank you. Just simple brainwork really.. hehe. Link to comment https://forums.phpfreaks.com/topic/198530-2-php-onclick-events/#findComment-1041773 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.