> -----Original Message-----
> From: jonese [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 13, 2005 9:12 PM
> To: CF-Talk
> Subject: OT: Javascript & Iframe question
> 
> Does anyone know how to populate a form field which resides on a
> differant server but pulled in via an iframe?

Simple answer is that you can't.

Although all the code resides in the same browser security models will
prevent frames populated from different servers from interacting.

There are ways to get around it however... but none are simple or pretty.

+) You might use a server-side proxy.  Instead of the iFrame fetching the
form have your server do it and pass it to the client.  Then all the frames
will be populated from the same server and you'll be set.  Of course this
can get tricky if the frame is dynamic or client-specific.

+) You can use a browser security mode which doesn't prevent this.  In the
IE world this would mean using the HTA (HyperText Application) capabilities
of IE 5+.  FireFox has, I believe a similar "high rights" mode.  I LOVE this
stuff but it's not something to do lightly: you lose browser chrome and
capabilities.

In effect your just running HTML/DHTML in a "blank" browser container.  It's
great for building client-side apps using web technologies but isn't
something to decide to solve a web page problem.

I'm sure there are other options... but they're all going to be sea-changes.
Doing this in a "normal" browser environment just isn't allowed.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:224058
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to