[jQuery] Re: shadowbox resize iframe after content loads

2008-09-08 Thread Gordon
That's what I feared, but I was hoping there was a way around it. On Sep 8, 2:18 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Hi Gordon, > > Someone else can correct me if I'm wrong (please), but as I understand   > it, if the content within the iframe comes from a different domain,   > you won

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-08 Thread Karl Swedberg
Hi Gordon, Someone else can correct me if I'm wrong (please), but as I understand it, if the content within the iframe comes from a different domain, you won't be able to manipulate it via JavaScript. This is a cross- site security "feature" of JavaScript / browsers. --Karl K

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-08 Thread Gordon
That's basically what I've been experimenting with in the FireBug console, it results in a permission denied error being logged to the console. On Sep 5, 1:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > I have just googled around for some time and found this in the jquery > docs:ht

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-05 Thread [EMAIL PROTECTED]
Hi, I have just googled around for some time and found this in the jquery docs: http://docs.jquery.com/Traversing/contents -> click example so var w = $ ("#shadowbox_content").contents().find("#getsizefromthis").width() var h = $ ("#shadowbox_content").contents().find("#getsizefromthis").height()

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-05 Thread Gordon
Thanks for the help, this is a good start as it lets me hook into shadowbox load, but I'm still stuck with the other side of the problem. What I need to do is grab the width and height of an element contained within the iFrame and resize the elements that contain the iFrame based on those sizes.

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-05 Thread [EMAIL PROTECTED]
Maybe you can use the onFinish callback: http://mjijackson.com/shadowbox/doc/api.html $(window).load(function(){ var options = { onFinish:function() { // do what you want here // resize the shadowbox etc... } }; Shadowbox.init(options); }); On 5 Se

[jQuery] Re: shadowbox resize iframe after content loads

2008-09-05 Thread Gordon
Can nobody help out with this? On Sep 3, 12:06 pm, Gordon <[EMAIL PROTECTED]> wrote: > On our website I am using a shadowbox to view videos hosted on another > site in the product page window. The problem is that recently the > company hosting the videos have started providing several different