facebox

How to simulate a close() in facebox

Hi, I am using facebox popup in one of my pages. I am having a button in the popup dialog. When I click that button the facebox popup should close (the same way it closes when we press outside the popup). How to do that? Also, I am doing some Ajax stuff when that button is being pressed so I cannot override the onClick event. ...

jQuery-Facebox - Popup is not working after repaint from AJAX

Hi I am having a set of Links in my page and I have attached the facebox jQuery functionality so that whenever a link is pressed, it will get a nice popup <a href="coach_selector_popup?day=<%= day %>&hour=<%= hour %>" rel="facebox"> Below is the script that I use for 'facebox'ing. <script type="text/javascript"> jQuery(document).r...

How to call a javascript post render in Rails ?

This is the facebox popup content <div class="form_container"> <% form_remote_tag :url => { :action => 'custom', :d=>params[:day], :h=>params[:hour] }, :class => 'general-form', :update => 'grid['+params[:day]+']['+params[:hour]+']', :success => 'handle_success('+params[:day]+','+params[:hour]+')' do -%> <...

Making Facebox wait until FLV player has loaded.

Not entirely sure how to do this, but I noticed that Facebox works perfectly, but when I use it to load a movie, the FLV Player, JWplayer isn't fully loaded yet, and errors out. So I want to load JWplayer ( the FLV player ), before Facebox. Facebox gives this as their embed code. And they explain that you can pass an argument in it as w...

Rails: Facebox link if condition is satisfied

I want to display a facebox link when I click on a element when a particular condition is satisfied. I do not want the user to click if the condition is not satisfied. I am doing something like this to achieve it which is pretty ugly <% if x == 5 %> <a id="something" href="http://www.some_weird_link.com" rel="facebox"> <% end %> <...

Conditionally set the content inside the facebox modal

Hi, I am working on a form where I need to conditionally set the content inside the facebox modal. I have created a sample code below where on click of each link I need to open a facebox modal(which is getting opened). Now in this modal I am having a textbox. I want the textbox to be filled automatically with the value equals to the tex...

facebox close button on top right corner

Hi All, Hi I'm using facebox plugin to display iframe link. I want to change the style of my close button. I want to show it on Top can any one please help with CSS part. I want to make facebox draggable is it possible to do soo.. Thanks ...

Form submitted twice in Chrome/Safari

Dear Stackoverflow, I am seeking to perform a basic form post, but the following submits to the server twice in Chrome and Safari (but behaves as expected in Firefox): <form id="create-deck-form" action="/decks/create" method="post"> <fieldset> <legend>Create new deck</legend> <label for="deck-name-field">Name</label> <in...

Load facebox on body load

Hi, iam using facebox 1.1 and i want the facebox to load when the body loads, instead of clicking on the anchor tag with rel=facebox. Can anyone tell me how to achieve it ? ...

Facebox and rails not working!

Am trying to use Facebox with rails, it's not working at all. I have added all files to there right places: Install FaceboxRender gem install FaceboxRender Download jQuery Download facebox at http://famspam.com/facebox Copy facebox js file to /public/javascripts/ Copy facebox css file to /public/styleshees/ Copy facebox all image file...

hide jquery facebox modal manually...

I used my custom close button on my facebox modal to close it... It works fine (ie) it closes but it appends to the bottom of the page after i click the close button... <a onclick="$.facebox.close();" href="javascript:void(0);" class="close"> <img alt="Close the popup" src="images/close.png" title="close" class="close_image" />...

Using jquery spin plugin with Facebox

What I am trying to do is create a input box, where users can select a number, utilizing the spin plugin to help along with the process. Outside of a Facebox modal the code works great, inside it does not. Anything appear to be out of the ordinary here? <script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></scrip...

facebox problem loses on ajax

Hello, I have a website that uses ajax jquery and facebox. ( http://tinyurl.com/23eh4xc ) Inside the div "#content" there are some links to other pages that open fine using facebox. If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore. I tried to create a function that I would ...

Ajax and facebox problem

Hello, I have a website that uses ajax jquery and facebox. Demo here : http://temp.nevergone.eu/facebox.php Inside the div "#content" there are some links to other pages that open fine using facebox. If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore. I tried to create a funct...

Finding Image height/length with facebox to resize

Trying to resize image that is going to show with facebox, with the afterReveal.facebox function.. but cant seem to get hold of the image :/ $(document).bind('afterReveal.facebox', function() { var faceboxImg = $('a[href*=facebox]'); alert(faceboxImg.length); }); $(document).ready(function() { $('a[rel*=facebox]').facebox()...

how to disable facebox (jquery)

I use facebox plugin on certain links. I want to disable some of the links dynamically. so clicking them will not open facebox. I tried several ways to do it but none of them seem to work. Facebox still works when clicking on the links. I even tried this (prevent the click and mouse down events) but it still doesn't disable the face...

How to load another div while facebox pop up is still open?

Hi. I just figured out how to use Facebox. I can open hidden divs in Facebox but how do I get it to dump the current div and load another one without closing the pop-up? I want the Facebox pop-up to load another div (while dumping the previous one) if the user clicks on a link inside the pop-up. I already tried something like this: <scr...

Launch jquery facebox from a javascript function?

I use this inside a function, document.getElementById("DeleteConfirmationdiv").style.display = 'block'; now I want to launch this DeleteConfirmationdiv using the jQuery Facebox plugin. Is it possible? Thus far I've been using facebox like this, $(document).ready(function($) { $.facebox.settings.opacity = 0.2; $('a[rel*=faceb...

retain html div elements after updatepanel update in asp.net....

I use jquery facebox as delete confirmation box. When i do a delete it removes my record and i show the resultsdiv via javascript. But it always shows Error: document.getElementById("ImageButtonDiv") is null here is my code, protected void Delete_Click(object sender, EventArgs e) { // my delete ScriptManager.RegisterClientScri...

how to center a facebox ajax request properly?

My wordpress template uses facebox to display portfolio images via ajax requests. The problem is the images load in different positions depending on the viewers screen size. My template uses $('#facebox').css({ top: getPageScroll()[1] + (getPageHeight() / 10), left: 385.5 }).show() The facebox site uses $('#facebox')...