Wednesday, January 18th, 2006

PORK.iframe: Form submission with iframes

Category: JavaScript, Library, PHP

Jelle Ursem has created PHP on Rails (kinda).IFRAME, or PORK.iframe.

He told us that:

I’ve messed around the whole day building on top of moo.ajax building pork.iframe.

you can now just do <form method=’post’ action=’index.php’ onsubmit=’new iframe(this); return false;’> and an iframe will automatically be created to update your results asynchronically.

As an extra, i’ve provided simple but effective remote script loading and filling of multiple elements on the page by using JSON

I’m using this as part of a new web framework i’m writing, called P.O.R.K. (PHP On Rails (kinda)) It will read and analyse your database structure, relations and links, and generate a complete front and backend specifically tailored to your database. Kinda like ROR, but better ;) (more about that in a couple of weeks)


NOTE: we talked about uploading files and contents with Dojo

Posted by Dion Almaer at 12:10 pm

4.2 rating from 21 votes


Comments feed TrackBack URI

What does “On Rails” mean?

Comment by SD — January 18, 2006

“On Rails” means that it lays out a path for you wich you can build upon.

Comment by SchizoDuckie — January 18, 2006

Unless I’m missing something, it doesn’t seem to work in Safari/Webkit 417.8. I just get a new tab with a print_r of the $_POST array.

Comment by ceejayoz — January 18, 2006

Try it now, i might have found a way to make it work, but i cannot test safari as i am on windows :)

Comment by SchizoDuckie — January 18, 2006

testin’ your ajax here :)

Comment by just — January 26, 2006


Comment by test — February 16, 2006

Update: It works on safari now!

Comment by SchizoDuckie — March 2, 2006

I have made some additions to get it working on Opera 7 and Internet Explorer on Mac too.
I’m happy to send the changes to you. Please contact me at juerg * scratchdisk * com

Comment by Juerg — March 7, 2006

Hi guys, could somebody willing to do me a favor, by telling me the author of this pork iframe script?
I like his solution, but I couldn’t get it to work and I couldn’t find a way to email him in reporting some bugs.

Please us my contact form on my website to email me.

Thank you guys

Comment by Wendy Novianto — March 13, 2006

On line 67, replace:




Comment by Getting Pork to work with SSL+IE with no warnings — April 14, 2006

I don’t get it.

Comment by Bill — November 28, 2006

Leave a comment

You must be logged in to post a comment.