RE: Default Size browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Laurent,
I didn't think it was possible to resize a window once opened, which is why
I went for the opening of a new window. The resizeTo() method works fine in
both Firefox and IE:

function resizeBrowserWindow(width, height){

	if(width>0 && height>0)
	{
		window.resizeTo(width,height);
	}
	else
	{
		alert("Width and height must be greater than zero.");
	}
}

With html:

<a href="#" onclick='resizeBrowserWindow(600, 1200)'>resize</a> 

I had to use the 'window' object as I could not get it to work using
'document'.

Great. Thanks

-----Original Message-----
From: Laurent Valdes [mailto:valderama@xxxxxxxxx] 
Sent: 28 December 2005 11:16
To: php-objects@xxxxxxxxxxxxxxx
Subject: Re:  Default Size browser

document.resizeTo(x,y); does the trick.
and he should add document.moveTo(x,y); if any problems.

Laurent.


2005/12/28, Laurent Valdes <valderama@xxxxxxxxx>:
> He only needs to define the size of the browser, not to open a new window.
>
> Laurent.
>
> 2005/12/28, Brian Etheridge <Brian.Etheridge@xxxxxxxxxxx>:
> >  Hi Georg,
> >  I use a javascript routine to open a new browser window.  This 
> > version hangs  on to the pointer to the new window and does a 
> > speculative close, so that  only one pop-up window is presented, but 
> > that's not always desirable:
> >
> >  <script language='javascript'>
> >
> >  var win;      // Popup window.
> >
> >  function closeWindow() {
> >        if (win && win.open && !win.closed) {
> >              win.close();
> >        }
> >  }
> >
> >  function openWindow(url, width, height) {
> >
> >        var displaywidth = width; // screen.availWidth;
> >        var displayheight = height; //screen.availHeight;
> >
> >        var parms =
> > ('height='+displayheight+',width='+displaywidth
> >                    + ',resizable=yes,status=no,toolbar=no,'
> >                    +
> > 'menubar=no,location=no,scrollbars=yes, '
> >                    + 'screenx=200, screeny=100,'
> >                    + 'left=200,top=100');
> >        closeWindow();
> >        win=window.open(url, null, parms);  }
> >
> >  </script>
> >
> >  In your HTML you would invoke the openWindow method something like 
> > the
> >  following:
> >
> >  <a href="#" onclick="openWindow('./nextPage.php', 800, 
> > 1200);"><image  id="myImage" src='./images/myImage.jpg' 
> > border='0'></a>
> >
> >  Hope that helps.
> >  Brian
> >
> >  -----Original Message-----
> >  From: roth_georg [mailto:roth_georg@xxxxxxxxx]
> >  Sent: 23 December 2005 21:01
> >  To: php-objects@xxxxxxxxxxxxxxx
> >  Subject:  Default Size browser
> >
> >  Hi guys!!
> >
> >
> >  I'm fighting with a little problem.
> >
> >  How do I define the size of the browser? Eg if I open my page the 
> > browser  shoul be 800 px in width and 1200 px in length!
> >
> >  How do I solve that problem?
> >
> >  Thanks!!
> >
> >  Georg
> >
> >
> >
> >
> >
> >
> >
> >  ------------------------ Yahoo! Groups Sponsor 
> > --------------------~--> Get  Bzzzy! (real tools to help you find a
job). Welcome to the Sweet Life.
> >  http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
> > --------------------------------------------------------------------
> > ~->
> >
> >  PHP Data object relational mapping generator - 
> > http://www.meta-language.net/  Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >  PHP Data object relational mapping generator - 
> > http://www.meta-language.net/
> >
> >
> >
> >
> >  SPONSORED LINKS
> >  Php developer Basic programming language Computer programming 
> > languages  Programming languages Object oriented programming Object 
> > oriented programming tutorial
> >
> >  ________________________________
> >  YAHOO! GROUPS LINKS
> >
> >
> >  Visit your group "php-objects" on the web.
> >
> >  To unsubscribe from this group, send an email to:
> >  php-objects-unsubscribe@xxxxxxxxxxxxxxx
> >
> >  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> >  ________________________________
> >
>
>
> --
> «Un peu d'internationalisme éloigne de la patrie; beaucoup y ramène» 
> Jean Jaurès@<http://www.le-valdo.com>
>


--
«Un peu d'internationalisme éloigne de la patrie; beaucoup y ramène» Jean
Jaurès@<http://www.le-valdo.com>


------------------------ Yahoo! Groups Sponsor --------------------~--> Fair
play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux