473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

IFrame Question

GSL
Hello,

I'm building an application that will be incorporated into existing
websites. I'd like to use the IFrame tag to accomplish this, but now I'm
having second thoughts based on all of the negative comments I've seen
regarding IFrames.

Is there an alternative method to allow a page to seamlessly access another
site?

-gsl
Apr 24 '06 #1
3 1508
Because of cross-site scripting (XSS) restrictions, even using XMLHTTP won't
work with all browsers. For example in Internet Explorer if the target site
is in the IE Trusted Sites zone, requesting content is allowed. In Firefox,
there is no way to get content from another site than the server from which
the page was served.

Maybe you could provide more detail about what it is you want to accomplish.
Javascript is often used to provide content from other sites.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"GSL" wrote:
Hello,

I'm building an application that will be incorporated into existing
websites. I'd like to use the IFrame tag to accomplish this, but now I'm
having second thoughts based on all of the negative comments I've seen
regarding IFrames.

Is there an alternative method to allow a page to seamlessly access another
site?

-gsl

Apr 24 '06 #2
GSL
My thought is that the IFrame content will be completely independent of the
main site (no cross-site communication). So, once the user navigates to the
page on the main site that contains the IFrame, they will interact
exclusively with the IFrame content. The application (which appears in the
IFrame) will use AJAX, but within it's own domain.

Thanks,
gsl
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:B5**********************************@microsof t.com...
Because of cross-site scripting (XSS) restrictions, even using XMLHTTP won't work with all browsers. For example in Internet Explorer if the target site is in the IE Trusted Sites zone, requesting content is allowed. In Firefox, there is no way to get content from another site than the server from which the page was served.

Maybe you could provide more detail about what it is you want to accomplish. Javascript is often used to provide content from other sites.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"GSL" wrote:
Hello,

I'm building an application that will be incorporated into existing
websites. I'd like to use the IFrame tag to accomplish this, but now I'm having second thoughts based on all of the negative comments I've seen
regarding IFrames.

Is there an alternative method to allow a page to seamlessly access another site?

-gsl

Apr 24 '06 #3
thats what iframe (or frames) are designed for. be careful of using targets
like "_top", or postbacks can replace the parent page.

an issue with using an iframe over frame, is if the parent page posts back,
your iframe will be reloaded with the original source (a get), so you need
to be careful about maintaining state.
-- bruce (sqlwork.com)
"GSL" <Gu***********@gmail.com> wrote in message
news:Us********************@comcast.com...
My thought is that the IFrame content will be completely independent of
the
main site (no cross-site communication). So, once the user navigates to
the
page on the main site that contains the IFrame, they will interact
exclusively with the IFrame content. The application (which appears in
the
IFrame) will use AJAX, but within it's own domain.

Thanks,
gsl
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:B5**********************************@microsof t.com...
Because of cross-site scripting (XSS) restrictions, even using XMLHTTP

won't
work with all browsers. For example in Internet Explorer if the target

site
is in the IE Trusted Sites zone, requesting content is allowed. In

Firefox,
there is no way to get content from another site than the server from

which
the page was served.

Maybe you could provide more detail about what it is you want to

accomplish.
Javascript is often used to provide content from other sites.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"GSL" wrote:
> Hello,
>
> I'm building an application that will be incorporated into existing
> websites. I'd like to use the IFrame tag to accomplish this, but now I'm > having second thoughts based on all of the negative comments I've seen
> regarding IFrames.
>
> Is there an alternative method to allow a page to seamlessly access another > site?
>
> -gsl
>
>
>


Apr 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
3
by: Alexandre Jaquet | last post by:
Hi I wanna know how can I reload an iframe does I've to move my iframe into another form an do a submit or may I can do it by another way rigth now I'm been doing : my form name is mainform...
6
by: SF RVN | last post by:
I have searched NUMEROUS sources in an effort to find the magic (script, styles, syntax, etc.) that will allow me to create a web page with the following format: ...
7
by: Patrick.O.Ige | last post by:
Can i use Frameset in ASP.NET?What are other options I have a question :- I have an asp.net page and i'm using TreeView control as links The links are on the left side of the page inside a iframe!...
6
by: paul | last post by:
HI! How do we send a variable from an Iframe page back to its parent? I have a script that calculates the iframe's window size but I need to know how to send that value back to its parent so I...
7
by: ukrbend | last post by:
I use an iframe on my home page and everything works perfectly. But now I decided to add a popups to my page. The popups come not from within the iframe but from the parent frame. Again, everything...
21
by: javainfo | last post by:
How can i refresh IFRAME and load data through AJAX?
5
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html"...
0
by: mem | last post by:
Hello, I'm a novice at this and am trying to solve a problem reference IFrame. The following code is for a page I've created. It works well with two exceptions. The IFrame is an application hosted...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.