Refreshing problem on browser window resizing

Hi
I know this problem is quite common and a lot of people tried to solve this. So meybe someone could give me some info how to make an applet to be properly shown after browser resizing? Now it looks awfull, the part with buttons and textfields seems to be repainted correctly but sometimes is covered by Image object that is supposed to be in one place - but seems to travel around the page during resizing and moving browser window from one side of the screen to the another.
Can anybody help me, please?
ania

The way I personally do this is to set the entire page into one large Table, with a width of 100%.
If you are already using tables within your code, then you need to be sure you don't have any large width= values set.  Also, if your site has fancy graphics, you need to find somewhere on the page to allow some 'stretching' of those graphics.
Here's a quick example of a page that will automatically adjust based on screen size (remember, just because they are viewing at 1280 x 1024 resolution doesn't automatically mean that their browser is maximized.. it could be reduced/resized on their screen to smaller dimensions - this code will fix that)
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr><td bgcolor="black"><font color="white"><b>This could be a navigation area<Br>Just putting it here for demonstration</b></font></td>
<td width="100%" bgcolor="silver"><font color="black"><b>This could be the main area, and since it has a width of 100% it will stretch horizontally based on how much actual screen space is available on the viewers browser window</b></font></td>
<td align="right"><font color="navy">This is a right column, and since it is set to 'align=right' it will allow the center column to strech back and forth</font></td></tr></table>
By experimenting with setting the width= attribute on different columns, you can get different results.  Just remember to set the main table width at 100%, and be sure t have at least one TD that has a width of 100% and you should be good to go
WHeis

