Hi Kenneth, nyroModalRemove() is a standard nyroModal call. What version of nyroModal are you using? I'm using 1.6.2, which I see has been replaced by version 2, so maybe the call is depreciated? My only other thought is...are you opening nyroModal in an iframe? I initiate the modal window from the parent view like this:
$('.nyroEdit').click(function(e) { e.preventDefault(); $.nyroModalManual({ url: $(this).attr('href'), forceType: 'iframe' }); return false; }); With links that look like this... <a href="{{=URL(r=request, f='function_name_goes_here/%s' % record_id_goes_here)}}" class="nyroEdit" target="_blank">name_goes_here</a> It works for me. 2011/11/5 Kenneth Lundström <kenneth.t.lundst...@gmail.com> > Hi Russell, > > Have you defined nyroModalRemove somewhere? I'm getting > "parent.$.nyroModalRemove is not a function" when using your suggested > three lines. > > > Kenneth > > return_script = ['parent.$.nyroModalRemove();'**] >> return_script.append('parent.**window.location.reload();') >> return HTML(BODY(SCRIPT(''.join(**return_script)))).xml() >> > >