This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XML > September 2005 > XForms help needed - Multiple form per document submission problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XForms help needed - Multiple form per document submission problem
|
|
| Aurelian 2005-09-13, 7:53 pm |
| Hi,
I've been experimenting with Mozilla's XForms implementation for about a
week and I can't seem to find the solution for the following problem:
I am including in the XHTML document several models as follows:
....
<xf:model id="Context">
<xf:instance xmlns="ctx">
<ctx:context>
<ctx:provider></ctx:provider>
<ctx:scheduleDate></ctx:scheduleDate>
</ctx:context>
</xf:instance>
<xf:submission id="notUsed" method="post"
action="http://localhost:8080/XForms/Submit" />
</xf:model>
<xf:model id="Schedule">
<xf:instance src="http://localhost:8080/XForms/XFormsData" />
<xf:bind nodeset="/schedule/provider" id="schedule" />
<xf:submission id="getRequest" method="get"
action="http://localhost:8080/XForms/Submit" />
<xf:submission id="postRequest" method="post"
action="http://localhost:8080/XForms/Submit" />
<xf:submission id="putRequest" method="put"
action="http://localhost:8080/XForms/Submit" />
</xf:model>
.... the submit button section looks like
<!-- SUBMIT BUTTON -->
<xf:submit model="Schedule" submission="getRequest">
<xf:label>Save (GET)</xf:label>
</xf:submit>
<xf:submit model="Schedule" submission="postRequest">
<xf:label>Save (POST)</xf:label>
</xf:submit>
<xf:submit model="Schedule" submission="putRequest">
<xf:label>Save (PUT)</xf:label>
</xf:submit>
If I comment out the Context model the Schedule data submission
(GET/POST/PUT)is fine. However for this code the form will not POST or
PUT and will try to send a GET with no parameters.
According to section "2.4 - Multiple Forms per Document" this should be
OK and I've seen the Novell plugin for IE6 actually posting this data
which confuses me even further.
I would really appreciate some help regarding what am I doing wrong here!
Best Regards,
Aurelian Penciu
apenciu@alpha-it.com
| |
| Allan Beaufour 2005-09-14, 7:31 am |
| Hi,
Tuesday 13 September 2005 19:19 skrev Aurelian:
> I've been experimenting with Mozilla's XForms implementation for about a
> week and I can't seem to find the solution for the following problem:
I just tried submission with two different models, including an external
instance in the second one. Seems to work for me.
Which version of Mozilla/Firefox and xforms.xpi are you using? Are you getting
any errors on the JavaScript console?
--
Allan Beaufour
Novell Denmark
| |
| Aurelian 2005-09-14, 7:56 pm |
| Allan Beaufour wrote:
> Hi,
>
> Tuesday 13 September 2005 19:19 skrev Aurelian:
>
>
>
> I just tried submission with two different models, including an external
> instance in the second one. Seems to work for me.
>
> Which version of Mozilla/Firefox and xforms.xpi are you using? Are you getting
> any errors on the JavaScript console?
>
Hi Allan,
The Mozilla/Firefox version is Deer Park Alpha 1 (rv: 1.8b2, Gecko
20050531). I downloaded it and the matching xforms.xpi from
http://www.mozilla.org/projects/xforms/ (the Windows section). I did not
try newer versions from the nightly build so far.
There are no errors or warnings in the JavaScript console.
Best Regards,
Aurelian Penciu
apenciu@alpha-it.com
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|