HighDots Forums  

fooling for a repaint

alt.html.dhtml alt.html.dhtml


Discuss fooling for a repaint in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ike
 
Posts: n/a

Default fooling for a repaint - 02-13-2004 , 07:11 AM






I changing the size of frames dynamically in a page (I am restricted in that
I cannot perform a reload of the content of any of the frames). In MSIE,
when I resize the frames, thinks repaint perfectly. In NS 7 there are
artifacts left over from what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS browser
repaints the contents of the frames, and everything looks correct.

Is there a way - any conceivable way - anyone knows or can think of to trick
the browser into repainting itself when a frame is resized? Thanks, Ike



Reply With Quote
  #2  
Old   
Michael Winter
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 07:43 AM






On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rxv (AT) hotmail (DOT) com> wrote:

Quote:
I changing the size of frames dynamically in a page (I am restricted in
that I cannot perform a reload of the content of any of the frames). In
MSIE, when I resize the frames, thinks repaint perfectly. In NS 7 there
are artifacts left over from what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS browser
repaints the contents of the frames, and everything looks correct.

Is there a way - any conceivable way - anyone knows or can think of to
trick the browser into repainting itself when a frame is resized?
Not off hand, but do report it to Netscape. At least then, future versions
of the browser might be free from the problem.

If you can't explain to them what causes it properly, host an example
version of the page, give them the URL and illustrate how interacting with
it causes artifacts.

Mike

--
Michael Winter
M.Winter (AT) blueyonder (DOT) co.invalid (replace ".invalid" with ".uk" to reply)


Reply With Quote
  #3  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 09:58 AM



Quoth the raven named Michael Winter:

Quote:
On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rxv (AT) hotmail (DOT) com> wrote:

I changing the size of frames dynamically in a page (I am
restricted in that I cannot perform a reload of the content of
any of the frames). In MSIE, when I resize the frames, thinks
repaint perfectly. In NS 7 there are artifacts left over from
what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS
browser repaints the contents of the frames, and everything looks
correct.

Is there a way - any conceivable way - anyone knows or can think
of to trick the browser into repainting itself when a frame is
resized?

Not off hand, but do report it to Netscape. At least then, future
versions of the browser might be free from the problem.
Does this same problem occur with Mozilla 1.6? Or Firefox 0.8?

If not, then whatever the bug was, has already been fixed. Netscape
stopped development with 7.1, which is the Mozilla 1.4 engine. Or so I
am told; Netscape the company is dead.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #4  
Old   
Randy Webb
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 11:56 AM



Jerry Polyak wrote:

Quote:
Add the following code into the <head> section of your documents:
And then remove it, its junk.

Quote:
script language="JavaScript" type="text/JavaScript"
!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//--
/script

Jerry P.
Read the comp.lang.javascript FAQ with regards to browser detection, and
its impossibility and futility. Also with regards to top-posting.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/



Reply With Quote
  #5  
Old   
Jerry Polyak
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 02:25 PM



Add the following code into the <head> section of your documents:

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>

Jerry P.


"Ike" <rxv (AT) hotmail (DOT) com> wrote

Quote:
I changing the size of frames dynamically in a page (I am restricted in
that
I cannot perform a reload of the content of any of the frames). In MSIE,
when I resize the frames, thinks repaint perfectly. In NS 7 there are
artifacts left over from what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS browser
repaints the contents of the frames, and everything looks correct.

Is there a way - any conceivable way - anyone knows or can think of to
trick
the browser into repainting itself when a frame is resized? Thanks, Ike





Reply With Quote
  #6  
Old   
Ike
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 02:56 PM



Thanks Jerry,

But I have to avoid reloading the page as it contains a java applet which,
if the page is reloaded, gets restarted, and I need to avoid that. Instead,
I need to simply "repaint" what is already there, but evidently, there's no
way to do this under html/dhtml/javascript. What I'm trying to do is find a
way to "fool" the browser into repainting the view, much as it does,
automatically, if a window is opened in front of it, and subsequently
closed, the browser view repaints correctly.

-Ike

"Jerry Polyak" <jpgoalNOSPAM (AT) yahoo (DOT) com> wrote

