I have a page that loads a fancybox iframe dialog. In that dialog an ajax call can be made that returns a JS response. I want that response in the iFrame to remove an element on the parent window. Here's what I have so far:
$(parent.document + ' #attachment-<%=@attachment.id%>').fadeOut('slow');
This isn't working. Suggestions? thanks