-
Javascript: window.open prob -- no scrollbars?
I'm making a simple sized pop-up window, which I've done a million times before, but I'm setting 'scrollbars' equal to 'yes' and the scrollbars do not show up. I've also tried swapping out 'yes' for 'auto' to no avail. Has anyone ever had this problem? Here is my Actionscript:
Code:
phpvars = stringRemove(phpvars,"$");
var pagelink:String = "viewlarger.php"+phpvars;
getURL("javascript:newWin('"+pagelink+"','640','500','yes','largeWin')");
the 'pagelink' variable ends up equal to something like this:
viewlarger.php?model=965&color=1687&cost=179&mater ial=Metal
and here is my javascript:
Code:
var win= null;
function newWin(page_path,w,h,scroll,page_name){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=yes',win=window.open(page_path,page_name,settings)
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}
..which I actually found in this forum . The window opens and sizes correctly, but the scrollbars refuse to show up. The only thing I can think of is that maybe the variables tacked on to the URL using '?' and '&' might be messing with it, but they need to be passed. Any ideas? Thanks in advance...
-
...stil having this problem, anyone have any ideas?
-
change yes to 1 ...
see if that helps
I doubt it though ... everything works great , IE - Firefox - Opera ...
except the minor problem of the "undefined" value I get for phpvars of course ... I 'm not using php but it shouldn't be hard to figure out...
on(release){
//phpvars = stringRemove(phpvars,"$");
var pagelink:String = "test.html" + // phpvars;
getURL("javascript:newWin('"+pagelink+"','640','50 0','yes','largeWin')");
}
Last edited by xavier101; 10-21-2005 at 08:41 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|