This looks similar to the problem I am having with IE7. Just to make
sure you have ruled this out:
if you are using Internet Explorer to view a single field form, and
you type return instead of click submit the page will just reload.
Charles Rose
CogNet
MIT Press Journals
On Oct 10, 2008, at 10:53 AM, [EMAIL PROTECTED] wrote:
form.showForm("viewform-component-template");
looks better and may even be correct.
This code is complicated by database access and form repeaters.
Someone else may check the syntax. I would troubleshoot by logging
often. The "print" statement logs to the Cocoon console. Examples:
print("id=" + id);
print("Passed selectPhisicalParams()";
print("Passed getChild()");
print("type=" + comp_in_comps.get(3*i));
HTH,
solprovider
On 10/10/08, Мария Григорьева <[EMAIL PROTECTED]>
wrote:
In the other funrction with form.showForm() I have the common
problem...
function editPhisicalParams() {
var id = cocoon.parameters.id;
var form = new Form("form-definition/phisical-params.xml");
var formMap = form.asMap();
var params = dao.jdbc.selectPhisicalParams(id);
var comp_in_comps =
dao.jdbc.selectComponent_in_Composition1(params.get(0));
var repeater = form.getChild("test");
for (var i = 0; i < comp_in_comps.size()/3; i++) {
var row = repeater.addRow(i);
row.getChild("type").setValue(comp_in_comps.get
(3*i));
row.getChild("amount").setValue(comp_in_comps.get
(3*i+2));
row.getChild("select").setValue(false);
}
repeater.removeRow(comp_in_comps.size()/3);
formMap.put("density", params.get(1));
form.showForm("viewform-component-template");
........................................
........................................
After form.showForm() instructions aren't executable!
}