I ran in to an interesting issue that I at first thought was a browser issue. I was using ColdFusion.getElementValue to get the value from a hidden form field. The form in question was inside a CFWINDOW created using ColdFusion.window.create.

Lets assume the value of the hidden field is "123". When the window opens and I get the value the return is accurate. However, if I close the window then open it again the value retrieved is not accurate. Subsequent close and opens of the window make the problem even worse. Every close and open of the window appends the value to the previous to make a delimited list of values. So, if the window was closed and opened 3 times I would end up with "123,123,123" as the return in FireFox. However, do the same in IE and I get "123,,".

Now, if I get the value using document.getElementById('hiddenfield').value the return is always accurate. This tells me it is not the browser but something with CF's javascript function to get the value. I have not verified this but I am quite certain it is some form of caching going on inside the browser. It seems strange to me as to why this type of thing would be cached. It makes it very hard to use in a dynamic enviornment.

--Dave