• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pop window size, not working.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use this script to make a pop window to be 500px high and 775px wide but it don't work for some people, anyone that have a clue why?
<SCRIPT LANGUAGE="JavaScript">
<!--
function MM_openBrWindow(jade,winName,features)
{
window.open(jade,winName,features);
}

//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function jade()
{
window.open('start.htm',
'jade',
'height=500',
'width=775',
'menubar=no',
'scrollbars=no',
'toolbar=no',
'location=no',
'status=no',
'resize=no');
}
</SCRIPT>
-Speedy
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't seen the window open written like that before. Why do you have a function jade() and a function openBrWindow()?
What I would do is have just one function, pass in the name and url and features if you want, and use that function. Also, make sure there are NO spaces in your list of features. Netscape doesn't like spaces so it won't work in Netscape.
Bill
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Speedy Poo",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
Speedy Poo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnx Bill!!
I solved the problem like this:
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function mysite_popup(theURL,theWidth,theHight)
{
//alert("the url is " + theURL);
if (theWidth == null | | theWidth == 0)
{
theWidth = 780;
}
if (theHight == null | | theHight == 0)
{
theHight = 400;
}
myWindow=window.open( theURL,"_blank","toolbar=no,scrollbars=no,location=no,directories=no,resizable=no,width="+ theWidth +",height="+ theHight +",screenX=0,screenY=0");
}

//-->
</SCRIPT>
<SCRIPT LANGUAGE="Javascript">
<!--
if (top.location != self.location)

{
top.location = self.location.href
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<A HREF="javascript:mysite_popup('http://www.mysite.com/start.htm', 775, 500)"><IMG SRC="./img/enter3.gif" NAME="img2" BORDER="0" WIDTH="149" HEIGHT="74"></A>
</BODY>
 
reply
    Bookmark Topic Watch Topic
  • New Topic