And I'm using taconite too so possibly one for Mike ;-D

To summarise:
I'm calling blockUI and then running ajaxForm on my whole page form.
BlockUI is firing an overlay (with form field content) but only after
the form has been ajaxed. Because of this my fields aren't seen as in
the form and so subsequent form submits fail. Firebug says:
form is null, /assets/js/jquery.form.js, Line 364 (form.clk = this;)

The longer version:
The javascript for these events are being returned to taconite within
<eval> blocks. They are coming back in the below order:
blockUI on whole page
I then call a custom function which contains the "$('#page-
form').ajaxForm({ dataType: 'xml' })";

When I alert inside that custom function it occurs before any blockui
overlay is shown. I'm surmising that this is breaking the form submit
for elements within the blockui message (which are actually already on
page but hidden).

I've tried adding alerts before and after blockui is called and they
run in the correct order so I'm guessing that perhaps blockui queues
itself to run somehow.

Does anyone have suggestions on the best way to fix this issue?
BlockUI doesn't have any after block callbacks that I'm aware of. I'm
wondering if I can add a beforeSubmit callback to the ajaxForm method
that calls itself to update the form but that just feels a bit dirty.

I use the framework that I've put together extensively and it's only
when adding blockui that I have this issue so I'm (at least fairly)
sure that it's not a PEBKAC issue.

Any assistance is appreciated.

Reply via email to