Skip to main content
October 7, 2010
Question

after flashplayer update sendAndLoad doesn't work in browser.

  • October 7, 2010
  • 1 reply
  • 590 views

Hi, - I have a site that have worked without any problems for 2 years.

I have an email form that sends some variables and receives a true/false from the server.

It works perfect if I use a computer that doesn't have the lates flashplayer OR if I just test from inside flash.

The

if (succes)...

fails every time with the new flash player...

What is the problem?

function sendEmail(name,alder,email, mobil,nyhedsbrev, betingelser,vej_txt,postnr_txt,by_txt)

{

var myData = new LoadVars();

myData.name = name;

myData.mail = email;

myData.mobil = mobil;

myData.nyhedsbrev = _global.nyhedsbrev;

myData.vej = vej_txt

myData.postnr = postnr_txt

myData.by = by_txt

trace("--")

trace("myData.id = "+myData.id)

trace("myData.name = "+myData.name)

trace("myData.alder = "+myData.alder)

trace("myData.email = "+myData.email)

trace("myData.mobil = "+myData.mobil)

trace("myData.nyhedsbrev = "+myData.nyhedsbrev)

trace("myData.betingelser = "+myData.betingelser)

trace("myData.kontakt = "+myData.kontakt)

trace("--")

myData.onLoad = function(succes)

{

//status_txt.text=succes

if (succes)

{

status_txt.text = "Mange tak skal du have."

   breMe = function(){

  

   clearInterval(breRun);

  

   breRun = undefined

  

 

  

  

   var breRun = setInterval(breMe,5000);

}

else

{

status_txt.text = "Der opstod en fejl, - prøv igen senere.";

}

submit_btn.enabled = true;

};

myData.sendAndLoad('http://www.mysite.dk/my.php‏', myData, 'GET');

}

Kind regards

Godowsky

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 7, 2010

use a relative path to your php file.  you're probably encountering a cross-domain security issue with that absolute url.

October 7, 2010

there is a crossdomain xml file on the server with the php and as I said, - it has worked for years.

But, - thanks for the advice, - I'll see if I can get the php file on my server

Kind regards

Godowsky

kglad
Community Expert
Community Expert
October 7, 2010

you'll need to update your cross-domain permissions then to include a meta-policy file your the php server's root and possibly a policy file in a subdirectory if policy is not specified in your meta-policy file.  or, just move that php file.