Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By zeezack on
I've got the fancybox module installed and I need to incorporate the elements to work inside it.
http://drupal.org/project/fancybox
The bulk of the site is to be viewed via the fancybox, but I am not sure if there is a jquery conflict going on, also when I try and call the gmap panel containing the google map, the page kind of refreshes and nothing happens?
Please any thoughts, suggestions would be welcome.
Comments
has anyone had problems with
has anyone had problems with fancybox like this?
Has anyone here, used
Has anyone here, used fancybox and tried to force the content into it, including jquery and google maps. Can anyone tell me what I should do to try and accomplish this.
Please can anyone help me
Please can anyone help me with this. Does anyone here want to help and earn some cash to resolve this problem?
Fancybox javascript memory leak?
If you put the whole drupal site into a fancybox box, then you'll have a box waiting for quite a while, probably because fancybox will parse html, removing all screwing tags... or probably it will load all the JS files again... so if you want simple text content - make a php file which just prints a node contents without any formatting/javascript.... something like this:
not exactly this, but the idea is reflected here....
I think the problem is that
I think the problem is that the javascript does not get loaded in the fancybox. Is there a way of getting it integrated on a startup callback?
You have to initiate it
You have to initiate it inside of a domfunction and add the overlayShow option
overlayShow will cause the fancybox to automatically open on pageload.
Check the API for more info
http://fancybox.net/api
What you are trying to do may be better suited with colorbox.
My problem is that jquery
My problem is that jquery won't work INSIDE the fancybox. I can not get the accordion view to work inside fancybox. I can not get googlemaps to work either.
My code inside page.tpl.php
My code inside page.tpl.php is as follows
- the fancybox works fine with the menu links with a class of jqueryfancy... this is the nahme of the selector I have assigned.
however it borks on trying to load google maps and the accordion menu view fails to become a jquery accordion when inside the fancy box...
what is going wrong?
This is the site in question.
This is the site in question. If you open up the menu, the fancybox will open. It fails on the last two links,... google map and view accordion.the only way to fix this is to create the google map as an iframe.