Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

changing Iframe's height from itself ..


Hi ,
 I am using a cross domain iframe in my page..
If i want to change the iframe height a/c to its content height , its
giving Permission denied error as i am trying to access a function,
which  changes an iframe's height, in the parent  window ...

  So Is there any way to change its height from the iframe
itself???????

 Plz help me out in this case ..........

Thanx in advance..................

Hi ,
 I am using a cross domain iframe in my page..
If i want to change the iframe height a/c to its content height , its
giving Permission denied error as i am trying to access a function,
which  changes an iframe's height, in the parent  window ...

  So Is there any way to change its height from the iframe
itself???????

 Plz help me out in this case ..........

Thanx in advance..................

-----------------------------------------------Reply-----------------------------------------------

JavaScript can not access information in other domains. You are not going to
get around this.

Eric

On 11/6/06, Prasad <prasad@gmail.com> wrote:

I have controlled the height of a cross-domain iFrame by using straight html
like this  

<iframe id="myframe" src="http://164.215.236.136" scrolling="no"
marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0"
style="overflow:visible; width:100%; height: 100%"></iframe>

I'm an antique, I know. :P

But with javaScript, cross-domain is a no-can-do, as Eric has explained.

Laura

  _____  

From: ajax-world@googlegroups.com [mailto:ajax-world@googlegroups.com] On
Behalf Of Eric Pascarello
Sent: Thursday, November 09, 2006 7:51 PM
To: ajax-world@googlegroups.com
Subject: [AJAX World] Re: changing Iframe's height from itself ..

JavaScript can not access information in other domains. You are not going to
get around this.

Eric

On 11/6/06, Prasad <prasad@gmail.com> wrote:

Hi ,
I am using a cross domain iframe in my page..
If i want to change the iframe height a/c to its content height , its
giving Permission denied error as i am trying to access a function,
which  changes an iframe's height, in the parent  window ...

So Is there any way to change its height from the iframe
itself???????

Plz help me out in this case ..........

Thanx in advance..................

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc