jquery

I want to know how to show a "loading" image when a form is submitted by action="any.php"

I want show Loader img with jQuery when you post by PHP Simple action="search.php" Not ajax post or jquery post and Thanx for all ...

Chrome's changing height when loading pictures - how to get actual height with jQuery on load

I have the following: var offset = {top: target.offset().top + target.height() + 3, left: target.offset().left}; target.offset(offset); this happens on $(document).ready(..) However, in chrome, the target object is not positioned with the appropriate height. When I placed an alert(..) to show the actual height, I sa...

JQuery Pulsate - Weird behaviour with Firefox

I'm trying to pulsate some text using JQuery, which gives some jagged edges when using Firefox, I tried to isolate the problem, and it happens when I change the text color to red using CSS. It seems as if there are bits of black left. Works ok in other browsers, even IE, so I'm a bit confused now. Here's the code: <head> <script src="ht...

How to add multiple sql queries to paginaiton dynamically?

Hello, I am trying to add or connect multiple sql queries dynamically. I am creating a pagination script and I am trying to add some filter buttons or links in this case when a user clicks on the links, it will add the id to the sql query and then display the results. To better understand what I am saying, I will show you the script I'...

Can't add the new marker on Google map

In my project each time it run will get all of tweet information from database and point it in the map but when i use jquery to check if it has the new tweet in database then will get it and point into the map but it's not working function autoUpdate(){ var url= "CheckUpdate/"; $.get(url, Update, function(jsonS) { $.each(jsonS,...

Check if element exists causing script error in browser

I'm trying to attach the Qtip plugin to elements only if the elements containing certain text exists on the page. For some reason I keep getting a script error saying "AddTooltips() is not a function." on a page where the elements do not exist. Something isn't quite working with my if statement. $(document).ready(function() { function...

How can I make a Jeditable (jQuery) span activate editing on more than one event?

For the jQuery extension Jeditable, one of the parameters that can be specified is which DOM event will turn a div/span/... into a text input/textarea/... I would like to have more than one event serve as a trigger; that is, I would like either a click event or a contextmenu event to turn a span into an in-place edit area. Is there a g...

Selectbox image

How can I simple add image to selectbox? I found few jQuery plugins, but they very large. I need something simple. Just add image to option. Thanks. ...

jQuery image picker

I'm looking for a jQuery image picker plugin that allows me to do the following: Display a group of images and let the user select one (and only one) by clicking it If the user does not like any of the specified images, he should be able to upload his own Just #1 would suffice, as I can add the code for #2 if necessary It's not that...

JQUERY onClick change 'top' attribute

I am trying to create a vertical scroller using jquery and I am having troubles with my code.. function scrolldown() { var newtop = $('.scroll-content').css('top') + '250'; $('.scroll-content').css({top: newtop}); } The css: .scroll-content {position:absolute; top:0px} No problems with CSS I can change values in fir...

How to get an the text value of an element in jQuery?

I have an HTML table generated dynamically with field names generated for each row dynamically as well. Here is the structure I have within the table. I have a <td> tag and within it I have a <span> tag. I want to get the value for each tag. I have tried this this way: $("#txtname").attr('value',$("#table1").find('td > #selname_'+i).t...

Auto select an item from a jQuery Autocomplete combobox

I have a page that is using a couple of jQuery's autocomplete comboboxes. I need to be able to autoselect an item from the list when the user clicks a button, or if a value is passed to the page for that combobox. How can I set the value of both the underlying selectbox AND the jQuery combobox? ...

jquery selector to filter out th elements

I have: var rows = $table.find('tbody > tr').get(); This selects all rows. However, not all tables have thead and tbody explicitly defined, so I need to filter out any rows that have .children('th') ...

Can you extract a background-size 'auto' value, using jquery, javascript, or css?

If I have background-size: 50% auto; What if I want to extract the auto value, basically to be able to get the new height or width? ...

jQuery .live() question

I've recently converted my code to produce dynamically generated results. The below code worked fine to toggle the control_hover class. Previous Code $(".control").hover(function () {$(this).addClass("control_hover");},function () {$(this).removeClass("control_hover");}); However, now with the live code, it doesn't seem to execute th...

Can't get jQuery autocomplete to return anything. What am I doing wrong?

I'm using some Javascript I found from a post on StackOverflow. When I start entering text into the input, a spiny loading graphic appears within the input element, however nothing actually appears. When I go to my URL that returns the JSON encoded string just to test it, it seems to work fine: http://xxxxxxxx/app/get_clients/test (get...

Cycle Focus to First Form Element from Last Element & Vice Versa

Hello everyone, I have created a form with malsup's Form Plugin wherein it submits on change of the inputs. I have set up my jQuery script to index drop down menus and visible inputs, and uses that index to determine whether keydown of tab should move focus to the next element or the first element, and likewise with shift+tab keydown. H...

Setting height of text area based on text inside of it using jQuery

I have a <textarea> element in my form that has this code attached to it: $('#links').focusin(function() { $('#links').animate({ height: '100px' }, 300, function() { // done }); }); This works perfectly, when the text area gets focus it increases in height nicely to 100px. Now, I want it to shrink back down...

How to handle expired session using spring-security and jQuery?

I'm using spring-security and jQuery in my application. Main page uses loading content dynamically into tabs via Ajax. And all is ok, however sometimes I've got the login page inside my tab and if I type credentials I will be redirected to the content page without tabs. So I'd like to handle this situation. I know some of the people use...

Jquery toggle nested div will lose transparency after toggling instead of preserving the same attr.

There's a div2 here that has transparency using a css style tag. However the transparency goes away after toggle. It seems to work fine with toggle() but not toggle([number]). Any fixes? Thanks guys. doesn't work in IE7 OR FF 3.5 CSS .transparentDiv { filter:alpha(opacity=50); background-color:#d5ffd5; height:800px; ...