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
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
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
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()
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.
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
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
7 matches
Mail list logo