Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Exercise With Responds To Parent
JavaScript Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
log
public
script
vendor/plugins/responds_to_parent
.gitignore
README
Rakefile

README

== 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)
Something went wrong with that request. Please try again.