Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Calling Fancybox from a page inside an iframe
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Armando Basile  
View profile  
 More options Mar 5 2010, 12:13 pm
From: Armando Basile <hmandevt...@gmail.com>
Date: Fri, 5 Mar 2010 09:13:20 -0800 (PST)
Local: Fri, Mar 5 2010 12:13 pm
Subject: Calling Fancybox from a page inside an iframe
Hi all,
i trying to use fancybox but my page is loaded inside an iframe, so
when i open fancybox, it show under bottom of scree ( i need to scroll
down to see it). Iframe have scrolling="no" and height="1600".

Could you help me ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JFK  
View profile  
 More options Mar 9 2010, 11:56 pm
From: JFK <jfk.d...@gmail.com>
Date: Tue, 9 Mar 2010 20:56:16 -0800 (PST)
Local: Tues, Mar 9 2010 11:56 pm
Subject: Re: Calling Fancybox from a page inside an iframe
http://fancybox.net/faq
see No. 3

On Mar 5, 9:13 am, Armando Basile <hmandevt...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ikalatch  
View profile  
 More options Mar 25 2010, 11:39 am
From: ikalatch <ikalatc...@neosaej.com>
Date: Thu, 25 Mar 2010 08:39:22 -0700 (PDT)
Local: Thurs, Mar 25 2010 11:39 am
Subject: Re: Calling Fancybox from a page inside an iframe
I have the same problem: a page includes an iframe that is pretty long
and scrollable and inside that iframe I open a fancybox (which also
includes yet another iframe, but this is irrelevant here).
Fancybox calculates the center of the iframe inside which it has to
display itself and positions quite low on the screen because the
iframe is long.
I'd like it to be positioned in the center of the browser viewport
instead.
What I found to (somewhat) work is to use this callback when defining
the attributes of fancybox (using version 1.3.1):
                    'onComplete': function() {
                            $("#fancybox-wrap").css({
                            'top':'10px',
                            'left':'10px'
                    })}
It works - moves the fancybox where I want it inside the iframe, but
one problem is that it first shows it in the original position and
then repositions it which is mildly annoying.
I haven't found a good way to show it in the position I want it when
it first gets drawn. Replacing 'onComplete' with 'onStart' doesn't do
anything.
I guess one way would be to have somehow make it invisible on onStart
and then make it visible on onComplete when it has been repositioned.

Any suggestions would be appreciated!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JFK  
View profile  
 More options Mar 25 2010, 8:07 pm
From: JFK <jfk.d...@gmail.com>
Date: Thu, 25 Mar 2010 17:07:29 -0700 (PDT)
Local: Thurs, Mar 25 2010 8:07 pm
Subject: Re: Calling Fancybox from a page inside an iframe
same
http://fancybox.net/faq
see No. 3

On Mar 25, 8:39 am, ikalatch <ikalatc...@neosaej.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ikalatch  
View profile  
 More options Mar 30 2010, 1:40 pm
From: ikalatch <ikalatc...@neosaej.com>
Date: Tue, 30 Mar 2010 10:40:29 -0700 (PDT)
Local: Tues, Mar 30 2010 1:40 pm
Subject: Re: Calling Fancybox from a page inside an iframe
I understand that it can not be displayed outside of the iframe - this
is obvious, but at least we should be able to easily position it
explicitly where we want it (towards the top in my case).
To turn the question around - forget about the iframe: Basically it
would be great if we had another two public attributes (X & Y
positions) that allow us to explicitly position the box when it's
first drawn - right now it gets always drawn in the center and while
it may work for most cases, it's not desirable in others (as we see in
the case of iframes). And, of course, a third option one similar to
centerOnScroll which keeps the box in this position on scrolling.
Actually, centerOnScroll can be renamed to something like
keepPositionOnScroll and it can easily accommodate both cases - when
it's centered and when it's explicitly positioned. So, for example, if
we have: XPos=10px, YPos=10px, keepPositionOnScroll=true, the box
would stay in that position (10px from the top and left) when the
vertical or the horizontal scrollbars of the viewport are moved.

On Mar 25, 8:07 pm, JFK <jfk.d...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JFK  
View profile  
 More options Mar 30 2010, 5:26 pm
From: JFK <jfk.d...@gmail.com>
Date: Tue, 30 Mar 2010 14:26:00 -0700 (PDT)
Subject: Re: Calling Fancybox from a page inside an iframe

>I understand that it can not be displayed
>outside of the iframe -
>this is obvious,

Not that obvious.
http://fancybox.net/faq  No. 3 also says : "....... You can modify
FancyBox source to suit your needs"
And a fellow fancybox fan did try modifying it to his needs ... see
below copy of the email (that I haven't tried it yet but it makes
sense to me)

