Sitemap

Amicuk Programming Answers

Xml.send() works but not sendAndLoad()

-0001-11-30   Views:0

Advertisement

Hi guys, i'm trying to send data to a servlet ( which is hosted on a different server and managed by a 3rd party so i can't change it) When I use the following code: requestXML.send (" http://www.mydomain.com/xmlpost", "_blank","P

Hi guys, i'm trying to send data to a servlet ( which is
hosted on a different server and managed by a 3rd party so i can't
change it)
When I use the following code:
requestXML.send ("
http://www.mydomain.com/xmlpost",
"_blank","POST");
it opens a new browser window which displays the xml
response. All good.
But I don't want a new broswer window. I want the flash to
wait and see what the response is. So I use:
requestXML.sendAndLoad ("
http://www.mydomain.com/xmlpost",
myLoginReply_xml,"POST");
var myLoginReply_xml : XML = new XML ();
myLoginReply_xml.contentType = "text/xml";
myLoginReply_xml.ignoreWhite = true;
myLoginReply_xml.onLoad = myOnLoad;
function myOnLoad(success:Boolean) {
if (success)
getURL ("javascript:alert('" + myLoginReply_xml + "')")
} else
getURL ("javascript:alert('FAIL!')")
And nothing happens.
Is there any difference between send and sendAndLoad why it
wouldn't work? Different security parameters, different dtat
format, anything?
Thanks!

The replay answer
Advertisement
Well that didn't do it. Further investigation brought the
following facts:
If i test from the flash environment, Flash doesn't ask for a
crossdomain.xml and the request is made ( i get an entry in the
database) and the response sent, but Flash doesn't pick anything up
and the reply XML.onLoad event never fires.
If I test from a dev server, flash looks for the
crossdomain.xml file, but even though it finds it and the servers
are allowed to communicate, the request never gets sent (no entry
in the database)
Arrrrgg I'm pulling my hair over this!
Anyone able to help ?
Thanks.

Go to See the other 4 answers

Xml.send() works but not sendAndLoad()

Category:DefaultRelease time:-0001-11-30Views:130

Hi guys, i'm trying to send data to a servlet ( which is hosted on a different server and managed by a 3rd party so i can't change it) When I use the following code: requestXML.send (" http://www.mydomain.com/xmlpost", "_blank","P[More]

Configuration FTP Adapter XML - Sender

Category:DefaultRelease time:2015-10-11Views:130

Hello: I need to configure dynamically the IP, directory and file name of the FTP through a Sender file/FTP adapter; in other words, I need to set those parameters in the XML message. The IP address, directory and file name of the FTP are obtained in[More]

How to ignore Recordset name in XML(Sender JMS Adapter)?

Category:DefaultRelease time:2015-10-11Views:130

Hi All. I am using Sender JMS Adapter along with content conversion. I have put in Parameter: Plain2XMLService xml.ignoreRecordsetName true still the Inbound payload in SXI_MONITOR has Node Recordset, which should not be the case. Please advice, does[More]

File URL for XML Send?

Category:DefaultRelease time:2015-10-11Views:130

Hello Experts-- I would like to send mapped data from CX to a file on the localhost.  Can I use a URL like file://c:/fred.xml as the XML URL? With CX 4.5 this used to work, but with CX2008 I am getting a #2032 error.  I have set Global Security Setti[More]

CRLF in the XML - Send Pipeline

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have a requirement to send a XML message via biztalk to a third party. In the Send pipeline, i need to do a processing where by a specific node in the xml, value needs to be replaced with a constant. so i wrote a custom pipeline component th[More]

Need conversion logic for the xml sending from legacy system ...!!!

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts , we have one requirement where in the legacy system ( Sender system) is sending .xml  file and PI needs to pick the file and send it to ECC Via IDOC AAE Receiver Adapter  to R/3  (SAP ECC) System . The problem is the  .xml file which PI r[More]

Xml.send() sending blank data?

Category:DefaultRelease time:-0001-11-30Views:130

I am attempting to send XML data to a PHP script from my server-side app using the following code:     var my_xml = new XML("<highscore><name>Ernie</name><score>13045</score></highscore>");     my_xml.contentT[More]

Xml Sending Mail

Category:DefaultRelease time:-0001-11-30Views:130

Hi all, I have converted Standard Remittance Report to XML and everything worked fine. Now after the PDF output was generated i need to send those outputs thru mail. How to do it? Please help.. Regards RajeshRajesh, Please see (Note: 871335.1 - IS IT[More]

[FLMX] xml.send

Category:DefaultRelease time:-0001-11-30Views:130

Hola. quiero abrir una ventana nueva usando el método send del objeto xml. El problema es que quiero abrirla con opciones como quitar las barras de herramientas.... Como se puede hacer eso? Gracias.It's for reading the raw data of the request. Since[More]

XML sending to Mobile Device with KXML + Bluetooth

Category:DefaultRelease time:-0001-11-30Views:130

Dir Madame, Dir Sir ;-) I am using a N73, WTK22, EcipseME and KXML 2.3.0. I initalized a Bluetooth Connection between my mobile and my desktop application. So far, so well. It is possible to send simple String-Messages to my mobile device via DataOut[More]

Help needed with sending XML data out of Dashboard design/ Xcelsius

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I did this a year back and got it right, but now am not able to get it, probably Ive made a small mistake which I have been overlooking. I selcted Enable XML send in my XML data connection and dfined the connection name as "Range_1" and[More]

Hot
I have tried to install the newest quicktime update. The Software update preference panel did not show the update, but I downloaded it manually. The installer says "Cannot install QuickTime on this volume. This software does not contain support for y [More]
Hi, We have configured request based provisioning for the 3 target applications. As a process 1) Manager is log in to OIM Identity console and selects the one user and provision the application Instance after selecting the required roles in the Appli [More]
I've read all of the posts and tried to resolve it by doing what was instructed. I copied my mail folder, moved the envelope index file to my destop and when I start mail, it imports everything, lets me click "done" and then hangs. I had a mac a [More]
I am unable to open a PDF attachment in Mac Mail. There is not a PDF Icon in the email message. Is there a setting that should be checked? I have a new iMac (less than a month old) with Mountain Lion. Help would be greatly appreciated. ThanksIt is an [More]
Getting Error while installing LabVIEW on Linux and unable to use VISA. Please check the installation Log i Have attached. nilesh Attachments: Installation Log LV2012 Linux.txt ‏25 KBI could not find a trail version for LINUX.  Its only available for [More]
Hi all: I'm running Safari 5.1.3, Lion 10.7.3 on an iMac. About a month ago (prior to upgrading to the latest OS yesterday), I noticed that on certain web sites, I am unable to save PDFs after they open up in a new Safari browser window. This happens [More]
I've mislaid my master discs but need to repartition the hard drive in order to install Bootcamp and Windows.  If I re-format the hardrive I'll have no master System to update.  Is it possible to download initial installation for OSX10.5 ?You can use [More]
Reading a CHAR out parameter from a PL/SQL stored procedure with getString() returns a string with 32000 chars, instead of 3 (the original variable size). If the parameter is defined as varchar2, no problem occurs. Here is an example: create or repla [More]
since 5.0 i have not been able to sync and i have lost 1200 songs from my ipod that are still showing in my itunes library. when i attempt a transfer the ipod icon in the margin of itunes flashes red then i get unknown error -69. A) what does the fla [More]
Hi, A few days ago, i updated my new Mac Book pro to Mac OS 10.7 Lion, and paid with my credit on my apple-id. Today, i've got a mail from my apple reseller, that i may update free to lion, but i didn't know that i may free update my macbook. Is it p [More]