;

PDA

Click to See Complete Forum and Search --> : Flash Form Variables to Coldfusion (login)


Liquid Genius
08-01-2003, 03:33 PM
Hi,

First off, let me clarify my position: The company I work at has been contracted to create the frontend design and layout of a site, while another company has been contracted to do all the backend Coldfusion. I do not have access to their code due to our clients security concerns.

The backend is being served from the respective .net domain from the second companys server. The frontend is being served on our server.

While convoluted and in my humble opinion, a...... less than smart way of running this site, it is a reality I have to deal with.

All the design elements are done, including a Flash intro. We are passing a login and password from our Flash file to their CF script to validate the user and allow access. Using the loadVars object I am able to gain access, however, their page loads in a separate window. I would like for their page to load in _self. I tried to pass the login information url-encoded with getURL, whoever, I do not think their CF script will accept a url string. So my question is simply: Using loadVars how do I make it load in _self instead of in a separate window? Below is my current AS:

//Create new LoadVars object
go = new LoadVars();
//Gather input and send to validate.cfm
function gatherandSend() {
go.login = "cogneato";
//_root.all.gateway.box1.login.text;
go.password = "rockman";
//_root.all.gateway.box2.password.text;
go.send("http://www.domain.net/welcome.cfm", _root.go, "POST");
}

Liquid Genius
08-04-2003, 12:06 PM
Anybody have any ideas?

Musicman
08-04-2003, 02:53 PM
Hi,

have you tried to put "_self" (with quotes, it is a string) in place of _root.go?

Musicman

HereNt
08-05-2003, 10:28 AM
I think that you'll probably want to use sendAndLoad instead of send - you need to know if they logged in okay or not...

So you'd need something like this :

go.sendAndLoad("http://www.domain.net/welcome.cfm",_root.go, "POST");

It should make your code work. If all you need to do is send (I guess that could work... if all you need to do is let the server know who you are, and don't need your swf to know that the login worked) then you would change it to just send and change the _root.go to "_self"

Hope that helps