I have a function which moves a DIV from one window to the parent window. It
works find in Firefox and Chrome but not in IE7/8 (seems like the appendTo
fails). Any suggestions...
function appendCmtDiv(div,no) { // ** Now we need to change the ID on the
comment we are putting over and increment the count to sync up with the parent
// Increment the comment count from the parent window var cmtCount =
window.opener.$("#cmtCount").val(); var newCmtCount = parseInt(cmtCount) + 1;
// Change attributes on child DIV to match parent $("#revCmtCat" +
no).attr("name","cmtCat" + newCmtCount).attr("id","cmtCat" + newCmtCount);
$("#revCmtTextbox" + no).attr("name","cmtTextbox" +
newCmtCount).attr("id","cmtTextbox" + newCmtCount);
// Remove comment button $("#revCmtButton" + no).remove();
// Rename whole div box $("#"+ div).attr("id","TextBoxDiv" + newCmtCount);
// Set variable to where on the parent we want to append the DIV var parentDiv
= window.opener.$('#TextBoxesGroup');
// Append DIV $("#TextBoxDiv"+ newCmtCount).appendTo(parentDiv);
// Set incremented counter on parent
window.opener.$("#cmtCount").val(newCmtCount);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm