jquery

jQuery datepicker onChangeMonthYear doesn't fire on current month

I'm using the datepicker inline, highlighting the dates that has events. Every time the month changes, it has to load the new events from the server. The problem is, the onChangeMonthYear only fires on months different from the current month. For instance, if the is august, it fires on all previous months (july, june, may...) and all fol...

Copy and paste clipboard in JavaScript. or jQuery

How do I copy content thats present in a div tag and paste it to applications like Paint, Powerpoint etc. ...

Overlay in jQuery UI toolkit

Is there any overlay in the JQuery UI toolkit that offers a context arrow to the link/content that it relates to? ...

jQuery - use wrap() to wrap multiple elements?

How would I go about using wrap() to wrap multiple elements (with different classes) inside a <div>? For example, on the form I'm working on there is a big list of checkbox inputs and labels in the form of: <input> <label> <input> <label> etc I'm wanting to wrap a <div> around the input and label, so the result would be: <div> <i...

Jquery, how to test for a mobile browser?

Hi, How do you test for, for example, and android browser in Jquery? Cheers. ...

Disabling the asp.net link button n radios using Jquery

How to disable the asp.net Link buttons and asp.net radio buttons. I have used to enable $("#sLbtnFirst").attr("disabled", ""); to disable $("#sLbtnFirst").attr("disabled", "disabled"); but i'm able to click the buttons they are just greying ...

simple modal contact form wordpress plugin gives "404 not found" on submit

I had this simple modal contact form working fine but must have broke it somewhere along the way and can't figure out where. Now when I hit submit I get a 404 Not found. In Firefox the 404 message never shows and from the Error Console I'm seeing the following error repeated: Error: uncaught exception: [Exception... "Component retur...

Correcting the sliding animation of a custom carousel

I'll even share my code with you! Basically, I have a carousel that I built from the bottom up - Now, it works fine when there is more than one product being shown. When there is only one product shown, then the animation jumps in IE (surprise...). Anyone have and idea how I could fix this up? My jQuery for the sliding: $(leftButton)...

Django jQuery views user question

I seem to be stuck and am not sure which is the best direction to take. I have a few apps in my project and would like to combine three views into one template. I have a userprofile in which I would like to display his info, latest news feeds and also his photos Through this I am making use of jQuery tabs I have defined my three tabs...

Visual Studio 2010 compilation error

I'm using Visual Studio 2010 Ultimate on Win XP and I'm having a strange problem. If I try to build a project where the code fails: var html = $('<div>').append($('#top').clone()).remove().html(); Visual Studio stops with an error which is normal. Now if I comment out the line or even delete the line from the code Visual Studio stil...

JQuery: check all divs have the same class or not

Hi, For example I have to do it manually like this: function checkDivUppersClosed() { var allOpened = true; $('.classUpper').each(function (index, domEle) { allOpened &= $(this).parent().hasClass('closed'); }); return allOpened; } I know that if I select $('.closed').size() will return the leng...

How to control positioning of jQueryUI 1.8.2 datepicker for iphone

On the page below, the popup date appears perfectly in all browsers except the iphone where it fails to position the date under the input but places it outside of the body of the page. This seems to be a common problem and I would love it, happy to donate, if a cure can be found that can be explained to and implemented by me: http://ww...

Getting error with $.ajax when tried to fetch JSON object from Google map api.

Hi, I am trying to get json from google map api using ajax and jquery. The code is something like url: "('http://maps.google.com/maps/api/geocode/json?address=559/1,+9th cross+7th main+Gokula,+1st stage+bangalore,+Karnataka,+India&sensor=false')", type: "POST", dataType: "jsonp", success: function(longlatJson) { ...

Flot Stacked Bar Chart and displaying bar values on mouse over

Hi, I'm trying to understand the tooltip functionality of Flot but not really getting my head around it! I am trying to achieve a tooltip that displays the label and value of each section of a stacked bar chart Would someone be able to point my towards an example of this or provide code for doing so? ...

jQuery .data() vs HTML5 data-XXX performance

I found this test http://jsbin.com/ekofa/2 that shows that HTML5 data-XXX is faster then jQuery .data(). I am starting a project that require lots of small data pieces placed on HTML elements where performance is crucial. Should I use .data() or HTML5 data-XXX? Is that test relevant and accurate? ...

jQuery gentle scroll

Hi there - due to the nature of my site, I often have to link to anchors listed within a page, rather than just to the page itself. An example can be found here: http://www.unknowntales.net/chapter/route/choice/#chapter3 What I'm looking for is some jQuery code which I can use to make the page slowly scroll down to the anchor, rather th...

jQuery ajax requests: Success functions called in sequence of request

We have a jQuery app where some requests for the same URL may take much longer than others. The user fires off ajax posts (by making a change in the UI), these fire off a get request on success that updates the UI. When the earliest of the get requests takes a long time, the later one (which is much quicker) is delayed until the slower o...

Integrating 2 jquery plugins together

I am using 2 plugins like http://jquery.bassistance.de/autocomplete/demo/ the Multiple Cities (local): textarea . and http://code.google.com/p/jwysiwyg/ How do I integrate both such that..a text area is converted into jwysiwyg and autocomplete also happens in it. ...

Setting a timer in jQuery/javascript

Hi Everyone, I have a picture slideshow that works on a click of a button like so: ">". The button is a span with id "slideshowRight". Is it possible to set a timer that every 5 seconds literally clicks the slideshowRight button and stops when the mouse hovers over the buttons and restarts when the mouse doesn't hover on them? The hov...

jQuery does not run the second time when a page is called via ajax

I am using jQuery to load the search results from a php class when the user enters a search term. The problem is that jQuery runs and executes the functions as required the first time round on the main page, but when the user enters a search keyword and the results are loaded from the class file on the same page via ajax, jQuery does not...