469,331 Members | 1,681 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

customised pop windows

114 100+

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="CommentLink" href="_comment_view.asp?ID=<%=C_ID%>&amp;AID=<%=NI D%>" onClick="NewWindow(this.href,'name','450','410','Y es');return false;"><%=C_SUBJECT%></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.asp?ID=<%=ID%>&amp;AID=<%=AID%>"><img src="comment_imgs/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.
Apr 1 '07 #1
2 1059
jhardman
3,406 Expert 2GB
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="CommentLink" href="_comment_view.asp?ID=<%=C_ID%>&amp;AID=<%=NI D%>" onClick="window.open(this.href,'name','menubar=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
Apr 3 '07 #2
karen987
114 100+
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="CommentLink" href="_comment_view.asp?ID=<%=C_ID%>&amp;AID=<%=NI D%>" onClick="window.open(this.href,'name','menubar=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
Apr 3 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by riusbond | last post: by
reply views Thread by mc | last post: by
1 post views Thread by Scott Davies | last post: by
3 posts views Thread by Sam | last post: by
3 posts views Thread by Rabbit | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.