The sandbox example from Adobe should meet your needs. Snitter used this approach originally and had 90% of the application running within the sandbox. The only hassle is defining the API to pass data back and forth from the application sandbox. Oh, and initialization routines have to be considered: first the iframe loads, then the parent window. How you attach things to the API has to be done in a specific order. (I believe the sandbox example has this covered.)
The sandbox example from Adobe should meet your needs. Snitter used this approach originally and had 90% of the application running within the sandbox. The only hassle is defining the API to pass data back and forth from the application sandbox. Oh, and initialization routines have to be considered: first the iframe loads, then the parent window. How you attach things to the API has to be done in a specific order. (I believe the sandbox example has this covered.)