Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Difficult one here - resizing my div's onresize...

Status
Not open for further replies.

sonicsnail

Technical User
Joined
Nov 10, 2001
Messages
48
Location
IN
Hi all...


as you'll see, I've used the windows script from - and its all gone quite well.. my only problem is that when I resize the browser window, I need the "windows" to resize...

I know this is tricky given the complexity of the cross-browser stuff in there, but any help would be HUGELY appreciated...

many thanks,

Pete
 
thanks.. but thats about the only bit that I already understand.. My problem is exactly what function I should fire to relocate the windows..?
 
Put this as your body tag:

<BODY onresize=&quot;window.refresh;&quot;>
 
Will that not grab the page again from the server? - or will it get it from the browsers cache?

I'd rather not add a &quot;hit&quot; to the server stats everytime someone resizes their browser window...
 
Then you could write a function that is called when the page is resized. The function would set the location of the window to the page you want to refresh. I think this would grab the page from the browser's cache.

It all depends on their browser's settings I think. I have my browser check for a new version of the page all the time rather than look in cache.
 
Don't you think theres a way to re-write the divs that are written when the page loads...?

I'm afraid the javascript involved is beyond me. :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top