Right Click Menu
Moderator: General Moderators
-
codybecker
- Forum Newbie
- Posts: 4
- Joined: Mon Sep 14, 2009 1:24 pm
Right Click Menu
Anybody know of a right click menu code that can work with php loop? So if the link has a get valuable in it, it will be unique to the record that was clicked on.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
-
codybecker
- Forum Newbie
- Posts: 4
- Joined: Mon Sep 14, 2009 1:24 pm
Re: Right Click Menu
What i mean is . . . .
I have a loop of records
<? while($row = mysql_fetch_array($recruitq, MYSQL_ASSOC))
{ ?>
<tr>
<td><? echo $row['id']; ?></td>
</tr>
<? } ?>
And i want to create a custom right click menu when you click on each <TR> row associated with that record information.
I have a loop of records
<? while($row = mysql_fetch_array($recruitq, MYSQL_ASSOC))
{ ?>
<tr>
<td><? echo $row['id']; ?></td>
</tr>
<? } ?>
And i want to create a custom right click menu when you click on each <TR> row associated with that record information.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Right Click Menu
I don't think you can control the browser's right click menu in HTML -- maybe Flash. It seems like you just want to make them links and have them call Javascript for whatever behavior you need.
(#10850)
Re: Right Click Menu
You can intercept right click events and present a custom menu.
http://www.quirksmode.org/js/events_properties.html - scroll down to "Which mouse button has been clicked?"
http://www.quirksmode.org/js/events_properties.html - scroll down to "Which mouse button has been clicked?"
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US