Click to See Complete Forum and Search --> : Facing problem when i am calling popup window from <a href> passing ID.


adusumalli
September 4th, 2008, 12:23 PM
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"


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...

PeejAvery
September 4th, 2008, 04:53 PM
It should work as you have it. Try the following.

actTitle = "<a href=# onClick=\"OZ_openBrWin2('ozLOVSlsContactCall.jsp?id=<% out.println(id) %>&dtltype=PSN','callLOV');\">"+calcontact.getCallName()+"</a>";

adusumalli
September 4th, 2008, 05:03 PM
still it is showing same error.

with this statement it does not showing any errors.


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 ......