Re: dojo Dialog, forms, asynchronous submission and javascript

2007-05-10 Thread Julian Wood
Ok I've got this working now, by doing the validation again, though that doesn't seem like the optimal way to do it. dojo.event.connectOnce(tapestry.form, "submitAsync", function (e) { if (e.id != "addBillableItemEventForm") return; if (tapestry.form.validation

Re: dojo Dialog, forms, asynchronous submission and javascript

2007-05-10 Thread Julian Wood
Ok that is quite nice. Still a few things. I'm at this point: dojo.event.connectOnce(tapestry.form, "submitAsync", function (e) { if (e.id != "addBillableItemEventForm") return; dojo.widget.byId("addBillableItemEventDialog").hide(); });

Re: dojo Dialog, forms, asynchronous submission and javascript

2007-05-09 Thread Jesse Kuhnert
Yes: dojo.event.connectOnce(tapestry.form, "onFormSubmit" /** or even "submitAsync" */, function(e){ // if you think it might be an issue you can double check the target element id if (evt.target.getAttribute("id") != "myExpectedId") return; dojo.widget.byId("yourDialogCompo