[thelist] Weird dom behaviour

George E. Papadakis georgep at phaistosnetworks.gr
Thu Feb 3 11:41:17 CST 2005


Another note :

This takes place only when reloading (ctrl+r | f5) the url. When 
entering the page using a link anchor then it all goes normal.

This makes me think its a firefox bug (or feature) in caching images.

-- gp


George E. Papadakis wrote:
> Hi all,
> 
> I am trying to change the src attribute of an image when clicking (or 
> mouseovering) another one.
> 
> Say I have <p onclick="Do();">blah</p>
> And then
> function Do()
> {
>     someElement.setAttribute("src","test.gif");
> }
> 
> IE works as expected.
> 
> Firefox does the image source switching, yet it "leaves" the page loading.
> I keep getting a "waiting for myServer" msg on my browser.
> 
> When executing this function not by onclicking (or onmouseover-ing) its 
> working fine.
> 
> The only "problem" is that when applying this on any event.
> 
> Any ideas would be appreciated.
> 
> -- 
> 
> gp
> 
> 
> 



More information about the thelist mailing list