[jQuery] Re: How to suck web content from an iframe to a div

2007-10-19 Thread Mike Alsup

Julian,

Getting the contents from an IFrame served from the same domain works
fine.  The security only kicks in for x-domain content.

Mike

On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:


 Thanks Mike,
 That makes sense.
 And what if it was the same domain? This is also the case with our new site.
 I should have been more specific. I apologize.



 malsup wrote:
 
 
  Julian,
 
  You cannot access the contents of an IFrame which is sourced from a
  different domain.  This is part of the browser's cross-domain security
  model.
 
  Mike
 
 
  On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:
 
 
  Hoping anyone can help.
  I use a custom scroll bar jquery plug-in which requires the content to be
  within a DIV.
 
  Some of the content I want to load is from other web sites.
 
  I am pretty sure it is possible to load the content into a hidden iframe
  and
  then, once it has finished loading, suck the data in the iframe into my
  div
  and then apply my scrollbar plugin to the newly fitted div.
 
 
  What's the proper method and plug-ins used to achieve this please?
 
  What are some of the pitfalls in doing this, if any?
  --
  View this message in context:
  http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223056
  Sent from the jQuery General Discussion mailing list archive at
  Nabble.com.
 
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223518
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: How to suck web content from an iframe to a div

2007-10-19 Thread Erik Beeson
IIRC, sub-domains can also be made to work if all pages involved set the
same document.domain

But back to the OP, your iframe can deal with scrolling itself if you set
its size in the containing page, and that you can do cross-domain. Maybe I
don't quite get what you're trying to do...

--Erik


On 10/19/07, Mike Alsup [EMAIL PROTECTED] wrote:


 Julian,

 Getting the contents from an IFrame served from the same domain works
 fine.  The security only kicks in for x-domain content.

 Mike

 On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:
 
 
  Thanks Mike,
  That makes sense.
  And what if it was the same domain? This is also the case with our new
 site.
  I should have been more specific. I apologize.
 
 
 
  malsup wrote:
  
  
   Julian,
  
   You cannot access the contents of an IFrame which is sourced from a
   different domain.  This is part of the browser's cross-domain security
   model.
  
   Mike
  
  
   On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:
  
  
   Hoping anyone can help.
   I use a custom scroll bar jquery plug-in which requires the content
 to be
   within a DIV.
  
   Some of the content I want to load is from other web sites.
  
   I am pretty sure it is possible to load the content into a hidden
 iframe
   and
   then, once it has finished loading, suck the data in the iframe into
 my
   div
   and then apply my scrollbar plugin to the newly fitted div.
  
  
   What's the proper method and plug-ins used to achieve this please?
  
   What are some of the pitfalls in doing this, if any?
   --
   View this message in context:
  
 http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223056
   Sent from the jQuery General Discussion mailing list archive at
   Nabble.com.
  
  
  
  
 
  --
  View this message in context:
 http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223518
  Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.
 
 



[jQuery] Re: How to suck web content from an iframe to a div

2007-10-15 Thread Mike Alsup

Julian,

You cannot access the contents of an IFrame which is sourced from a
different domain.  This is part of the browser's cross-domain security
model.

Mike


On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:


 Hoping anyone can help.
 I use a custom scroll bar jquery plug-in which requires the content to be
 within a DIV.

 Some of the content I want to load is from other web sites.

 I am pretty sure it is possible to load the content into a hidden iframe and
 then, once it has finished loading, suck the data in the iframe into my div
 and then apply my scrollbar plugin to the newly fitted div.


 What's the proper method and plug-ins used to achieve this please?

 What are some of the pitfalls in doing this, if any?
 --
 View this message in context: 
 http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223056
 Sent from the jQuery General Discussion mailing list archive at Nabble.com.




[jQuery] Re: How to suck web content from an iframe to a div

2007-10-15 Thread juliandormon


Thanks Mike,
That makes sense.
And what if it was the same domain? This is also the case with our new site.
I should have been more specific. I apologize.



malsup wrote:
 
 
 Julian,
 
 You cannot access the contents of an IFrame which is sourced from a
 different domain.  This is part of the browser's cross-domain security
 model.
 
 Mike
 
 
 On 10/15/07, juliandormon [EMAIL PROTECTED] wrote:


 Hoping anyone can help.
 I use a custom scroll bar jquery plug-in which requires the content to be
 within a DIV.

 Some of the content I want to load is from other web sites.

 I am pretty sure it is possible to load the content into a hidden iframe
 and
 then, once it has finished loading, suck the data in the iframe into my
 div
 and then apply my scrollbar plugin to the newly fitted div.


 What's the proper method and plug-ins used to achieve this please?

 What are some of the pitfalls in doing this, if any?
 --
 View this message in context:
 http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223056
 Sent from the jQuery General Discussion mailing list archive at
 Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-suck-web-content-from-an-iframe-to-a-div-tf4630767s27240.html#a13223518
Sent from the jQuery General Discussion mailing list archive at Nabble.com.