# IE window trying to close itself FLASH and ASP

**URL:** <https://forum.kirupa.com/t/ie-window-trying-to-close-itself-flash-and-asp/238900>\
**Category:** flash\
**Created:** [September 16, 2007, 11:35pm UTC](https://forum.kirupa.com/t/ie-window-trying-to-close-itself-flash-and-asp/238900 "2007-09-16T23:35:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anniepbythesea](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@anniepbythesea](https://forum.kirupa.com/u/anniepbythesea)\
**Post date:** [September 16, 2007, 11:35pm UTC](https://forum.kirupa.com/t/ie-window-trying-to-close-itself-flash-and-asp/238900/1 "2007-09-16T23:35:17Z")

</div>

Hello,

I created a form in Flash 8 as well as an ASP page. They work great but, for some reason, in IE, when you hit submit, a blank page comes up and says “this window is trying to close itself”

The information is sent but is there a work around in either my AS or ASP to get rid of this annoying window?

This is my AS:

// -------------------\<send form LoadVars\>------------------- \  
var gatherForm:LoadVars = new LoadVars();

function sendForm() {  
gatherForm.visitor\_date = contactForm.userDate.text;  
gatherForm.visitor\_name = contactForm.userName.text;  
gatherForm.visitor\_relation = contactForm.userRelation.text;  
gatherForm.visitor\_street = contactForm.userStreet.text;  
gatherForm.visitor\_city = contactForm.userCity.text;  
gatherForm.visitor\_state = contactForm.userState.text;  
gatherForm.visitor\_zip = contactForm.userZip.text;  
gatherForm.visitor\_phone = contactForm.userPhone.text;  
gatherForm.visitor\_email = contactForm.userEmail.text;  
gatherForm.visitor\_startLocation = contactForm.userStartLocation.text;  
gatherForm.visitor\_ceremonyLocation = contactForm.userCeremonyLocation.text;  
gatherForm.visitor\_ceremonyTime = contactForm.userCeremonyTime.text;  
gatherForm.visitor\_receptionLocation = contactForm.userReceptionLocation.text;  
gatherForm.visitor\_receptionTime = contactForm.userReceptionTime.text;  
gatherForm.visitor\_vehicleUsedFor = contactForm.userVehicleUsedFor.text;  
gatherForm.visitor\_vehicleType = contactForm.userVehicleType.text;  
gatherForm.visitor\_other = contactForm.userOther.text;

gatherForm.send(“contact.asp”, “POST”);  
}  
// -------------------\</send form LoadVars\>------------------- \

\_global.style.setStyle(“fontFamily”, “Times”);  
\_global.style.setStyle(“fontSize”, 12);  
\_global.style.setStyle(“color”, 0x000000);

//--------------------\<submit button AS\>---------------------\

// onRelease  
this.contactForm.submitBtn.onRelease = function() {  
if (contactForm.userDate.text == “” || contactForm.userName.text == “” || contactForm.userPhone.text == “” || contactForm.userEmail.text == “” || contactForm.userVehicleType.text == “”) {  
gotoAndStop(“error”);  
} else {  
sendForm();  
gotoAndStop(“correct”);  
}

}

//--------------------\</submit button AS\>---------------------\

Any help would be great appreciated. Thanks so much! I can attach my ASP file if that is where the solution is.