>forget about the iframe: Basically it
>would be great if we had another
>two public attributes ...etc

let's the developer answer what he thinks of your suggestions

***copy of email **************
hi JFK it work, ive tried it using just a simple tweak, using the on
load
example $("a.sample").trigger("click");

here what ive done;

in my iframe page i called the parent window with the href e.g.
onClick="callMe('www.google.com')" or if pics "/images/pics.png"

and call this script in my parent page

<script type="text/javascript">
 function callMe(site){
 $(".sample").fancybox({
 'width' : '97%',
 'height' : '97%',
 'href' : ''+site+'' //force href to change its site from the
call function in the iframe page
  });
 readyFancy() call to trigger the decoy link page
 }
  function readyFancy(){
  $("a.sample").trigger("click");
  }
  </script>

in my parent html we right a decoy link (this one is from the example
on load fancybox)

<body>
<a href="#" class="sample"></a>
</body>

******

On Mar 30, 10:40 am, ikalatch <ikalatc...@neosaej.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ikalatch  
View profile  
 More options Mar 31 2010, 9:48 am
From: ikalatch <ikalatc...@neosaej.com>
Date: Wed, 31 Mar 2010 06:48:46 -0700 (PDT)
Local: Wed, Mar 31 2010 9:48 am
Subject: Re: Calling Fancybox from a page inside an iframe
Yep, this makes sense - the iframe calling a script on the parent page
which in turn renders the box in the parent's document.

On Mar 30, 5:26 pm, JFK <jfk.d...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drex  
View profile  
 More options May 27 2010, 2:08 am
From: drex <ands...@gmail.com>
Date: Wed, 26 May 2010 23:08:37 -0700 (PDT)
Local: Thurs, May 27 2010 2:08 am
Subject: Re: Calling Fancybox from a page inside an iframe

100% it works, i was the one who emailed JFK iv already tried it in my
live projects.

On Mar 31, 9:48 pm, ikalatch <ikalatc...@neosaej.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karmageddon  
View profile  
 More options Jun 6 2010, 3:50 am
From: Karmageddon <bloodyka...@gmx.at>
Date: Sun, 6 Jun 2010 00:50:09 -0700 (PDT)
Local: Sun, Jun 6 2010 3:50 am
Subject: Re: Calling Fancybox from a page inside an iframe
THX to JFK!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
IGrahamL  
View profile  
 More options Dec 28 2010, 8:00 am
From: IGrahamL <grahamlov...@gmail.com>
Date: Tue, 28 Dec 2010 05:00:42 -0800 (PST)
Local: Tues, Dec 28 2010 8:00 am
Subject: Re: Calling Fancybox from a page inside an iframe

Does anyone have a working example of this - to avoid me randomly
experimenting for hours on end  

Was just about to reluctantly give up on fancybox as everything was going
great until i realised the limitation of opening fancybox from within a
iframe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JFK  
View profile  
 More options Dec 29 2010, 12:55 am
From: JFK <jfk.d...@gmail.com>
Date: Tue, 28 Dec 2010 21:55:04 -0800 (PST)
Local: Wed, Dec 29 2010 12:55 am
Subject: Re: Calling Fancybox from a page inside an iframe
you may want to write drex (two comments above yours)

On Dec 28, 5:00 am, IGrahamL <grahamlov...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
drex  
View profile  
 More options Jan 13 2011, 8:54 pm
From: drex <ands...@gmail.com>
Date: Thu, 13 Jan 2011 17:54:46 -0800 (PST)
Local: Thurs, Jan 13 2011 8:54 pm
Subject: Re: Calling Fancybox from a page inside an iframe
you can download working example at this link
https://docs.google.com/leaf?id=0B1TI7BdxGAbvYzBiZjNiMDYtNjY4ZS00NDcz...

On Dec 29 2010, 1:55 pm, JFK <jfk.d...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
IGrahamL  
View profile  
 More options Jan 14 2011, 4:44 am
From: IGrahamL <grahamlov...@gmail.com>
Date: Fri, 14 Jan 2011 01:44:54 -0800 (PST)
Local: Fri, Jan 14 2011 4:44 am
Subject: Re: Calling Fancybox from a page inside an iframe

thanks for that, much appreciated
just as well your just a 'virtual m8' or I'd have to kiss you


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bcavan  
View profile  
 More options Feb 21 2011, 9:50 am
From: bcavan <brianpcavana...@gmail.com>
Date: Mon, 21 Feb 2011 06:50:33 -0800 (PST)
Local: Mon, Feb 21 2011 9:50 am
Subject: Re: Calling Fancybox from a page inside an iframe
Are image galleries (using the rel="group") possible with the provided
example?

On Jan 13, 8:54 pm, drex <ands...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »