This is a discussion on right button click on any URL posts that url to a server-side form within the PHP Language forums, part of the PHP Programming Forums category; OK, this isn't really a php question. But php is involved, sort of, and I usually get good answers ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
OK, this isn't really a php question.
But php is involved, sort of, and I usually get good answers here, regardless. I want to build a browser (perhaps as a firefox plugin) that, for any right-button click on any url on any page, posts the url to a server-side php form, that prompts for additional descriptive metadata and then inserts that link into a mysql schema. I know how to do all the server-side php/mysql stuff, but I don't know how to connect any right-click on any url (inside the client) as a post to my server-side URL. I can imagine this happening, vaguely, as a firefox plugin mechanism. Does anybody know of any how-to examples, that do something like this? Or is there an even easier, pure javascript way to do this? |
|
|||
|
"castnblast" <devnull@montana-riverboats.com> wrote in message news:<1101939026.525294.173400@c13g2000cwb.googleg roups.com>...
<snip> > I know how to do all the server-side php/mysql stuff, but I don't know > how to connect > any right-click on any url (inside the client) as a post to my > server-side URL. > > I can imagine this happening, vaguely, as a firefox plugin mechanism. > Does anybody know of any how-to examples, that do something like this? > Or is there an even easier, pure javascript way to do this? 1. Capture click events 2. Use XMLHttpRequest <http://jibbering.com/2002/4/httprequest.html> 3. You may want to hack the source of pagerankstatus plugin. -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/ |