When i close FancyBox, it reloads the current page?

420 views
Skip to first unread message

JeremyMoritz

unread,
Jun 8, 2012, 6:21:24 PM6/8/12
to fancybox
When i click on a fancybox link, i get the popup as expected, but when
i click away or click on the "x", the current page reloads instead of
staying as-is. How do I stop this behavior?

Mathias Fredriksson

unread,
Jun 8, 2012, 6:36:10 PM6/8/12
to fanc...@googlegroups.com
my site does not reload when I use what I link before. Do you have a series of fancyboxes or what?

2012/6/9 JeremyMoritz <jmo...@gmail.com>
When i click on a fancybox link, i get the popup as expected, but when
i click away or click on the "x", the current page reloads instead of
staying as-is.  How do I stop this behavior?

--
You received this message because you are subscribed to the Google Groups "fancybox" group.
To post to this group, send email to fanc...@googlegroups.com.
To unsubscribe from this group, send email to fancybox+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fancybox?hl=en.




--
Med Vänlig Hälsning / Best regards
Mathias

Vallavägen 14 lgh 1201
641 47 Katrineholm
Sweden


JeremyMoritz

unread,
Jun 8, 2012, 6:55:53 PM6/8/12
to fancybox
I have about 50 items on the page that have a class='fancybox' applied
to them. But there are no fancyboxes within the fancybox pages that
are opened.

Here is the site (currently still in the testing phase):
http://erecipecards.com/index_new.php

Does this help? Please tell me what i'm doing wrong.

Thanks!

On Jun 8, 5:36 pm, Mathias Fredriksson
<mathiasfredriksso...@gmail.com> wrote:
> my site does not reload when I use what I link before. Do you have a series
> of fancyboxes or what?
>
> 2012/6/9 JeremyMoritz <jmor...@gmail.com>

Mathias Fredriksson

unread,
Jun 8, 2012, 7:16:50 PM6/8/12
to fanc...@googlegroups.com
test add this for your script:

'onClosed'  function() { parent.location.reload(false);}




2012/6/9 JeremyMoritz <jmo...@gmail.com>

JeremyMoritz

unread,
Jun 10, 2012, 9:05:52 PM6/10/12
to fancybox
This didn't work. Does anyone know what i need to do to make sure
this page doesn't reload?

On Jun 8, 6:16 pm, Mathias Fredriksson
<mathiasfredriksso...@gmail.com> wrote:
> test add this for your script:
>
> 'onClosed' :  function() { parent.location.reload(false);}
>
> 2012/6/9 JeremyMoritz <jmor...@gmail.com>

RavanH

unread,
Jun 12, 2012, 5:31:08 AM6/12/12
to fanc...@googlegroups.com
I don't see this reloading behavior on your site using Firefox, Chrome or Opera... maybe it's a browser issue?


Op maandag 11 juni 2012 03:05:52 UTC+2 schreef JeremyMoritz het volgende:

JFK

unread,
Jun 12, 2012, 5:37:54 PM6/12/12
to fancybox
I can see the issue but definitively it is not related to fancybox.
you may have another script that monitors page state changes or clicks
so it might reload it.

Normally advertising scripts monitor user clicks to analyze browsing
behavior so they can launch the proper ads pop ups/campaigns. It may
be the case with the rubiconproject that you are using on your
site?!?!

Just looking at your <html> tag makes me think I might be right

<html class=" js flexbox canvas canvastext no-webgl no-touch
geolocation postmessage no-websqldatabase indexeddb hashchange history
draganddrop websockets rgba hsla multiplebgs backgroundsize
borderimage borderradius boxshadow textshadow opacity cssanimations
csscolumns cssgradients no-cssreflections csstransforms no-
csstransforms3d csstransitions fontface video audio localstorage
sessionstorage webworkers applicationcache svg inlinesvg smil
svgclippaths">
Reply all
Reply to author
Forward
0 new messages