Quote:
Add the following code into the <head> section of your documents:

script language="JavaScript" type="text/JavaScript"
!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//--
/script

Jerry P.


"Ike" <rxv (AT) hotmail (DOT) com> wrote in message
news:J14Xb.3632$W74.1895 (AT) newsread1 (DOT) news.atl.earthlink.net...
I changing the size of frames dynamically in a page (I am restricted in
that
I cannot perform a reload of the content of any of the frames). In MSIE,
when I resize the frames, thinks repaint perfectly. In NS 7 there are
artifacts left over from what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS browser
repaints the contents of the frames, and everything looks correct.

Is there a way - any conceivable way - anyone knows or can think of to
trick
the browser into repainting itself when a frame is resized? Thanks, Ike







Reply With Quote
  #7  
Old   
Jerry Polyak
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 03:00 PM



I see. Than that probably won't work. LOL. Coincidentally, the code was
generated by Dreamweaver MX as a fix for Netscape resize problem. Which
just makes me think that it is a well known problem.


"Ike" <rxv (AT) hotmail (DOT) com> wrote

Quote:
Thanks Jerry,

But I have to avoid reloading the page as it contains a java applet which,
if the page is reloaded, gets restarted, and I need to avoid that.
Instead,
I need to simply "repaint" what is already there, but evidently, there's
no
way to do this under html/dhtml/javascript. What I'm trying to do is find
a
way to "fool" the browser into repainting the view, much as it does,
automatically, if a window is opened in front of it, and subsequently
closed, the browser view repaints correctly.

-Ike

"Jerry Polyak" <jpgoalNOSPAM (AT) yahoo (DOT) com> wrote in message
news:mdadnXaAHpRcr7DdRVn-vA (AT) adelphia (DOT) com...
Add the following code into the <head> section of your documents:

script language="JavaScript" type="text/JavaScript"
!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//--
/script

Jerry P.


"Ike" <rxv (AT) hotmail (DOT) com> wrote in message
news:J14Xb.3632$W74.1895 (AT) newsread1 (DOT) news.atl.earthlink.net...
I changing the size of frames dynamically in a page (I am restricted
in
that
I cannot perform a reload of the content of any of the frames). In
MSIE,
when I resize the frames, thinks repaint perfectly. In NS 7 there are
artifacts left over from what previously occupied a given frame.

If I minimize the NS browser, then mazimize it again, the NS browser
repaints the contents of the frames, and everything looks correct.

Is there a way - any conceivable way - anyone knows or can think of to
trick
the browser into repainting itself when a frame is resized? Thanks,
Ike









Reply With Quote
  #8  
Old   
Jerry Polyak
 
Posts: n/a

Default Re: fooling for a repaint - 02-13-2004 , 05:49 PM



What about top posting, there Randy?

You must be that news group police?


"Randy Webb" <hikksnotathome (AT) aol (DOT) com> wrote

Quote:
Jerry Polyak wrote:

Add the following code into the <head> section of your documents:

And then remove it, its junk.

script language="JavaScript" type="text/JavaScript"
!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//--
/script

Jerry P.

Read the comp.lang.javascript FAQ with regards to browser detection, and
its impossibility and futility. Also with regards to top-posting.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/




Reply With Quote
  #9  
Old   
Toby A Inkster
 
Posts: n/a

Default Re: fooling for a repaint - 02-14-2004 , 04:04 AM



Beauregard T. Shagnasty wrote:

Quote:
Netscape the company is dead.
Netscape the browser is dead. Netscape the brand lives on. Netscape has
recently opened an ISP in the UK (didn't it just close one down?) and the
Netscape.com portal site is still soldiering on.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132



Reply With Quote
  #10  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: fooling for a repaint - 02-14-2004 , 11:23 AM



Quoth the raven named Toby A Inkster:
Quote:
Beauregard T. Shagnasty wrote:

Netscape the company is dead.

Netscape the browser is dead. Netscape the brand lives on. Netscape
has recently opened an ISP in the UK (didn't it just close one
down?) and the Netscape.com portal site is still soldiering on.
Ok, thanks for the clarification, Toby.

"The browser is dead, long live the browser..."

--
-bts
-This space intentionally left blank.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.