Similar Messages

  • Browser window resize event

    Newbie question - sorry. How do I capture the browser window
    resize event?
    I've tried variations on this code:-
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    function mylisten():void { trace('mylisten');
    this.stage.addEventListener(Event.RESIZE,resizefn);
    function resizefn():void {
    trace('resize!');
    ]]>
    </mx:Script>

    Hi brutfood,
    you can add a handler to the resize event of the application
    as an attribute of the Application tag.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" resize="resizeHandler()">
    Then add the handler ("t" is TextArea):
    private function resizeHandler():void {
    t.text = stage.width + " - " + stage.height;
    t.text += "\n" + stage.stageWidth + " - " +
    stage.stageHeight;
    Note the difference between the width/height and
    stageWidth/stageHeight properties: the first couple returns the
    actual stage dimension while the second returns the visible area of
    the stage.
    regards,
    Christophe

  • Open browser window resizing problem

    I want to have a small browser window open on top of my main
    browser page. The open browser window behavior sizing is not
    working. The window remains in the default size. So I added this
    java script to the page I want to be smaller
    <SCRIPT language="JavaScript1.2">
    self.resizeTo(400,600);
    </SCRIPT>
    This did make the window size small, but when returning to
    the main browser window that window is now the same small size as
    the smaller window.
    Now what.
    thanks, cyndee

    Add a ... ;return false ... to the end of the
    MM_openBrWindow() event
    call as in the example below... Make sure you place a
    semicolon between the
    end of the event call and the return false.
    <span class="link"><a
    href="Gourd%20Purchasing%20Policies.html"
    onClick="MM_openBrWindow('Gourd%20Purchasing%20Policies.html','gourdpurchasingpo
    licies','width=560,height=770');return false">Purchasing
    Policies</a></span><br>
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "cyndee newick" <[email protected]> wrote in
    message
    news:fcp491$4sc$[email protected]..
    > Here is how dreamweaver wrote the open browser code.
    >
    > <span class="link"><a
    href="Gourd%20Purchasing%20Policies.html"
    >
    onClick="MM_openBrWindow('Gourd%20Purchasing%20Policies.html','gourdpurchasingpo
    > licies','width=560,height=770')">Purchasing
    Policies</a></span><br>
    >
    > thanks
    >

  • Browser window resize on entering website

    Hi. I'm quite new to DW so apologies if this is simple to do.
    I've developed a website in flash, kind of a console 900x500 pixels
    and housed it in an html page using dreamweaver. i'm trying to set
    it up so the browser window will resize to 900x500 when loading the
    page. I know how to do this in DW for a popup window but is there
    some javascript that will do this automatically as the main page
    loads? I've tried a few scripts i found on google but its not
    working. I'm testing in firefox and safari and am looking for a
    script or method that would also work in IE. The console doesn't
    look good on a large background so any help would be appreciated,
    Thanks guys, Dren.

    Essentially it can't be done. Modern browsers prevent it.
    Usability data
    strongly suggests visitors hate it. Controlling the visitor's
    browser size
    is considered arrogant. I suggest you rethink your design
    strategy as this
    is probably a losing battle on many fronts.
    Walt
    "drennan_uk" <[email protected]> wrote in
    message
    news:g1pagp$67d$[email protected]..
    > Hi. I'm quite new to DW so apologies if this is simple
    to do. I've
    > developed
    > a website in flash, kind of a console 900x500 pixels and
    housed it in an
    > html
    > page using dreamweaver. i'm trying to set it up so the
    browser window
    > will
    > resize to 900x500 when loading the page. I know how to
    do this in DW for
    > a
    > popup window but is there some javascript that will do
    this automatically
    > as
    > the main page loads? I've tried a few scripts i found on
    google but its
    > not
    > working. I'm testing in firefox and safari and am
    looking for a script or
    > method that would also work in IE. The console doesn't
    look good on a
    > large
    > background so any help would be appreciated, Thanks
    guys, Dren.
    >

  • Movie Clip / Browser Window Resize?

    Hello Everyone,
    I was wondering if anyone knew of a way that you could make a
    single movie clip in your .swf react to the current width of the
    browser window, when its loaded.
    I would like to use this specific piece of code to
    dynamically center an "enter" button on a website.
    Thank you in advance

    If you set the properties of your .swf to 100% width and
    height your movie will automatically fill the browser regardless of
    resolution. Note if your using a colored background for your web
    page you will see white striping down each side of your movie. just
    set the param for bgcolor to what ever you need it to be
    Kevin

  • Fluxbox browser window resize

    When I go to a site that opens an image in a new window, then resizes that window to fit the image, fluxbox is resizing the window so the title bar is outside of the workspace.  This means I can not close, move, maximize or minimize the window without first holding down the Alt key and dragging it down some.
    Anyone know how to keep Fluxbox from resizing a window outside of the actual workspace?
    If it matters, this behaviour is not happening in Gnome.

    dp wrote:
    this is not a fluxbox problem, but a bad webmaster :-)
    i would suggest you to use a browser that can override javascript from resizing windows larger than the screen (i use konqueror and all new windows open in new tags and are not allowed to resize the master window)
    EDIT: ion does not allow windows to be bigger than the screen
    Well this problem does not happen with Mozilla in either GNOME or KDE, but does happen with Mozilla in Fluxbox.  This would suggest to me that Fluxbox is handling the popup differently than other window managers.
    I looked at the HTML and it seems to me that the webmaster is simply telling the browser to open a new window and passing along a size with no window placement information.  Mozilla is then opening up the window with the titlebar off the screen.  I would say it is Mozilla's problem except Fluxbox is the only window manager I have that is exhibiting the problem.
    Here is an extremely simple page that exhibits this problem:
    http://www.sitepoint.com/examples/jscri … picfit.htm
    The window is first opened correctly in the top left corner.  The the Javascript resizes the window and the titlebar goes off the top.  Again, this does not happen in GNOME or KDE, so my original questions remains.  Is it possible to get Fluxbox to behave like GNOME and KDE and not run a portion of the window off the page?

  • Resizing Browser Window

    Hi,
    I'm looking to publish my site and have the browser window
    resize (or stay resized at) the document size (1000x674).
    I thought i set the proper parameters in DW (i have a SWF
    inside of it), but there seems to be extra white space on the right
    side of the published document...(this seems to be outside of the
    1000x674 default size)
    i may be missing a line of code somewhere.
    any help would be appreciated...you can see what i mean at
    www.tunnel76.com
    thank you in advance.
    j.

    Why not just center the page content? Users tend to get
    annoyed when the
    browser gets adjusted without their consent.
    Dan Mode
    ->Adobe Community Expert
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    "flashingnotallowed" <[email protected]>
    wrote in message
    news:eaugas$al3$[email protected]..
    > Hi,
    >
    > I'm looking to publish my site and have the browser
    window resize (or stay
    > resized at) the document size (1000x674).
    > I thought i set the proper parameters in DW (i have a
    SWF inside of it),
    > but
    > there seems to be extra white space on the right side of
    the published
    > document...(this seems to be outside of the 1000x674
    default size)
    > i may be missing a line of code somewhere.
    > any help would be appreciated...you can see what i mean
    at
    > www.tunnel76.com
    > thank you in advance.
    > j.
    >

  • Opening hotmail: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    opening hotmail in firefox: Please refresh your browser window, When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure . Refreshed but no change. in Safari no problem

    Go to '''Options '''on Firefox Browser-->'''Advanced'''-->''Click on'' '''Network '''tab-->''Select '''''Settings'''-->''Select '''''Use System Proxy Settings
    '''

  • I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Liv

    I can't open mail on Hotmail from Firefox. I can from Safari. I can open the Hotmail account page and it is complete w/ my new messages, but when I go to open them I get this messeage..."Please refresh your browser window. When you access your Windows Live Hotmail account from more than one computer, we ask you to sign in again to help keep your account private and secure. " when I sign in again there is no change. in English
    == URL of affected sites ==
    http://http://sn135w.snt135.mail.live.com/default.aspx?n=2087215863
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

  • I cannot move, resize, minimize, or close the browser window despite everything inside the window still working.

    I don't know what details are needed so I'll just rattle off anything that I can think of.
    I am running an Asus laptop with windows 7. I have never had an issue with firefox in the past (beyond the usual freezing and some obvious issues with pop up ads that are par for the course with firefox since adblocker never does what it says.... not really. Lets be honest.) I am using Avast for my virus protection and it is also up to date.
    My issue started about an hour ago when firefox stopped responding. The video I had playing kept going but I could not interact with anything. Assuming the program froze for the billionth time that week I rebooted it. This has always solved freezing issues in the past. Now, however, firefox is doing something new.
    I can access the menus and almost everything on the window itself except for the minimize/maximize/close buttons, I cannot move the window at all, and I cannot manually resize it. I have also noticed that although videos will play, I can only click on their buttons if there is another smaller window overtop of firefox. The video controls will only appear that way and when I click them firefox naturally comes to the front and the video responds with the button I used but the buttons are gone again and I cannot resume playing without the smaller window back in front to make the buttons show again.
    It's as if half of firefox is frozen while the other half is still running somehow.
    I have no themes that could be causing this. Literally none. I only use firefox for the things that can no longer be opened in Opera so I have no need for any theme beyond default. The only addons I installed on purpose were adblockers (lord knows why. they don't DO anything.) though several other random things seem to have been installed over time to aid in one thing or another. Various plugins and players and versions of java, that sort of thing. But I have everything (and i mean EVERYTHING) in the addon menu disabled.
    I have tried booting it up in safe mode (the program, not windows) and the problem is still there except now it won't show the menu bar at all unless I press the alt key first and even then it wont let me actually click on anything in the menu bar. When I try the whole bar vanishes. I had to close firefox with the task manager.
    Rebooting will fix the issue for about 15 seconds before it all comes back.
    Any attempts at updating have failed as it says I am already up to date on everything so I don't know what its issue is.
    It's not an urgent issue right now as most of what i need to do can be done on the half screen window I am using, but some of my sites have buttons that literally vanish in anything but full screen and I imagine that this will be a much greater annoyance within a few days.

    After following all the instructions given, I poked around safe websites as suggested. I am not sure why this step was needed, as websites functioned rather normally before I came here but I did it anyways and found that the websites still work the same as they did. I can still do everything I used to be able to do. I see no change in the function of the websites.
    However, I still cannot resize, close, or move the browser window. I don't know if Netflix is a safe site or not (too many conflicting opinions on that one from the masses) so I don't know if the issue with the vanishing buttons is still there, but all the issues I had with the browser window itself is still there.
    Even in safe mode the browsers three window control buttons on the top right refuse to let me use them and the window itself will refuse to be moved around.

  • How do I stop text from resizing to the size of the browser window

    Hello there,
    I am using a DW CS3 template that has a sidebar div and a
    main content div - the text in the main content div keeps resizing
    to the size of the browser window - I don't want the text to resize
    if I make the browser window smaller - I want it to remain the
    same. I am trying to float the text right and input a width but
    this is not working for me. What am I doing wrong?
    HELP!
    Many thanks!

    >>What am I doing wrong?
    Not giving us a link to the uploaded page so we can see the
    page, how it
    behaves and the actual code.
    Until we see that you are unlikely to get a definitive
    answer. The problem
    is unlikely as you state it because text itself is never
    dependant on the
    browser viewport size.
    Walt
    "Fun Leprechaun" <[email protected]> wrote
    in message
    news:g9f7rq$ie4$[email protected]..
    > Hello there,
    >
    > I am using a DW CS3 template that has a sidebar div and
    a main content
    > div -
    > the text in the main content div keeps resizing to the
    size of the browser
    > window - I don't want the text to resize if I make the
    browser window
    > smaller -
    > I want it to remain the same. I am trying to float the
    text right and
    > input a
    > width but this is not working for me. What am I doing
    wrong?
    >
    > HELP!
    >
    > Many thanks!
    >

  • Opening new browser window stops automatic refresh

    hello,
    I have an application in one browser window. this browser window refreshes periodically. In the jsp which is displayed in this window i have a link which opens an other jsp in a new small browser window with additional informations using javascript. my problem is that using this link stops the automatical refresh of the main window. anybody an idea what could i do? greetz Ren�

    if I use setTimeout and the user doesn't have Javascript enabled, how will I refresh? ... hmmm... maybe meta-refresh...
    My guess is that the browser is taking the link click as a sign that the browser is leaving the page (even though it's not) and stopping the meta-refresh timer for the page...
    Probably your only choice is to use Javascript, the link's onclick handler can reload the current page to make things reset... or manage setTimeout() function to reload the page or something.

  • Network Browser Window Refresh

    Does anyone know how to force the Network Browser window to refresh quicker? I'm not talking about just refreshing the information a computer thinks it knows about who is out there in my local network, but to actively look and see who is out there.
    Seems to me this was instantaneous back in Classic's Network browser and Chooser>AppleShare window.
    Case in point; Three Macs (two are OSX 10.3.9, one is Classic 9.2.2) are up and running. Three icons appear in NB (10.3.9), the other two computers and the server alias. Start up the third one, and it takes so long for the new machine to show up even after it's been on for a while.
    I know that the new machine is broadcasting because it shows up on the Classic Mac.
    Any one else notice this?
      Mac OS X (10.3.9)  

    Brian Silva
    The whole Networking/Internet sharing issue is a vexed issue for me. For what it's worth here is my current Stickie note about my own problems:
    "Notes on Networking and Internet sharing:
    When you turn on Internet sharing via the "Network" Preference pane on the "gateway" Mac, you should also visit the "Sharing" Preference pane and enable "Personal Web Sharing". If you fail to do this, the "downstream" computers will not be able to browse the Internet. (No need to turn on "Personal Web Sharing" for the "downstream" computers). This proviso is stated in Mac Help.
    Sometimes the Sidebar Network browser cannot find other computers on the local network, or LAN. (On the other hand, the Go…Connect to Server method seems always to work). The following technique is one reliable way of fixing the Sidebar browser problem, and assumes that you have an Ethernet LAN plus dial-up modem:
    On the "gateway" computer's Network PrefPane, choose Show…Built in Ethernet, then click its TCP/IP tab and configure iPv4… manually. Type in an IP address of 10.0.1.x and a subnet mask of 255.255.255.0, all other fields blank.
    Then repeat this for all the "downstream" computers, except that you configure iPv4…using DHCP. The network will automatically fill in the other fields (IP address, subnet mask, router) after a few seconds.
    The Sidebar browsers on the "downstream" computers will now find the IP address of the "gateway" computer'" (but not its Rendezvous name} and the Sidebar browser on the "gateway" computer will now find the Rendezvous names of the "downstream" computers (but not their IP addresses)
    Apple's <<docs.info.apple.com/article.html?artnum=106919>> suggests that both "gateway" and "downstream" machines be configured manually, but that does not work in my experience. David Pogue's Bible on Panther recommends that all computers be configured using DHCP, again this does not work consistently."

  • Resizing height width of adf  components when maximizing browser window

    Hi All,
    I am using JDeveloper 11.1.1.4. I have one one panelCollection and an af:table inside it in my page. The browser window that contains the page will initially have a width and height of 1030,340. When user maximizes the window i want to stretch both the width and height of the components inside it. While doing maximize i want to increase the height and width of the panelcollection and the table inside it.I am able to stetch the width using stretch layout and AFStretchWidth style. But resizing the height of the components is the problem.
    First of all is it possible ? Please help me to get to a conclusion for this.
    Thanks,
    Priya.

    Hi,
    Even if i use panelstretch layout i need two or more compoennts (table,panelgrouplayout,...etc) need to aligned horizontally inside the stretch layout so it is not stretching the height. To solve this problemm i wrote a javascript which catches the resize event of the window and in that i am setting the height of the compoents depending upon the size of the outer most layout. The javascript that i used is
    $(window).bind('resize', function() {             
    var height = document.getElementById('pt1:pt_psl1').offsetHeight;
    var pcHeight = height - 50;
    document.getElementById('pt1:pgl3').style.height = pcHeight + 'px';
    document.getElementById('pt1:pc1').style.height = pcHeight + 'px';
    This works fine in Firefox and chrome browser, but in IE it is not working. That is in IE the method is not getting invoked while clicking on maximize button of the window. Does anybody have any solution for this ?

  • New browser window problem

    I have many links on one page of my site that open in a new window. After clicking on an image that is in the middle of a page to open a new browser window, when returmning to the original page it has scrolled back up to the top of that page again.
    Is there any way of ensuring that the orginal page stays in the place where you left it when returning from a new browser window?
    See link:
    http://www.nigelhewitt.com.au/_links/MainMenuLinks/CurrentArtwork.htm#
    See, for example, if you click on even the second image down and then press close window, that the original page has scrolled back to the top.
    Please help!

    Your behavior is improperly applied directly to the <img> tag.  It SHOULD have been applied to the anchor tag that surrounds the image.  In addition, the symptoms you report are caused by your use of the octothorpe to create the 'null link'.  In general, behaviors should never be applied directly to image tags.  So, change this -
    <a href="#"><img src="../../_images/Transience- small.jpg" alt="Transience" width="350" height="321" border="0" onClick="MM_openBrWindow('../EnlargedImages/Transience.htm','CurrentImages','scrollbars=yes,resiza ble=yes,width=1000,height=800')"></a>
        to this -
    <a href="#" onClick="MM_openBrWindow('../EnlargedImages/Transience.htm','CurrentImages','scrollbars=yes,resiza ble=yes,width=1000,height=800')"><img src="../../_images/Transience- small.jpg" alt="Transience" width="350" height="321" border="0" ></a>
    Next, to get around the use of the octothorpe for the null link, you have to kill the link completely 'onclick' by adding 'return false' to the behavior call, like this -
    <a href="#" onClick="MM_openBrWindow('../EnlargedImages/Transience.htm','CurrentImages','scrollbars=yes,resiza ble=yes,width=1000,height=800');return false"><img src="../../_images/Transience- small.jpg" alt="Transience" width="350" height="321" border="0" ></a>
    Finally, to give yourself a hedge against someone coming to your site with javascript disabled (in which case your open browser window will no longer work), copy the popup's filename to the link to replace the octothorpe, like this -
    <a href="'../EnlargedImages/Transience.htm" onClick="MM_openBrWindow('../EnlargedImages/Transience.htm','CurrentImages','scrollbars=yes,resiza ble=yes,width=1000,height=800')"><img src="../../_images/Transience- small.jpg" alt="Transience" width="350" height="321" border="0" ></a>
    Now you're all set.
    You can find a DW extension to do this dirty work for you by searching the Adobe exchange for "Smart Link" by David Powers.

Maybe you are looking for

  • HT1338 How do I install Driver- Mac 05X10.6, OS X 10.7, OS X 10.8?

    I'm trying to install the above, by combining my MacBook Air with my HP Officejet Pro 8600 Plus. Wireless, I want to be able to scan to e-mail in order to send a doc at this point I am able to print wireless, but I am having problems with the scanner

  • Process Order API errors - Urgent

    Hi All, I have a requirement that involves importing booked orders from CSV file to Oracle using process order API. I am using the API for the first time and I am getting the following errors: ERROR WHILE BOOKING ORDER 3. Validation failed for the fi

  • Newbie Direcway question-setup

    Hi, I have learned a lot from the collective experience on these lists. Could someone explain to me how I can set up a wireless home network for my iMac G5, a windows laptop with a wireless (80211) card and Direcway? The installers put a wireless hub

  • Can i conect my Digicorder to the laptop using a hdmi calbe?

    I whant to use the lcd monitor of my hp pavilion dv 6000 like a tv connecting the hdmi cable at the digicorder. Can I ?

  • Tiger installation disc for Intel Proc

    Greetings, does anyone know where I may be able to pick up an installation disc for Tiger that will work on my new intel based mac book pro? I have a family pack of Tiger licenses but it's for the Power PC chipset (all my other macs are the older chi