Re: CFDIV won't bind hidden elements in IE

2008-12-05 Thread Ian Rutherford
I'm using this code to hide the form fields:




var containerTag = '#attributes.tag#';

var compatible = (
document.getElementById && document.getElementsByTagName && 
document.createElement
&&
!(navigator.userAgent.indexOf('MSIE 5') != -1 && 
navigator.userAgent.indexOf('Mac') != -1)
);

if (compatible)
{
document.write('');
var waitingRoom = document.createElement('div');
}

var hiddenFormFieldsPointers = new Object();

function prepareForm()
{
if (!compatible) return;
var marker = document.createElement(containerTag);
marker.style.display = 'none';

var x = document.getElementsByTagName('select');
for (var i=0;i

Re: CFDIV won't bind hidden elements in IE

2008-12-04 Thread Azadi Saryev
care to post a code sample or a simple test case?
i do not recall having a problem in any browser with binding hidden
elements...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Ian Rutherford wrote:
> I am using a CFDiv to bind a cfselect in a form. Some of the form fields are 
> hidden when the page loads. For Firefox, Chrome and Opera this isn't a 
> problem. In IE, all the binds fail because it can't find the hidden cfdivs. I 
> tried setting bindonload=false which did remove half of the errors but then 
> the cfdivs didn't work at all.
>
> Any work arounds for this?
>
> If you want to see how this should be working, go through our checkout 
> process at www.aquinasandmore.com using a non-IE browser. I have temporarily 
> disabled the gift wrap display option in IE. 
>
>   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316308
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4