Menu

#3 overlib causes Firefox to submit form repeatedly

open
nobody
None
5
2007-12-19
2007-12-19
Anonymous
No

This pertains to Firefox 2.0.0.11, and some earlier versions. Overlib versions 4.21, 4.17, and possibly others.

In function set_background(pic), the following line attempts to load a background image into overdiv:

over.style.backgroundImage = "url("+pic+")";

I have a popup calendar that appears when a user clicks on a text box. The calendar uses overdiv. When overdiv hits this line, the value of param pic is actually "#ffffff".

Firefox tries to load that as an image from the server because it has no such image in its cache. Perhaps because this "URL" starts with the # sign, Firefox requests the current URL. It sends a get request to the server, reloading my form. This happens repeatedly.

I never explicitly set the value of o3_background or ol_background. I believe overlib read the value from the inner HTML of overdiv.

In any case, if pic is set to a color value, rather than to a URL, set_background(pic) should avoid trying to load it.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.