ColdFusion.getElementValue returns wrong value
Posted At : September 13, 2007 6:38 AM
| Posted By : Dave
Related Categories:
ColdFusion 8
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

Thanks for finding this issue. I have logged a bug for this and will fix the issue soon.
Thanks,
Rakshith
Adobe ColdFusion Team
I am unable to reproduce this behavior (using CF8 final) using the exact scenario you outlined. Could you please attach/send a reproducible case?
Could you please send a repro case for this so that we can follow it up? The bug number for the bug logged against this issue is 70478.
Thanks,
Vamsee
Adobe ColdFusion Team
--Dave
Its become a heavy roadblock in development of our CRM
-Hopefully
http://www.dkferguson.com/BlogCFC/index.cfm/2007/1...
--Dave
http://www.care2.com/c2c/share/detail/806237
http://www.care2.com/c2c/share/detail/805355
http://yedda.com/people/4954533163411/
http://yedda.com/people/5183192017866/
http://yedda.com/people/8628260741617/
http://yedda.com/people/3506971016224/
http://doxycyclineonline.wiki.zoho.com/doxycycline...