Facing problem with calling a popup window from <A href> by passing parameter.
Hi,
I strucked calling the popup window from <a href> by passing the ID.
I used this statement, but it gives the error: "Illegal line end in string literal"
Code:
actTitle = "<a href=# onClick=\"OZ_openBrWin2('ozLOVSlsContactCall.jsp?id=<%=id%>&dtltype=PSN','callLOV');\">"+calcontact.getCallName()+"</a>";
I need to pass id with extentions as &dtltype=PSN
so, what i need to modify in the above statement.
Thanks in advance...
Re: Facing problem with calling a popup window from <A href> by passing parameter.
It should work as you have it. Try the following.
Code:
actTitle = "<a href=# onClick=\"OZ_openBrWin2('ozLOVSlsContactCall.jsp?id=<% out.println(id) %>&dtltype=PSN','callLOV');\">"+calcontact.getCallName()+"</a>";
Re: Facing problem when i am calling popup window from <a href> passing ID.
still it is showing same error.
with this statement it does not showing any errors.
Code:
actTitle = "<a href=# onClick=\"OZ_openBrWin2('ozLOVSlsContactCall.jsp?id="+calcontact.getID()+"','callLOV');\">"+calcontact.getCallName()+"</a>";
but with that ID i need to pass this: &dtltype=PSN
thanks ......