If I have a link that opens a new browser window, is there a way to control the size? It defaults to opening a big new page. Any way to force it to be smaller?
Hey schase, I know this is an old one but could you let me in on the secret. I have a go to detail behavior that I want to open up as a seperate window. But I want it to be smaller than opening the whole window.
sure, takes a little bit o hand coding. but here ya go.
<a href=# onClick=MyWindow=window.open(my_detail_page.asp','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=420'); return false;>Click Here </a>
Now the above is regular code. you can see where you specify what you want.
if you want to add a asp component - just do something like this.
<a href=# onClick=MyWindow=window.open(my_detail_page.asp?ID=<%=recordset.fields.item("ID".value%>','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=420'); return false;>Click Here </a> "Never underestimate the power of determination"
Yes it works fine before adding the pop up information. I get an error on about 7 lines asking if I want to debug. I am also not getting the URL parammeter to pass. It works fine thought before editing it.
Also when I hover of the link I can usually see the URL parameter that is going to be passed in the bottom of the internet explorer. Now I see /azlist.asp?offset=0#
<!--
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?")>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && document.getElementById) x=document.getElementById; return x;
} This is line 264. It throws the error for like 7 or 8 lines that have the }as the last item in the script.
I am may just rethink how I want to display the data. I did not think this would be that dificult. I really appreciate the help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.