jQuery UI draggable force update
I am trying to set the values in $(element).data("draggable").offset.relative.top but the new value isn't updated until the mouse is moved, Is there a way to update this value right after it is set? ...
I am trying to set the values in $(element).data("draggable").offset.relative.top but the new value isn't updated until the mouse is moved, Is there a way to update this value right after it is set? ...
Hi, I am using the to implement a popup window using zIndex... things work well but I want to implement a function, that is when user click any region that is outside of the popup div, the div will be closed, how to do that? Bin ...
Does anybody know where I can get the vsdoc for jQuery 1.4.3? Alternatively, what changes do I need to make to jQuery 1.4.2 vsdoc file to add the new functions in 1.4.3? ...
Hello. I'm using jquery hotkeys to bind and run a function when the user taps their right arrow key. When jquery hotkeys detects the right arrow being hit on the keyboard, I want jQuery to click the next pagination link. For some reason this isn't working. I've confirmed pagination works. Also confirmed the selector looks good by getting...
Jquery trim not working. I wrote the following command to remove white space. Whats wrong in it? var str = $('#txtbox').val(); str = jquery.trim(str); $('#txtbox').val(str); ...
In my code when I write code like: $("#id_pop")[0] there is an error. When I correct it to: var $d = $("#id_pop"); $d[0].... it's ok. Why? ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .user-bg { backgro...
Hi friends, Good day. I am having the following code snippet in init.php. <?php include_once("config.php"); include_once(__SITE_PATH . 'view/' . $_REQUEST['page'] . EXT); $loginobj = new $_REQUEST['page']($_REQUEST['billingentitynuber']); $text = $loginobj->$_REQUEST['content'](); echo $text; ?> In Jquery I am having the function Jqu...
Hi, I have deployed asp.net mvc 2 application successfully. but let say there is view fro create user where I used code for datetime picker : <script type="text/javascript"> $(function() { $('#DateOfBirth').datepicker({ dateFormat: 'dd/MM/yy', changeMonth: true, changeYear: true }); }); ...
i want to check that user upload file is image or not. how i can check the type of file is image or not. are any way exist to do this. ...
Hello. I have some tr elements in table: <table> <tr id="tr_level_1">...</tr> <tr id="tr_level_2">...</tr> <tr id="tr_level_3">...</tr> <tr id="tr_level_4">...</tr> <tr id="tr_level_5">...</tr> </table> In Javascript I have the next variable: var levels = 3; I want to delete all tr's where number in id is more than levels. And if l...
On my set I use jquery to fadeout an image, change its source to something else, then fade back in. However, sometimes on slow connections, the image will fade back in before the source completely changes, so the old image will still appear for a brief second before the new one comes in. Is there a way to have a callback on attr so fadi...
Hi all: Does anyone know how to tell if a cached jQuery object has gone stale, e.g. is no longer in the DOM? For example: var $cached_elem = $('.the_button'); // .. and then later $cached_elem.text('updating...'); I have recently encountered the situation where the $cached_elem is removed from the DOM due to some other event. So ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .user-bg { backgro...
No matter what I change in this script, when I go to upload the file, the page is looking for the action do-nothing.htm. This is what the ACTION of the plugin is set to in the downloaded example, but I have changed it. I have also changed some lines in the Javascript to see if I could get something working, but nothing. In fact I can't...
Hi fellow SOers, First, I apology if I used the wrong term in the question (Please feel free to edit if I'm wrong). I know Google hosts (almost) all version of jQuery, jQuery UI (js and css) For example : <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script ty...
how do I check if a field has a string value tht contains letters 'abc' containing in it using Jquery ?? I need to check a field that contains a string value, if the field contains the characters 'abc' I need to disable few fields. Please let me know how I can validate in jquery?? ...
I have a JS component which has functions progressOn and progressOff to show/hide a progress bar. So far I've done this. It works,but only on the first request. $(document).ajaxStart(function() { layouts["main"].progressOn(); }) .ajaxStop(function() { layouts["main"].progressOff(); }); What could be the problem ? ...
Basically I have code that checks if any checkboxes with a given class are selected. If one of those isn't, another checkbox doesn't get selected (parent). Logic for each checkbox { if this isn't checked then uncheck checkbox A if all siblings aren't checked uncheck checkbox A // recursion for grandparents as well. } Is there a Any()...
How can we reinitialize Jquery scrollable plugin?? i m sorting data on basis of most recent and most commented but when data is scrolled for the first time it works fine but when i select sort type then data is reset but scrollable carousel doesn't reinitiates... i tried to clear the dots and call then again but no use... ...