thickbox

jQuery UI Datepicker inside a Thickbox

孤街浪徒 提交于 2020-01-17 13:48:05
问题 I have the following markup and JS on a web page: http://jsfiddle.net/R2Jj2/ It seems to work well. When I open this content in a thickbox window the datepicker fails to load properly. Any idea how I can get the datepicker to work? 回答1: The datepicker isn't working correctly because it's probably calling stuff within the onLoad function. Try Colorbox.js, it has an onComplete specifically for handling this. http://colorpowered.com/colorbox/ JavaScript/jQuery is not working inside of ColorBox.

Close jQuery thickbox on button click

£可爱£侵袭症+ 提交于 2020-01-14 22:55:18
问题 Here is my jQuery: <script src="../js/jquery.min.js"></script> <script type="text/javascript" src="../js/thickbox.js"></script> <script type="text/javascript" $('#button').click(function(){ $('#TB_window').fadeOut(); }); </script> Html: <input type="submit" id="button" value="clse" > I tried this function, but it's not working. 回答1: Thickbox have their built in method. tb_remove just call this method tb_remove(); wherever you need. It will close thickbox properly. If you use $('#TB_window')

How would you trigger an event when a ThickBox closes?

扶醉桌前 提交于 2020-01-12 20:54:09
问题 This question is Semi-related to Wordpress, but has applications elsewhere. Basically, I'm trying to make it so when someone exits out of a Thickbox, it triggers an event elsewhere on the page. Editting the Thickbox file isn't an option. 回答1: It's a bit complicated since Thickbox isn't written that way. But maybe you can use some tricks to do it. It's not the recommended solution but you can "rewrite" the close function. Something like: var old_tb_remove = window.tb_remove; var tb_remove =

Stop a postback in javascript

隐身守侯 提交于 2019-12-30 07:09:07
问题 i have an ASP webform with a JQuery Thickbox, i have an image that opens the thickbox when user click. once open the thickbox it shows me a grid with several rows and a button to select one and after the user select the record it returns to the main page the recordselected and cause a __doPostBack() BUT! sometimes in IE6 it stay loading the postback and never ends i have to refresh the page and when it refresh it shows everything fine. but i dont want the postback stay loading AND it does not

If Thickbox is opened set body noscroll

安稳与你 提交于 2019-12-24 19:27:27
问题 My JS/jQuery knowledge is very basic so I'm asking for a bit of help here. I'm trying to achieve something like a Pinterest effect with Thickbox. What I'm assuming should happen is using JS or jQuery to monitor Thickbox actions (if #TB_window is present or not) and apply the following rules: If Thickbox is opened -> set body style to overflow: hidden Else Thickbox is closed -> set body style to overflow: auto I'm using the integrated into WordPress Thickbox with the function - add_thickbox();

How can I simulate an anchor click via jquery?

拈花ヽ惹草 提交于 2019-12-16 20:16:51
问题 I have a problem with faking an anchor click via jQuery: Why does my thickbox appear the first time I click on the input button, but not the second or third time? Here is my code: <input onclick="$('#thickboxId').click();" type="button" value="Click me" /> <a id="thickboxId" href="myScript.php" class="thickbox" title="">Link</a> It does always work when I click directly on the link, but not if I try to activate the thickbox via the input button. This is in FF. For Chrome it seems to work

jquery validation is forcing a double click on submit for form that submits to thickbox

狂风中的少年 提交于 2019-12-13 08:08:24
问题 I have to click the submit button twice on my form in order to submit it after adding jQuery validation. There are other posts regarding this but those solutions are not working for me as my form submits to a thickbox popup which requires a GET method and certain variables to be passed. I am using jquery.validate/1.8/jquery.validate.min.js and jquery/1.5.2/jquery.min.js. I am not including rules as it is just one field (quantity) that I am validating with class 'number' to verify there is a

Php returns thickbox link that doesn't work

两盒软妹~` 提交于 2019-12-12 20:46:32
问题 I'm running into a bit of an issue when I try to return a link to pull up a thickbox on my page from a simple php echo. Basically what I have is: A page with a few include statements like: <?php include ("display_header.php"); ?> Each one of the include statements just points to a php file that pulls a short query and echos out a link with an anchor ref to open an inline thickbox (with a form) when the user clicks on the link text like: echo "<a href='#TB_inline?height=265&width=225&inlineId

Calling JavaScript function from codebehind C# in a user control

南楼画角 提交于 2019-12-10 19:04:59
问题 Currently, I am calling my JavaScript functions using: ScriptManager.RegisterClientScriptBlock(this, typeof(Page), Guid.NewGuid().ToString(), "$(function(){$.jGrowl('Hello World');});", true); It works perfectly! Even using master page and update panel it works as expected. However, when I try to do the same in a user control that is embedded in a page that is being called with a jQuery thickbox, it does not work! Does anyone know how to solve this issue? 回答1: This solved the problem:

IE loses focus on input field in modal

你离开我真会死。 提交于 2019-12-10 10:32:55
问题 I've got a fairly complex web app which I've condensed down to the following two HTML pages, and the problem still exists. The problem? The thickbox modal's (iframe) input field loses focus after a second (or less) in IE (8 & 9). It only occurs when it's in the modal. If you load the page on its own, focus is not lost. I've tried both jQuery 1.4.2 and 1.7.2, and the issue occurs with each. I'd set this up as jsfiddle but don't think it supports being able to trigger a second page. Have set it