473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

fooling for a repaint

Ike
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
Jul 20 '05 #1
11 5772
On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rx*@hotmail.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.

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.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2
Quoth the raven named Michael Winter:
On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rx*@hotmail.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.
Jul 20 '05 #3
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" <rx*@hotmail.com> wrote in message
news:J1*****************@newsread1.news.atl.earthl ink.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

Jul 20 '05 #4
Ike
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" <jp**********@yahoo.com> wrote in message
news:md********************@adelphia.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" <rx*@hotmail.com> wrote in message
news:J1*****************@newsread1.news.atl.earthl ink.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


Jul 20 '05 #5
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" <rx*@hotmail.com> wrote in message
news:3S*****************@newsread1.news.atl.earthl ink.net...
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" <jp**********@yahoo.com> wrote in message
news:md********************@adelphia.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" <rx*@hotmail.com> wrote in message
news:J1*****************@newsread1.news.atl.earthl ink.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



Jul 20 '05 #6
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/

Jul 20 '05 #7
What about top posting, there Randy?

You must be that news group police?
"Randy Webb" <hi************@aol.com> wrote in message
news:NO********************@comcast.com...
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/

Jul 20 '05 #8
You could, on a timer event, put up an opaque (color of your choice) DIV
that covers the entire screen (or the part that you know you want to
repaint) and then hide it again. This might well force a repaint of
everything that was under the DIV. It would cause a brief flash of the
screen, but that might be preferable to having garbage on the screen.

You have to do this on a timer event because you have to give the browser a
chance to make the DIV visible, before you tear it down. In other words,
you can't, in JS, just make the DIV visible and immediately hide it, on two
successive lines of code, because the browser will just ignore that. You
have to make it visible, exit from your event's code, and then a fraction of
a second later you can hide it.

--
--------------------
My e-mail address doesn't have a 2 in it.
"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:Ou*****************@twister.nyroc.rr.com...
Quoth the raven named Michael Winter:
On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rx*@hotmail.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.

Jul 20 '05 #9
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.

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

Jul 20 '05 #10
Quoth the raven named Toby A Inkster:
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.
Jul 20 '05 #11
Ike
How might I do such a thing?

"Dana Cartwright" <da******@weavemaker.com> wrote in message
news:Ev*******************@twister.nyroc.rr.com...
You could, on a timer event, put up an opaque (color of your choice) DIV
that covers the entire screen (or the part that you know you want to
repaint) and then hide it again. This might well force a repaint of
everything that was under the DIV. It would cause a brief flash of the
screen, but that might be preferable to having garbage on the screen.

You have to do this on a timer event because you have to give the browser a chance to make the DIV visible, before you tear it down. In other words,
you can't, in JS, just make the DIV visible and immediately hide it, on two successive lines of code, because the browser will just ignore that. You
have to make it visible, exit from your event's code, and then a fraction of a second later you can hide it.

--
--------------------
My e-mail address doesn't have a 2 in it.
"Beauregard T. Shagnasty" <a.*********@example.invalid> wrote in message
news:Ou*****************@twister.nyroc.rr.com...
Quoth the raven named Michael Winter:
On Fri, 13 Feb 2004 13:11:05 GMT, Ike <rx*@hotmail.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.


Jul 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
4
by: Bob | last post by:
Trying to repaint a form named fcon using a new filter: 'Repaint the form with the new data Forms!fcon.FilterOn = False Forms!fcon.Filter = "RecNo = " & currecno & " AND Currentvalue = -1"...
7
by: Tamir Khason | last post by:
Is there something RePaint event? I have a couple of controls where I draw using control.CreateGraphics, BUT when I lost focus or do something inside the contorl (click ,etc) all graphics are...
2
by: Randy | last post by:
Hello, I've got a form which has a Print button on it. When clicked, this Print button invokes the Print Priview dialog. All this works fine. The problem I'm having is that on some computers,...
4
by: MLH | last post by:
Setting form's Picture property to another file from within VBA doesn't repaint the form with new bitmap - for instance... Me.Picture = "c:\pics\MyNewPic.jpg" I tried Me.Repaint afterward,...
2
by: aaron.kempf | last post by:
hey guys i have an ETL winform in VB 2005 and it's like-- off in la-la land. i know it's doing things-- it's happily crunching away. but i'm confused about what i need to do to make the main...
7
by: Paul | last post by:
I have a VB.NET form with a DataGrid. When I toggle to Excel (for example) and then back to my application the repaint of the DataGrid is really slow. You can see the repainting happening. When...
0
by: philaphan80 | last post by:
Is there a way to force the Visual Studio IDE (Page Control at design- time) to refresh / repaint itself upon drag & drop of *any* item from the toolbox? Perhaps a method I need to override within...
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.