customised pop windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karen987
    New Member
    • Mar 2007
    • 114

    customised pop windows


    Please could anyone help here. What code do i need to add to this to make the pop up window have no scrollbars or anything else when it opens?



    <td colspan="2"><a class="CommentL ink" href="_comment_ view.asp?ID=<%= C_ID%>&amp;AID= <%=NID%>" onClick="NewWin dow(this.href,' name','450','41 0','Yes');retur n false;"><%=C_SU BJECT%></a>,</td>
    </tr><tr>

    And this link, should open up in a pop up , it can be the same size as above, with no scrollbars etc.

    <td width="20%" height="1%" align="left" valign="bottom" ><%IF ALLOW_E = "1" THEN%>
    <a href="_email.as p?ID=<%=ID%>&am p;AID=<%=AID%>" ><img src="comment_im gs/e_email.gif" width="49" height="12" alt="" border="0" /></a>
    <%END IF%>
    &nbsp;</td>


    Both the above are in .asp pages Thanks in advance for any help.
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    This is handled in javascript, since it is the javascript that opens the new window. As such you might find a better answer in the javascript forum.

    [HTML]
    <a class="CommentL ink" href="_comment_ view.asp?ID=<%= C_ID%>&amp;AID= <%=NID%>" onClick="window .open(this.href ,'name','menuba r=0, resizable=0, status=0, toolbar=0, location=0, directories=0, width=450, height=410, scrollbars=0'); "><%=C_SUBJECT% ></a>[/HTML]
    Let me know if this helps

    Jared

    Comment

    • karen987
      New Member
      • Mar 2007
      • 114

      #3
      Originally posted by jhardman
      This is handled in javascript, since it is the javascript that opens the new window. As such you might find a better answer in the javascript forum.

      [HTML]
      <a class="CommentL ink" href="_comment_ view.asp?ID=<%= C_ID%>&amp;AID= <%=NID%>" onClick="window .open(this.href ,'name','menuba r=0, resizable=0, status=0, toolbar=0, location=0, directories=0, width=450, height=410, scrollbars=0'); "><%=C_SUBJECT% ></a>[/HTML]
      Let me know if this helps

      Jared
      Thanks Jared,

      Your code worked, but the scrollbars were still there,
      anyway i've discovered a simpler solution, and that is in the new pop up page, you can put
      <body style="overflow :hidden;">
      that takes away the scrollbars,

      thanks for your help

      Comment

      Working...