Posted: 3/24/2010 10:47:44 PM EDT
|
I have a page with a bunch of dynamic links, they show up as "View" in certain table columns. When clicked on, I want to open a popup window at the mouse position of the click.
I have it working in IE. The View link there looks like: <a href="#" onclick="my_popup_code('2');">View</a>
where XXX is a part number specific to that row that the handler needs.
Firefox, however, fails, evidently because it has no analogue to "event." Apparently, the only way to access the last raised event in firefox is simply to accept it as a parameter. Thus my question: How do I add or access the event parameter (usually called "e") in "my_popup_code(part_number)," when I also have to send a line specific parameter? Might it look something like this? <a href="#" onclick="my_popup_code(event, '4');">View</a> |
|
That's how I do it and it works fine in IE and Firefox.
Example call to my JavaScript library for a pop-up calendar: .aspx page (two different calls to the pop-up calendar function):
JavaScript library:
|