I know that this is not CF related, but I do not like the JS forum because there are 
way to many messages flowing around. What is the best way to allow nulls to be 
accepted from a child window to a parent window. I have this script;

function saveLease() {
document.Part_1.L_Lease_Type.value = childWin.document.License.L_Lease_Type.value;
document.Part_1.L_MSO_Mail_Date.value = 
childWin.document.License.L_MSO_Mail_Date.value;
document.Part_1.L_Cost.value = childWin.document.License.L_Cost.value;
document.Part_1.L_GVW.value = childWin.document.License.L_GVW.value;
document.Part_1.Insurance.value = childWin.document.License.Insurance.value;
document.Part_1.I_Company_Name.value = childWin.document.License.I_Company_Name.value;
document.Part_1.I_Policy_Num.value = childWin.document.License.I_Policy_Num.value;
document.Part_1.I_Expiration_Date.value = 
childWin.document.License.I_Expiration_date.value;
document.Part_1.I_Card_Type.value = childWin.document.License.I_Card_Type.value;
childWin.close();
 }

Not everything will be filled out. For instance, if they select one option on the 
form, then everything except the I_Card_Type will be filled out. If they select 
another option, then the Company Name, Policy Number and the expiration date will not 
be filled out. I am getting an error that the fields are null or not an object.

Thanks,

Bruce


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to