I think I see the problem; in lps/components/base/submit.lzx the
submit method clears the query string
and replaces it with the form parameters:
<method name="submit"> <![CDATA[
if (!this.data) {
return;
}
//Debug.write('submit', parent, parent.formdata);
var query_data = new LzParam(); // data for the query
for (var i in parent.formdata) {
var item = parent.formdata[i];
var submitname = item.submitname;
if (submitname == "") submitname = item.name;
if (submitname != "" && parent.formdata[i].submit) {
query_data.addValue(submitname,item.getValue(), true);
}
}
this.setAttribute('status', 'requesting');
this.setAttribute('error', '');
this.data.setQueryString( query_data );
this.data.doRequest();
]]>
</method>
So you'd have to override that class/method to preserve your "qs"
query arg, or maybe set it as a hidden
data parameter so it gets set in the submit.submit() method.
On Dec 19, 2007 6:22 PM, Dave Miller <[EMAIL PROTECTED]> wrote:
>
> I would do it like this:
>
> <dataset name="ds" request="false" src="http://www.../sr.php" />
>
> and then your button code would be:
>
> <button text="Submit" onclick="sendit()">
> <method name="sendit">
> var d = canvas.datasets.ds;
> var p = new LzParam();
> p.addValue('qs', 'stuff' ,true);
> d.setQueryString(p);
> d.doRequest();
> </method>
> </button>
>
> (Warning: this is untested email code.)
>
> HTH,
>
> Dave
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]