I am using FancyBox to display my modal dialog. www.fancybox.net.
I believe it does support callbacks. I just don't know how to register
it so that it is executed after the form has been accepted and the db
updated.
-Jim
On 8/30/2011 3:14 PM, Bruno Rocha wrote:
What modal lib are you
if using IFRAME:
$('.yourselector iframe').load( function(){ $('body',
$('iframe').contents()).prepend('JS HERE '); });
What modal lib are you using?
It support js callbacks?
In nyro I can specify some JS to be included inside model frame.
You can have a view to be used only with crud and input the javascript
there.
http://zerp.ly/rochacbruno
Em 30/08/2011 17:01, "Jim Steil" escreveu:
> Still stuck on this one.
On Tuesday, August 30, 2011 4:00:17 PM UTC-4, Jim S wrote:
>
> Still stuck on this one. Anyone have any advice?
>
> The problem (as it stands now) is after an update to the record via a modal
> edit form, I can't get the 'next' url to load in the main window. It is now
> displaying in the moda
Still stuck on this one. Anyone have any advice?
The problem (as it stands now) is after an update to the record via a
modal edit form, I can't get the 'next' url to load in the main window.
It is now displaying in the modal window (iFrame). Bruno recommended
executing some JS to set the wi
It would appear that I can supply an 'onaccept' argument on a
crud.create that is a function or list of functions to be executed after
the record is updated. Is there a way I could use this to change the
'target' on the form submission in the event of a successful update?
Again, any help woul
Ok, found what was causing the problem.
On my page that I'm loading in my modal window I was specifying a
different view. This view had:
...in the section. This caused all submits/re-displays to go to
the parent to display. If I take it out it works as expected. However,
now (as Bruno
Anthony and Bruno
Thank you for your replies. I tried nyroModal but get the same results
as with FancyBox (which I've been using). I am going to work up a
simple app that shows my problem. Either that will show me where my
problem lies or provide something simple for you to see the behavior
Your modal uses Iframe?
nyroModal needs target='_blank' to open in iframe and work as you want.
Other modal plugins has other ways for doing it.
For redirect in parent window. You ll need to execute a javascript inside
modal.
window.parent.location = ''
http://zerp.ly/rochacbruno
Em 24/08/2011
Hi
I have a crud.update that I'm displaying in a modal iFrame. This is
working fine for me except when there is an error in the form and crud
redisplays with the error message. This is opening outside the iFrame
when I want it to load inside the iFrame. But, on submit, the next url
should
10 matches
Mail list logo