[Xsltforms-support] Error when submitting from xform with replace="all"
Brought to you by:
alain-couthures
|
From: Javier D. <jd...@ge...> - 2010-01-14 19:30:45
|
Hello,
When I have an xform with a submission like this:
<xf:submission id="enviar_seleccion" method="get" replace="all"
action="pruebas/javi/xforms/pai-ip.xml">
<xf:message ev:event="xforms-submit-error"
level="modeless">Error al enviar, compruebe los datos
introducidos</xf:message>
</xf:submission>
When the submision is done, this error appears:
"this.data is null"
in the following code (---> is the point of execution when error appeared):
function run(action, element, evt, synch, propagate) {
xforms.openAction();
if (synch) {
Dialog.show("statusPanel", null, false);
setTimeout(function() {
action.execute(IdManager.find(element), null, evt);
--> Dialog.hide("statusPanel", false);
if (!propagate) {
evt.stopPropagation();
}
xforms.closeAction();
--------------------------
hide : function(div, modal) {
if (modal) {
this.depth--;
if (this.depth == 0) {
$('xforms-dialog-surround').style.display = "none";
} else {
$('xforms-dialog-surround').style.zIndex = (this.depth+this.initzindex)*2-2;
}
}
this.showSelects(div, true, modal);
if (typeof div != "string") {
var divid = div.getAttribute("id");
if (divid != null && divid != "") {
div = IdManager.find(divid);
}
} else {
---> div = IdManager.find(div);
}
if (div) {
div.style.display = "none";
}
}
--------------------------
find : function(id) {
*--> var ids = this.data[id];*
if (ids) {
for (var i = 0; i < ids.length; i++) {
I think the problem is that it seems xforms document is closed and some
elements destroyed before execution finishes. When using
replace="instance" instead "all", no error appears.
This problem doesn't affect to the execution of the following page, and
only appears in firefox error console.
I have find also a curious thing, submission template accepts a "show"
atributte, but in xforms 1.1 specification
(http://www.w3.org/TR/xforms11/#action-load), I only see it in load
element. Is there a newer specification of xforms? Do you support extra
functionality in xsltforms? If yes, how can I know about them without
reading all xsltforms.xsl code?
Best Regards,
Javier
|