473,386 Members | 1,883 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,386 software developers and data experts.

Weird Problem in IE During Imageswap--Screen Repainting

I am having a strange problem with IE 6 and an image swap.

I have a page with a dropdown list. The script changes an image on
screen based on the value selected in the list. Simple enough, right?

But when I change the value of the list by clicking with the mouse,
the screen repaints. It doesn't refresh from the server, it just sort
of "flashes".

1. If I change the list with the wheel on my mouse, the screen doesn't
repaint.
2. If I change the list with the keyboard down arrow, the screen
doesn't repaint.
3. However, if I OPEN the list with ALT-down arrow, then select by
hitting Return, it DOES repaint.
4. If I put an alert() in front of the swap, the screen doesn't
repaint.
5. If I wrap the call like this: "setTimeout("SwapImages('" + theKey +
"');",1)", the screen does not repaint.

#5 is my current solution, but I would like to understand why it's
happening before I move extraneous code into production.
Has anyone seen this problem before? I can post the code if
necessary.
Jul 23 '05 #1
1 2182
Phil Sandler wrote:
I am having a strange problem with IE 6 and an image swap.

I have a page with a dropdown list. The script changes an image on
screen based on the value selected in the list. Simple enough, right?

But when I change the value of the list by clicking with the mouse,
the screen repaints. It doesn't refresh from the server, it just sort
of "flashes".

1. If I change the list with the wheel on my mouse, the screen doesn't
repaint.
2. If I change the list with the keyboard down arrow, the screen
doesn't repaint.
3. However, if I OPEN the list with ALT-down arrow, then select by
hitting Return, it DOES repaint.
4. If I put an alert() in front of the swap, the screen doesn't
repaint.
5. If I wrap the call like this: "setTimeout("SwapImages('" + theKey +
"');",1)", the screen does not repaint.

#5 is my current solution, but I would like to understand why it's
happening before I move extraneous code into production.

Has anyone seen this problem before? I can post the code if
necessary.


The onchange event doesn't fire until an item is actually selected, so it
won't fire when you simply cursor down the list of items, or if you scroll
with the wheel on your mouse and highlight an item. You have to actually
hit Enter in the first case, or click the item in the second.

Without seeing your code, it's impossible to say why it isn't working.
Either provide a URL to a site that demonstrates the problem (and the
steps needed to reproduce it) or provide the smallest snippet of code that
exhibits the problem.

List the browsers it does or doesn't work in, and what errors, if any, you
receive in browsers it does not work in.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

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

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
2
by: Hal Vaughan | last post by:
I have a "wizard" type program with a series of panels that are placed in a JPanel. When the "Next >" button is pressed, I put in a new panel (in other words, the ActionListener for "Next >"...
0
by: Phil | last post by:
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any...
0
by: Mike Richardson | last post by:
Hello, I am using VB.net. Is there a way to stop the screen from repainting. I would perfer to stop screen repainting for the entire application. Example when a form is loading. Stop...
2
by: Phil | last post by:
I have a .net/C# com object that creates a thread and a window to output results obtained in the thread (the thread is reading a com port). Everything seems to be working correctly (I don't get any...
1
by: VB Programmer | last post by:
I went to a few ASP.NET websites today. For some aspx pages I get this error (too consistently, which is why I think it's my PC): Server Error in '/CuteEditorTest' Application....
5
by: Jesse Aufiero | last post by:
Hello all, I have many buttons on a form and at the bottom of the form is a grid that behaves as though it is 'retractable' - at various times during the life of the app, the grid becomes taller...
4
by: bfulford | last post by:
I have a macro that needs to have a progress meter displayed since it is long running. I moved the Macro's instructions to a table and pulled those records into a recordset that is looped through....
6
by: Scott | last post by:
I have a unbound MS graph object built as a pie chart that I set to a value list and I am updating programatically. Everything works except that the graph does not repaint except for when the...
2
by: vunet.us | last post by:
Please, explain an interesting phenomenon, if you can. I have an array of references to an HTML element: <div id='container'> <div id='someId1'></div> <div id='someId2'></div> </div> ........
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.