PDA

View Full Version : asp popup



rmoore
November 4th, 2004, 11:28 AM
I have Flash MX connecting to my database, working perfectly, inserting into the way it should..only problem is, the asp page also pops up, in a new window instead of just using the code to talk to the server and staying hidden. I really need it to stay hidden...any ideas as to what's going on? here is my code that passes my variables from the root layer to the button, which is a couple movies deep.

on(press) {
var FirstName:String;
var LastName:String;
var EmplID:String;
var Assignment1a:String;
FirstName = _root.First;
LastName = _root.Last;
EmplID = _root.Empl;
Assignment1a = _root.Assignment1a;
getURL("insert1a.asp",0,"post");
}
:ear: :ear:

The Brown Cow
November 4th, 2004, 01:50 PM
getURL() opens a new window.

If you use the LoadVars class, you can sendAndLoad(), which won't open a new window. Just load the result into nothing or back into the sender.

glowworm
November 10th, 2004, 11:13 AM
where do you place the script..on the button or the movie clip of the form?
This is what my code looks like..

on(press) {
myButton.onPress = function(){
myForm.sendAndLoad("processForm.asp",0,"POST");
}
gotoAndPlay("thankyou")
}