fancybox

double inclusion of same jQuery plungin conflict issue

I created a wordpress plugin (say P1 ) in which I used fancybox (a jquery plugin). I included its js using wordpress's wp_enqueue_script() function. But, on my client wordpress blog, he is using some other wordpress plugin, one of them (say P2) also use fancybox. When both these P1 and P2 are active, fancybox js loads 2 time one from P...

Fancybox event is not fired

i have my login in a fancybox and fancybox div is in a controller. problem is if click the button nothing happens event isnt fired. this is my controller.ascx <div id="inline1" style="width:400px;"> <ul class="forms"> <li class="inputfield"><asp:TextBox ID="kullanıcı_adi" runat="server"></asp:TextBox></li> </ul> <ul> <li><asp:T...

Trying to reload a div with dynamic content from main page when closing a fancybox

Hello, I'm trying to reload a div on a main page when I edit the dynamic content in a fancybox. The main page is made of an included php files. I thought I would be able to reload it. I used the .load() function on the 'onClosed' element in the fancy box: $(".add_form").fancybox({ 'type' : 'iframe', 'onClosed': function() { $('.param_...

jQuery: attach .fancybox() to a new element passed by .load() function

When I get new elements from load() function can't find the way to attach the function .fancybox (a lightbox plugin) to elements. I've tried with .live() and .delegate(), but think .fancybox() could not be considered as custom event. I probably miss something... :( ...

Change fancybox body id on load

Hello! I have a background image in my site, but when I open a fancybox, that background image would appear in fancybox's body, too. Is there a way to get the body element inside the iframe so that I can apply an id to it? I tried this: $("#appointment-form").fancybox({ 'width' : 500, 'height' : 300, 't...

FancyBox with Google Maps Inline Div breaks

<div style="display: none;"> <div id="location<?php echo $r->id ?>"> <?php echo $r->address; ?>, <?php echo $r->city; ?>, <?php echo $r->province; ?> <h3 class="sub">Map of Location</h3> <?php $CI->conjunction->showMap($r->id, $r->lat, $r->lon, $r->postal, 'map_canvas'...

Jquery Fancybox Error

I've been updating a site and have used the fancybox plug in to display dynamic information data. Works great in every browser apart from IE, where i get 'object doesnt support this property or method' errors. I cant figure out why, it's driving me nuts. has anyone else expereinced this with IE? Any hints/tips? I'm using this funct...

Submitting form with Jquery Fancybox and then appending value into parents text field

Hello everyone, I have a jQuery auto-complete field that selects clients email adddress's. Next to that is a button that allows the user to create a new client. To avoid the clients being taken away from their already half filled form I am opening the form within a lightbox. Enter jQuery Fancybox. The new client add form is located wi...

embedding a website inside a modal box on a different domain

I need to embed an iframe on different domain, that when click opens a modal box using fancy box. It would work something like this. user clicks image Once click loads a modal box(fancybox) that holds the iframe I need to do this because the fancybox needs to take up the majority of the screen 960x700 How would I do this? ...

Zend Framework fancybox confirmation dialog with ajax and posted values

I created a confirmation page for deleting an item. This works perfectly. Now I want to appear the confirmation page in fancybox, still passing all the variables and delete the data or close the dialog. It's important that the process still works as it does now (delete->confirmationpage->redirect/deletion) so that users with javascript...

Fancybox options not having any effect.

I'm using fancybox 1.2.1 to open an iframe. My problem is my width, height and scrolling options don't actually do anything. Am I missing something? It just opens up at the default size. Heres the call: $(document).ready(function(){ $('a[rel=gallery]').fancybox({ 'width':920, 'height':700, 'scrolling':'no' }); }); And h...

jQuery Validate - Onsubmit dont leave the page and erase the inputdata in the fields.

Hi guys! I got a form that I submit and then Id like to have the data I just submitted show up in a iframe with the fancybox popup-plugin. The form is validated via jQuery validate plugin from Jörn, and when I click the submit button the form checks if everything validates as it should, and it sends me to the other page because of the ...

Fancybox jQuery ajax on success bind form Submit

Hi, is there a way to bind the "submit" to the fancybox after success? Here's what I have: <div class="ta_l" id="tell_friend"> <form id="form_tell_friend" method="post" action=""> <table cellspacing="0" cellpadding="0" border="0" class="tbl_insert mr_b0"> <tbody> <tr class="tell_frie...

How to get the trigger of a Fancybox?

I need to know which specific classes the anchor (which triggered the fancybox) has to do some more action wie the "onComplete"-function. How do I get the trigger as jQuery-Object? $(this) seams to refer to the fancybox itself with no link to the original trigger. Solution: $('a.fancybox').click(function(e){ e.preventDefault...

IIS Virtual directory causes JQuery errors in Fancybox

Fancybox works perfectly on my example.html, but when I make a virtual directory in IIS with the default page as example.html, I get jquery syntax errors returned in line 1 of all js files. 'little help anyone? Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; ...

using fancybox with authlogic

how do I use fancybox with authlogic? I want to use fancybox for doing a login... loading the login form generated by authlogic I found this http://net.tutsplus.com/tutorials/ruby/how-to-build-an-unobtrusive-login-system-in-rails/ but fancybox works differently. Any help? ...

want to delay closing of fancybox window

I want to automatically close a fancybox iframe, but I want to give it a delay. $(document).ready(function() { parent.$.fancybox.close(); }); The code above will automatically close the window successfully, but I want to add a delay, so they may read the message the page displays before it auto closes for them. ...

fancybox seems to not working with ajax content

Hi I've got the following code: $(document).ready(function(){ $("a#cakeImages").live("click",function() fancybox({ 'titleShow' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' })) }); and I've got the correct images : <a id="cakeImages" href="cakes/2/1.jpg" > <img alt="cakeImages"...

jQuery - Fancybox with iframe

Hi guys, I'm using Fancybox with iframes to load PDF files from database in it. The main idea is that on normal page I have table with content and every row contains field "show invoice", example: No | Title | PDF file | Action 1. | invoice 1 | show inovice| edit 2. | invoice 2 | show inovice| edit | ...

Iframe makes 2 calls to Action instead of 1?

Hello, I have a website project in ASP.NET MVC2 and use a Fancybox which loads a contactform in an IFrame. It all works fine. But... When I debug my project in VS2010, the Action in my Controller got hit 2 times while I expected it to be hit only once. The Action gets hit by this Javascript code: $('<iframe id="fancybox-frame" name="f...