Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / September 2004

Tip: Looking for answers? Try searching our database.

resizing IE browser windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron - 30 Sep 2004 21:55 GMT
I am opening a page, appfile.aspx, with this:
Dim script As String

script =
"<script>window.open('appfile.aspx','NewPage','top=0,left=0');</script>"

Page.RegisterClientScriptBlock("MyScript", script)

I am resizing appfile.aspx with this:

 <script type="text/javascript">
self.resizeTo(632,500);
window.focus();
window.name = 'newWin';
 </script>

This works pretty nicely, but currently the browser opens at a much larger
size, and then is resized to 632x500.  Does anyone know how to open the
browser with the correct dimensions?

Thanks
Aaron
Ken Dopierala Jr. - 30 Sep 2004 22:12 GMT
Hi Aaron,

In your window.open() try this:

window.open('appfile.aspx','NewPage','width=632,height=500,top=0,left=0');

Then you can remove the self.resizeTo() call.  Good luck!  Ken.

Signature

Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and have problems, email me.

> I am opening a page, appfile.aspx, with this:
> Dim script As String
[quoted text clipped - 18 lines]
> Thanks
> Aaron
Aaron - 30 Sep 2004 22:20 GMT
Thank you.  That's exactly what I needed.

> Hi Aaron,
>
[quoted text clipped - 27 lines]
>> Thanks
>> Aaron
darrel - 30 Sep 2004 22:43 GMT
> This works pretty nicely, but currently the browser opens at a much larger
> size, and then is resized to 632x500.

You are resizing after the page opens. If you want it sized to begin with,
you need to launch it from another page.

-Darrel

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.