Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How does iFrame work with server connections?

Status
Not open for further replies.

d2ned

Programmer
Jun 27, 2003
37
FI
Hi,

this might seem like a silly question, but I started wondering about how the iFrame tag actually works with server connections.

When a page is loaded from server A which contains an iFrame that points to server B, is this iFrame connection strictly between the browser and server B or is any amount of data routed through server A? I guess the perfect example might be the Youtube video 'embedding' thats been so popular lately. I tried googling everything I could think of but mostly got pages with info on the "runat" property. Thanks!

-J
 
...is this iFrame connection strictly between the browser and server B or is any amount of data routed through server A...
Server A delivers the initial page markup (which includes an iframe in the markup). The web browser renders this markup client-side. The markup contained an iframe element... which is dutifully rendered client-side. Assuming the src attribute is set on the iframe (and is set to be a file from Server B), then the src for the iframe is requested from Server B. This request is purely between the client and Server B. There is no traffic whatsoever between the client and Server A or between Server A and Server B for this.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top