473,385 Members | 1,707 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.

Yet another IFRAME question

Has anyone found a reasonable, simple way to determine the height of
variable length embedded data in a cross-domain IFRAME?

I'm not interested in reading or viewing the data in the IFRAME, I
simply want to make sure it's displayed without a scrollbar. To date all
my efforts have been rejected with a security violation, although I can
set the proper IFRAME height when it's on the same domain. Therefore,
I've been forced to place the IFRAME last and make its length longer
than anything that I feel may be reasonable to avoid a scroll bar.

Due to the need for keeping the IFRAME must be kept with its proper
because of an embedded submit, I've considered using a PHP script to
load the data as a Javascript function, execute the function with an
Ifram onload, set it into a hidden DIV as innerHTML, get the height of
the DIV, then apply the DIV height to the IFRAME. This link describes
the technique of setting up a (currently) legal method of doing this and
gave me the idea.
http://www.xml.com/pub/a/2005/11/09/...html?page=last
It just seems so way over the top just to set the height of a
cross-domain IFRAME.

Thank you

Arn

PS for those of you concerned over permissions, that's not an issue. I
own the data in the IFRAME and am providing it as a service to the other
domains.
Feb 27 '07 #1
1 1383
Sorry for the garbled text on the first post.

Has anyone found a reasonable, simple way to determine the height of
variable length embedded data in a cross-domain IFRAME?

I'm not interested in reading or viewing the data in the IFRAME, I
simply want to make sure it's displayed without a scrollbar. To date all
my efforts have been rejected with a security violation, although I can
set the proper IFRAME height when it's on the same domain. Therefore,
I've been forced to place the IFRAME last and make its length longer
than anything that I feel may be reasonable to avoid a scroll bar.

Due to an embedded submit, the IFRAME must be kept with its proper
domain. I've considered using a PHP script to load the data as a
Javascript function, execute the function with an Iframe onload, set it
into a hidden DIV as innerHTML, get the height of the DIV, then apply
the DIV height to the IFRAME. This link describes the technique of
setting up a (currently) legal method of doing this and gave me the
idea.
http://www.xml.com/pub/a/2005/11/09/...html?page=last

It just seems so way over the top just to set the height of a
cross-domain IFRAME.

Thank you

Arn

PS for those of you concerned over permissions, that's not an issue. I
own the data in the IFRAME and am providing it as a service to the other
domains.
Feb 27 '07 #2

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.