RE: cfwindow inside iframe issue
Have you tried ..style.display = 'none' in javascript? Instead of the .innerHTML -- William Seiter ColdFusion Web Developer / Consultant http://william.seiter.com Free Website Trade Publication Website Magazine http://www.websitemagazine.com/referrals/?id=51344f=text2 Don't forget to answer the survey questions, it's a 10 second task , a very small request for access to this incredible resource. Have you ever read a book that changed your life? Go to: http://www.winninginthemargins.com Use PassKey: GoldenGrove You'll be glad you did. ::-Original Message- ::From: Bower Jeremy-AJB075 [mailto:[EMAIL PROTECTED] ::Sent: Wednesday, July 16, 2008 6:13 AM ::To: CF-Talk ::Subject: cfwindow inside iframe issue :: :: ::I'm using some nicely formated cfwindows as tool tip type popups inside ::an iframe that is expandable/collapsable (tr.innerHTML=iframe or ). ::When the user tries to collapse the iframe IE blows up. The expand, ::rollover, and mouseout events all act as they should. Is there a way to ::more gracefully close the iframe before blanking the .innerHTML of the ::tr that might keep this from happening? My guess is the parent being ::wiped out causes a problem for the code rendered for the cfwindow, but I ::really have no idea how CF implements this. :: ::Thanks :: :: :: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309137 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow inside iframe issue
Correction: I just use insertRow() and deleteRow(), not innerHTML. I have now tried this: eval(if (!document.all. + table_name + .rows[1]) { my_new_row = document.all. + table_name + .insertRow(1); } else { my_new_row = document.all. + table_name + .rows[1]; }); eval(document.all. + table_name + .rows[1].setAttribute('display','yes')); for open and eval(document.all. + table_name + .rows[1].setAttribute('display','no')); for close. No JS errors, but this does not close the row, nothing happens. A getAttribute check after this shows display is changed, but nothing is rendered to the screen. Have you tried .style.display = 'none' in javascript? Instead of the .innerHTML -- William Seiter ColdFusion Web Developer / Consultant http://william.seiter.com Free Website Trade Publication Website Magazine http://www.websitemagazine.com/referrals/?id=51344f=text2 Don't forget to answer the survey questions, it's a 10 second task , a very small request for access to this incredible resource. Have you ever read a book that changed your life? Go to: http://www.winninginthemargins.com Use PassKey: GoldenGrove You'll be glad you did. ::-Original Message- :: ::Sent: Wednesday, July 16, 2008 6:13 AM ::To: CF-Talk ::Subject: cfwindow inside iframe issue :: :: ::I'm using some nicely formated cfwindows as tool tip type popups inside ::an iframe that is expandable/collapsable (tr.innerHTML=iframe or ). ::When the user tries to collapse the iframe IE blows up. The expand, ::rollover, and mouseout events all act as they should. Is there a way to ::more gracefully close the iframe before blanking the .innerHTML of the ::tr that might keep this from happening? My guess is the parent being ::wiped out causes a problem for the code rendered for the cfwindow, but I ::really have no idea how CF implements this. :: ::Thanks :: :: :: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309148 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow inside iframe issue
DISPLAY is not a valid TAG ATTRIBUTE. it is just a style setting. ..setAttribute() is useless for setting DISPLAY STYLE. use William's suggested .style.display='none' / '' instead. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Jeremy Bower wrote: Correction: I just use insertRow() and deleteRow(), not innerHTML. I have now tried this: eval(if (!document.all. + table_name + .rows[1]) { my_new_row = document.all. + table_name + .insertRow(1); } else { my_new_row = document.all. + table_name + .rows[1]; }); eval(document.all. + table_name + .rows[1].setAttribute('display','yes')); for open and eval(document.all. + table_name + .rows[1].setAttribute('display','no')); for close. No JS errors, but this does not close the row, nothing happens. A getAttribute check after this shows display is changed, but nothing is rendered to the screen. Have you tried .style.display = 'none' in javascript? Instead of the .innerHTML -- William Seiter ColdFusion Web Developer / Consultant http://william.seiter.com ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309149 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow inside iframe issue
Sorry, should have noted I had tried: eval(document.all. + table_name + .rows[1].style.display='yes'); and got a JS error Could not get the display property. Invalid argument. DISPLAY is not a valid TAG ATTRIBUTE. it is just a style setting. .setAttribute() is useless for setting DISPLAY STYLE. use William's suggested .style.display='none' / '' instead. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Jeremy Bower wrote: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309155 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow inside iframe issue
YES is not a valid value for DISPLAY property. check the html/css reference. use none (to hide), inline, block or [empty string] (to show) an element. there are other valid values, too, but support varies by browser and you will unlikely use those for a TR tag display anyway. also, you remember that js arrays are 0-based? row[1] is actually the SECOND row in your table, right? have you considers using jQuery for this? (and all other things js, btw) your js would be something like this: $(#yourtridtagvalue).hide(); neat, eh? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Jeremy Bower wrote: Sorry, should have noted I had tried: eval(document.all. + table_name + .rows[1].style.display='yes'); and got a JS error Could not get the display property. Invalid argument. DISPLAY is not a valid TAG ATTRIBUTE. it is just a style setting. .setAttribute() is useless for setting DISPLAY STYLE. use William's suggested .style.display='none' / '' instead. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Jeremy Bower wrote: ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309160 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfwindow inside iframe issue
I set up a text box and a text field to try to mimic what you are trying to do. I was able to come up with this, somewhat rudimentary, concept below. I hope that it might help you to debug. var submitRow = function () { var newmssg = document.getElementById('message').value; if(newmssg..length) { addRow(newmssg); } else { alert('No Text to Add'); } } var addRow = function (mssg) { newRow = document.getElementById('testTable').insertRow(0); newRow.id = 'newrow' + document.getElementById('testTable').rows.length; newCell = newRow.insertCell(0); newCell.innerHTML = 'a href=javascript:remRow(\'' + newRow.id + '\')' + mssg + document.getElementById('testTable').rows.length + '/a'; } var remRow = function (rowid) { var lastrow = document.getElementById('testTable').rows.length - 1; for (x=0;x=lastrow;x++) { if(document.getElementById('testTable').rows[x].id == rowid) { document.getElementById('testTable').deleteRow(x); break; } } } -- William E. Seiter ColdFusion Programmer / Web Developer Free Website Trade Publication Website Magazine Be sure to answer all of the questions on the subscription form, small price to pay for the loads of excellent content this magazine offers to Web Professionals for FREE!! Have you ever read a book that changed your life? Go to: www.winninginthemargins.com Use PassKey: GoldenGrove You'll be glad you did. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309182 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4