Hope that I bring you closer to your target.
I think the right place to ask may be at the SitePoint forum.
There is a good section (including code) on iFrames page 199 - 219, in the following book:
Stuart Langridge (2005)
DHTML Utopia: Modern Web Design Using JavaScript & DOM
An iFrame is like other frames and are used as an alternative method to AJAX to build dynamic content to your page without updating the whole page.
Iframes have some of the same restrictions that ordinary frames.
Here is an article:
Remote Scripting with iframe that may be of interest.
Here are two examples:
An iframe to which we send requests
A simple auto form.
PM me if you need the code.