facebox

jQuery's .val() not working in Facebox

丶灬走出姿态 提交于 2019-12-12 14:10:34
问题 I'm using Facebox (http://defunkt.github.com/facebox/) on one of my websites. Also i'm using jQuery extensively on the site. My problem is that the .val() function doesn't seem to work inside facebox. Now, this is the DIV that shows up as facebox : <div id="edit-tags" style="display: none;"> <script type="text/javascript"> $('.add-tag-form').submit(function(){ alert($('input.tags-input').val()); return false; }); </script> <form class="add-tag-form"> <input type="text" name="tags-input" class

Jquery Facebox plugin doesn't work

南笙酒味 提交于 2019-12-12 05:36:53
问题 I downloaded facebox from famspam.com/facebox. Then I added facebox.js to be in public/javascripts folder, and facebox.css in public/stylesheets Then I included this files in my application.html.erb AFTER original Jquery library ver 1.4 The last, I set a rel attribute to my a href tags to try to use Facebox, but it doesn't appear. When clicking on the link with rel="facebox" , I just see a picture in my current browser tab. Please, help me with facebox. 回答1: Did you call facebox() onLoad?

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

自作多情 提交于 2019-12-08 00:12:17
问题 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).ready(function($) { jQuery('a[rel*=facebox]').facebox() }) </script> The above is working fine. But when I render it again on response to some AJAX call, the

Loading an FLV in Facebox with jQuery for IE7 and IE8

↘锁芯ラ 提交于 2019-12-04 06:17:42
问题 It goes almost without saying, this works perfectly in Chrome, Firefox, and Safari. IE (any version) being the problem. Objective: I am trying to load JWplayer which loads an FLV from S3 in a Facebox popup. jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }) HTML (haml): %li#videoGirl = link_to 'What is HQchannel?', '#player', :rel => 'facebox' .grid_8.omega.alpha#player{:style => 'display: none;'} :javascript var so = new SWFObject('/flash/playerTrans.swf','mpl','640px',

Loading an FLV in Facebox with jQuery for IE7 and IE8

[亡魂溺海] 提交于 2019-12-02 11:18:24
It goes almost without saying, this works perfectly in Chrome, Firefox, and Safari. IE (any version) being the problem. Objective: I am trying to load JWplayer which loads an FLV from S3 in a Facebox popup. jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }) HTML (haml): %li#videoGirl = link_to 'What is HQchannel?', '#player', :rel => 'facebox' .grid_8.omega.alpha#player{:style => 'display: none;'} :javascript var so = new SWFObject('/flash/playerTrans.swf','mpl','640px','360px','0'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so

JQuery Facebox Plugin : Get it inside the form tag

做~自己de王妃 提交于 2019-11-29 08:06:15
I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server. Has anyone dealt with this that can give me some pointers? Kevin Sheffield poking around the facebox.js I came across this line in the function init(settings)... $('body').append($.facebox.settings.faceboxHtml) I changed that to ... $('#aspnetForm').append($.facebox.settings.faceboxHtml) and it loads up in the form tag, not

JQuery Facebox Plugin : Get it inside the form tag

最后都变了- 提交于 2019-11-28 01:40:48
问题 I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server. Has anyone dealt with this that can give me some pointers? 回答1: poking around the facebox.js I came across this line in the function init(settings)... $('body').append($.facebox.settings.faceboxHtml) I changed that to ... $('

Warning: A call to document.write() from an asynchronously-loaded external script was ignored. How is this fixed?

久未见 提交于 2019-11-28 00:22:59
In my Ruby on Rails application I am using the Facebox plugin for an Ajax pop up window. I have 2 pages called add_retail_stores/new.html.erb and add_retail_stores/new.js . The new.js page inherits all elements from the new.html.erb page so it looks exactly alike. I have a Google map script on the HTML page that works as it should. But the new.js page that pops up on my different page called add_store_prices.html.erb page( <%= link_to add_retail_store_path, :remote => true %> ) I get the error: Warning: A call to document.write() from an asynchronously-loaded external script was ignored.

Warning: A call to document.write() from an asynchronously-loaded external script was ignored. How is this fixed?

喜欢而已 提交于 2019-11-27 04:43:30
问题 In my Ruby on Rails application I am using the Facebox plugin for an Ajax pop up window. I have 2 pages called add_retail_stores/new.html.erb and add_retail_stores/new.js . The new.js page inherits all elements from the new.html.erb page so it looks exactly alike. I have a Google map script on the HTML page that works as it should. But the new.js page that pops up on my different page called add_store_prices.html.erb page( <%= link_to add_retail_store_path, :remote => true %> ) I get the