We help IT Professionals succeed at work.

IFrame vs ServerSide Proxy

Purdue_Pete
Purdue_Pete used Ask the Experts™
on
Hi,
What is the advantage of using ServerSide Proxy over IFrame and vice-versa?
Also, what about in context of ExtJS?

Thanks,
P
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2008
Commented:
Hi,

if you use an iFrame, the data inside the iframe is loaded by the client browser directly from the source web server - thus the web server must be accessible to the client and the web server will record the request as coming from the client.

if you use a server-side proxy (reverse proxy) then the server hosting the proxied data only needs to be accessible from the server (i.e. can be firewalled off and inaccessible to clients) but the requests for that data will be recorded as coming from the proxying server.

ExtJs has similar implications depending on whether the data (and/or javascripts) are delivered dirctly by the hosting web server, or via a reverse proxy.

Cheers!

Author

Commented:
meverest,
Are there more advantages and disadvantges than the ones mentioned above?
Thanks!
Top Expert 2010
Commented:
A few more:

Iframe: Potentially reduces load on the Web-server, and obviously network bandwidth. As the client is requesting the page directly.
Possibly eliminate the need to look for / remove absolute links from the Iframed site.

Proxying: Simplifies the process on providing Analytics (User activity reporting / flow / conversion rates) as all content will be delivered through one site, same JSesion ID, same logs....
Top Expert 2008

Commented:
sounds like you are fishing for something - what exactly do you want/expect/hope to hear? ;-)

Cheers.

Author

Commented:
meverest,
I would like all the possible advantages / disadvantages that experts can think of so I can improve my understanding and knowledge of the same. No, I am are not fishing :-)
Top Expert 2008

Commented:
The advantages and/or disadvantages depend a lot on what you are trying to acheive.  There is really nothing that I can think of that would make one method or the other /inherently/ good or evil ;-)

There are implications on the way that javascript functionality can interact between elements when an iFrame is present, but that would only matter if you wanted to acheiev a particular outcome that might turn out problematic (i.e. run a javascript function in the iframe that calls on objects in the parent or vice versa)

Apart from that, the comments I made previously cover the conceptual differences - what may be considered an 'advantage' in one particular application mmay well be considered a disadvantage for another application.

Cheers.