PDA

View Full Version : Form submission error of basic form from LaszloExplorer


Creator1326
03-18-2008, 08:22 AM
Below is the code snippet I am using, I am trying to replicate the basic form from laszlo explorer before making the form functional. Problem is I get the error "form submission error «lz.dataset#2| <cSearchResults/>» " I do this all the time with regular HTML pages where the form action would be "contacts.lasso" but I am specifying the whole path since the Lasso language on my server is set for port 80. The contacts.lasso page just echos back as content type text/html the action parameters passed to it. Why isn't this SIMPLE form working?

<dataset name="cSearchResults"
type="http" src="http://www.mysite.org:80/contacts.lasso"/>

<form id="cSearch" bgcolor="#7E96CC">
<submit name="submitter" data="${cSearchResults}"/>
<view layout="axis: x; spacing: 5">
<text y="2">First Initial:</text>
<edittext width="20" name="firstinitial" id="firstinitial"></edittext>
</view>
<view layout="axis: x; spacing: 5">
<text y="2">Last Initial:</text>
<edittext width="20" name="lastinitial" id="lastinitial"></edittext>
</view>
<button isdefault="true" onclick="parent.submitter.submit()">Search</button>
</form>

Creator1326
03-18-2008, 01:49 PM
How is data posted to the dataset using this method? Is it encoded or formated differently than a standard http post method?