fancybox

Trigger fancybox with hover instead of click?

I'm trying to get fancybox to trigger when the mouse is hovered over a link. Have had no luck though... any suggestions? $(document).ready(function() { /* This is basic - uses default settings */ $("a.inline").fancybox({ 'hideOnContentClick': false }); }); ...

Hide the close "X" button in Fancybox

I am using this http://fancybox.net/ Is there a way to add a property to not show the close "X" button on top right? I mean I can use 'callbackOnShow' to hide it in a hide() but that is not fast enough. I want it NOT rendered out instead of rendered then hide. ...

Open another FancyBox from callbackOnShow

I am using this http://fancybox.net/ I have 2 DIVs: 1st open and 2nd hidden In the first FancyBox, I want to run several things in callbackOnShow and then once done, it closes and opens the second hidden Fancybox. However I used $('a#div-2').trigger('click'); and it is not working. It seems that the FancyBox trigger won't allow within ...

jQuery undefined error using FancyBox

I am using this http://fancybox.net/ When I do $('a.#div1').trigger('click') to popup a fancybox, it gives me this error (using Firebug) opts.itemArray[opts.itemCurrent] is undefined if (opts.itemArray[opts.itemCurren...[opts.itemCurrent].title.length > 0) {\r\n jquery.f...-1.2.1.js (line 345) Why is that? Can you help? Thanks. ...

Having problems with Fancybox (P

I'm trying to add Fancybox to my ASP.NET MVC application but I'm having some troubles. As you can see, I added references to jQuery and Fancybox. The css is incapsulated inside of my style.css. And all the pictures are in the right place. <link rel="stylesheet" href="/Content/style.css" type="text/css" media="screen" /> <script type="...

3 jQuery Applications Together - Problem With IE6

I've combined 3 jQuery applications - sortable tabs from jQueryUI, slideshow from Six Revisions, and John Nunemaker's FancyZoom. It can be seen here. The combined application works well in FF, Chrome, and Safari, but in IE6 the slideshow does not work properly. The slides overlap the left control button making it non-functional. Help p...

js fancybox and safari issue: cannot quit the modal dialog in safari!

functions fine in every other browser but safari. selector is for a.class, in my case: $("a.nav") When I do <a class="nav" href=page.html><img src=icon.png/></a>, it becomes not possible to close out of the modal dialog by clicking outside of the dialog or clicking the x icon. what is my problem? thanks in advance ...

close fancy box from function from within open 'fancybox'

Hi all i want to be able to close fancyBox when it is open from within. I have tried the following but to no avail: function closeFancyBox(html){ var re = /.*Element insert complete!.*/gi; if( html.search( re ) == 0 ){ $.fancybox.close(); //alert("foo"); } } foo will open in dialog but will not close down. any hints? ...

Fancybox - Scrolling / page position

I am trying to automatically scroll to a anchor when opening a fancybox iframe like so: www.example.com/posts#header. It kinda works but it scrolls to the wrong position, either too far up or way too far down (mostly way too far down). I tried using the jQuery ScrollTo plugin but it also scrolls to the wrong position and additionally "...

Fancybox not displaying correctly

Hi, I have a page, with a form, and I'd like to display a fancybox when a link is clicked on this page. I have another working page with a fancybox on, which is fine, but on this page, the fancybox iframe seems to display using the incorrect height/width, and below the form on the page. Although this is an ASP.Net site, I am using ht...

fancybox ajax post to iframe

Hi all, is it possible using fancybox to post a var to the iframe when opens? I currently have: function fancyBoxLoad(element) { var elementToEdit = $("#" + $(element).attr("class")); var content = encodeURIComponent($(elementToEdit).outerHTML()); $.fancybox( { 'href': 'loadEditor.php' }, { frame...

Click in ModalPopup IFrame changes URL in Parent Window

Hi all, I'm using Visual Studio 2008 and ASP.NET MVC 1. I have a View where i open another View in a modal popup using fancybox. In this popup users can edit some data. It works great and the data is presented by the modalpopup, but when i click on the save button, the parent window changes to the modal popup content. <script type="te...

Using Fancybox (jquery plugin) in ASP.net

I'm trying to get a line of code in my ASP.net application (using Visual Studio) to appear in a Jquery "Fancybox" window. I know how to do this with a regular href link. However, I'm confused on how to set this up using a dynamically generated one. Here's my line of code that I would like to call Jquery: <asp:HyperLink ID="hypPrint" ...

Hide iFrames Using the Controller

Hi, I have tried finding the answer to this and come across several things which have not yielded the desired result. So I wrote a HTML Helper that loads in an (fancybox) iFrame: <%= Html.ActionFrame("Projects", "Edit") %> The resulting page has a save button which currently saves the data and redirects to the Index page within the iFr...

jquery fancybox triggered click only working once

I am calling a jquery.fancybox link from the click event bound to a table row. The action works fine the first time, however, if I close the fancybox and click again on any row the anonymous function bound to the row still fires, but fancybox doesn't start up. Here's the javascript I'm using: $jq(document).ready(function() { $jq('a...

Jquery not intercepting a form submition - Asp.net Mvc & Fancybox

Hello guys, I'm developing an application that uses Jquery to intercept my form submissions to make instead an Ajax Submission. So far so good! Everything works great.. If the client doesn't have JS enabled, the app keeps working flawless. Well, today I created a new form but JQuery doesn't intercept the submission. It's true that I ch...

Fancybox not showing streamed image correctly

I've got an aspx page that streams jpeg's. It sets the content type and then writes to the response stream. If I view the images directly they work a treat, but if I use fancybox 1.2.6 I get the following. Using fancybox 1.2.1 the images do show. Here is the code that is pushing out the image. using (HttpWebResponse response = (HttpW...

jQuery not working in IE 7 and Chrome

Okay, I have enough code that I probably shouldn't post the code directly, but I'm not sure where the problem lies within it. The page in question is at letterlyyours.com/design.php. How it's supposed to work is that you type in a word, press "Submit", and then little photos of each letter appear below--that you can scroll up and down....

Overlap content in a fancybox?

I have a fancybox modal window that loads a page of content (a form). On each input of the form there is a click event that shows a help tip to the right of the input. My question is this - how can I make an element 'breakout' from the fancybox and overlap the edge, so that it's the highest element in the z-index? I'd like the helptip...

how to get out of the fancybox iframe ?

i have to do some form submission and then get out of the fancybox which holds an iframe.. how to do that ? i tried using $.fn.fancybox.close(); but it cause some error.. thanks in adance... ...