Skip to content

akitaonrails/demo_responds_to_parent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Example using Responds To Parent and Paperclip

The problem: you are using an Ajax based dialog box. So you want to POST the
form back using Ajax but you can't because it is a multipart form with 
image uploading.

So you need to POST to a target hidden IFRAME. Problem is, the Javascript
that will come back will run inside the IFRAME.

Solution: using the responds_to_parent plugin, it will trap the returning
Javascript so it is executed in the parent window.

== Links:

Responds to Parent: http://github.com/markcatley/responds_to_parent
ModalBox: http://github.com/okonet/modalbox

== Author:

Fabio Akita (boss@akitaonrails.com)

About

Exercise With Responds To Parent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published