Categories | Question details Back To List | ||
cell link to ajax call Hello - I am using DHTMLGrid. I am trying to click a cell with a link a call a javascript function with an ajax call. This works works fine from a button outside the grid, but I don't get the same result when clicking through a link within a cell. function editCustomer(custnum) { Modalbox.show("/editCustomer.do?&custnum="+custnum, {title: "Witness Detail", width: 600}); return false; } The link in the cell is: Edit^javascript:editCustomer(1);^_self Thank you Answer posted by Support on Apr 03, 2009 04:14 Is issue occurs in IE only? When javascript:some link used, in some cases IE may block the page navigation logic. Try to change existing value of cell as Edit^# And define the action as grid.attachEvent("onRowSelect",function(id,ind){ if (ind==INDEX) editCustomer(id); return true; }) where INDEX - index of column with the link. |