CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Posts
    142

    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...
    Last edited by adusumalli; September 4th, 2008 at 02:20 PM.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    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>";
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jun 2008
    Posts
    142

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured