Ok, two last things stumping me now.
1. How do I reload my component using javascript
2. I have a CRUD form open in my iframe. When I click submit it want
it to submit and if it updates, close the iframe. If not, redisplay with
errors showing (it does this part already, just don't want to lose it
when I recode to close on update)
-Jim
On 7/15/2011 2:46 PM, Anthony wrote:
Glad you got it working. An iframe sounds like the simplest solution.
On Friday, July 15, 2011 3:37:25 PM UTC-4, Jim S wrote:
Hey, I think i got it working. Using fancybox I can specify to
open in an iframe. When I do so, things react as you'd expect. I
still have some work to do with formatting and flow, but I now
have the updates working.
Thanks again for helping out, without the help I don't think I
could have thought it through this far...
-Jim
On 7/15/2011 2:02 PM, Anthony wrote:
On Friday, July 15, 2011 1:15:55 PM UTC-4, Jim S wrote:
Watching firebug I don't see anything happen. No validation
runs because even if I have an error on my form, it goes
away. When I setup my form using CRUD, I set the 'next'
parameter to the same Edit Price Backer form that is
displayed before the modal is show. However, I don't think
it is even getting called. It would appear as though the
Edit Price Backer page is redisplayed, but I don't know what
is triggering it. You're probably right in assuming that the
form on the initial page is being submitted. But, if I put
a value in the form (edit price backer) and click submit on
the modal (edit price backer item) form, neither of the forms
save their values.
Is there a way with CRUD to specify your form name? I
couldn't find it.
After the form is created (e.g., form=crud() or
form=crud.create(...)), the name should be stored in
form.formname, and you can change that to something else if you'd
like.
Anthony