Hi,
I am using a popup plugin to open my popup window.
Generating html table using Javascript. In that there column Employee Id
having hyperlink.
I am openning popup on click of hyperlink to display the employee details.
Dynamic generated code:
<a id='" + arrElement[0].EMP_DATA[i].EMP_ID +"'
href='employee.do?requestSource=EMP_PROFILE&empId=" +
arrElement[0].EMP_DATA[i].EMP_ID+"'
class='empName' >
<B>" +arrElement[0].EMP_DATA[i].EMP_NAME+"</B>
</a>
Issue: popup is open in the same window. This issue happen only when code is generated dynamically using java script
Following is my code to open the popup, calling script code after completion of employee table:
$('.empName').popupWindow({
centerScreen: 1,
scrollbars: 1,
height: ($(window).height()-100),
width: ($(window).width()-100)
});
Please help