Thanks Norman. Actually that URL isn't real. But
my real server PHP script doesn't return anything - literally, if I
manually form the query URL with parameters, the resulting page is
completely blank, even CTRL-U in Firefox to view source shows nothing.
Could this cause a problem for doRequest? Perhaps it expects some
response, and gets none? But why no error on the very first write,
but then error on consecutive writes? And also why no errors in SWF9
or 10?
Thanks...
On 3/25/2010 11:19 PM, Norman Klein wrote:
It sounds like the XML being sent back from the server isn't compliant.
Just enter the server's URL into a browser, , and take a look at
the XML that its returns. Its probably missing a closing slash or
something. I attempted to use http://www.thepage.com/thescript.php
and it returns an error message -- which isn't a compliant XML document
-- so maybe that's your problem.
Norman Klein
Author: Laszlo in Action
On Thu, Mar 25, 2010 at 10:08 PM, <[email protected]>
wrote:
I am
using a remote PHP script dataset and doing
POST queries to write data out. Compiling to SWF8, the data POST is successful, but I get "client could not parse XML from server" error on
all requests after the initial one. No such error building to SWF9 or
10. Example code follows:
<dataset name="ds1" src="" moz-do-not-send="true"
href="http://www.thepage.com/thescript.php" target="_blank">"http://www.thepage.com/thescript.php"
querytype="POST" request="false" />
<method name="dswrite" >
var dset = canvas.datasets.ds1
var params = new lz.Param();
params.addValue( "text", "some text" );
params.addValue( "number", "10" );
dset.setQueryString( params );
dset.doRequest();
var error = dset.getErrorString();
if( error )
Debug.write( "error: " + error );
</method>
What is this error telling me? ("client could not parse XML from
server") Is it of any concern, or just disregard?
|