When calling the newPerson method shown below, I get a "serverlessOnDataHandler
load failer from URL ' /names/create ', no data received." error. My compiled
SOLO swf applet and the data server are running from the same machine. Manually
browsing to the /names/create/firstname=Bob&lastname=Test successfully creates
a new record.
Has anyone else encountered this?
<canvas title="Testing Data" proxied="false" debug = "true">
<dataset name = "addData" type="http" src="/names/create/" />
<window x="50" y="80" width="400" height="280" title = "new person"
name="newperson" resizable="true">
<view name="myForm">
<simplelayout axis="y" spacing="10" />
<edittext name="firstName">First Name</edittext>
<edittext name="surName">Surname</edittext>
<button onclick="newPerson();">Submit
<method name="newPerson"><![CDATA[
addData.setQueryString("firstname=" + parent.firstName.getText() +
"&surname=" + parent.surName.getText())
addName.doRequest()
]]></method>
</button>
</view>
</window>
</canvas>
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user