jquery

Jquery and livequery

I have some ajax that pulls information into a table and i am trying to use livequery to add a class to every second row $('a').livequery('click', function(event) { $(".scroll-pane table tr:odd").addClass("Odd"); }); The problem is that the class is only added for a short period of time and then it simply vanishes? I am using jquery ...

json to javascript - google charts

In the past I have used the following method to parse the json data appropriately so I can populate a select box: var request = null; request = $.ajax({ type: "POST", url: "url goes here", dataType: 'text', success: function(returned){ returned = JSON.parse(returned) $.each(returned, function(selectid,item) { ...

How can I select a string within a string and save it into a variable with jQuery?

I have a string that is dynamically entered into: <span class="note_message">The order was manually edited:<br/>The list of edits goes here, and this maybe somewhat long sometimes</span> That is an example of a string that may be entered into the span. It ALWAYS starts with "The order was manually edited:", so I would like to use jQue...

Altering inline styles and HTML attributes on dynamically loaded iframe via colorbox

I am trying to remove some inline style that are produced on some tables in a page i am pulling in via colorbox iframe. jQuery: $('.w_price_assess p.price_report > a').colorbox({ title: 'Price report', transition: 'elastic', innerWidth: '900px', innerHeight: '699px', opacity: '0.5', iframe: true, onComplete:...

Want to call https request using jquery

Hi guys Suppose Server url is : https://example.com/employee and it's return json data I want to call this url using Jquery in iphone I wrote this code : $.ajax { type: "POST", contentType: "application/json; charset=utf-8", url: "https://example.com/employee", data: "{}", dataType: "json" success: function(res) { ...

How to print jqGrid (using jqPrint ?)

Hello, I'm quite new to the jQuery world and I got a requirement which is "Print a web page which contains some data and a jqGrid table" I found the jqPrint plugin which is "almost" what I was looking for. My problem is when I click on my print link, just the visible part of my jqGrid is printed, not every rows. I've seen in some post...

jquery Autocomplete in a Textarea - Fixing key up and down

I have applied the autocomplete functionality in a textarea, but there are issues with the key up and down. Specifically, the cursor does not move up or down when typing in the textarea because the event is suppressed by Autocomplete. Does anyone have any fix for this? I came across this post, but it didn't seem to work. Also, similar ...

rich:jQuery not working in IE8

Hi , I want to trigger a new click event (on the same button) after a button from a modal panel was clicked. Something like click to simulate double click on that button. I used this code: <a4j:form> ... <rich:jQuery name="testClick" selector="#myButton" timing="onJScall" query="trigger('click');" /> <a4j:commandButton id="myButton" ....

How to implement jQuery on top of existing Mootools site

I have taken over the development of a site, which is 50% complete. The previous developer has been using Mootools for a few functions thus far, I am far more proficient in jquery (i.e. have no knowledge of Mootools), and so wish to include the jquery library and use jquery from here on in. Can anyone offer any links, guidelines or adv...

JQuery / Javascript synchronous calls

I'm trying to get the value of the cookie after it's been modified and pass it to a script (via http GET). Here's my code: <script> function editCookieValue() { // function that sets/edits cookie C } </script> <script type="text/javascript"> function fetchCookieValue() { // returns value of cookie C } jQuery.ajax({ dataType: 'j...

JQuery interface for finding location in google map.

Can anyone please suggest any jquery script for capturing google map location from the user? To be more specific... I want website user to locate their addresses online using Google map so that I can store address' location in the db. It should be very simple approach with following steps.. User provides the address in the address fie...

Mobile technology products using PHP/Javascript/jquery

Hi All, I wanted to know the mobile technology products which are developed using PHP/Javascript/jquery. Which are latest mobile products are available in market developed using above mentioned langauges. Are iphone,blackberry,nokia and etc uses these above technologies to develop product and which are those products. If anyone has a...

Speed difference between very similar jQuery expressions in IE

In IE, compare the speed of execution of an expression along the lines of $('div.gallery div.product a"); to the very similar $('div.gallery').find("div.product").find("a"); Sometimes the second variant runs faster, sometimes slower. Often the speed difference is a factor of 2 or more. What is going on? ...

Draggable Jquery

How can i change the id of div when drag is stop using JQuery. ...

Jquery OL auto numbering

Hi all! I'm trying to create auto numbering OL list with JQuery. I want to create list lik this apple 1.1 green apple 1.2 red apple 1.3 red apple orange 2.1 orange juice 2.2 etc Help me to create this please) $('#content-main-text ol:first-child li').each(function(index) { $(this).html((index + 1) + '. ' + $(this).html(...

jQuery: show and hide list elements of equivalent position in other list

I'm stuck on something that I think should be easy... I've got a ul of links, and ul below that with a list of descriptions relating to each link. When I hover over a link in the first ul, I want to hide all the descriptions in the second ul, and just show the relevant one. So I basically want to tell jQuery, for each link: "On hover, f...

jquery - get an html attribute from within a function call

Hi, I'm trying to call a different tooltip according to an anchor tag's id attribute. My JavaScript code is as follows: $(function() { $('.tippy').qtip( { content: { url: "http://mydomain.com/product/mini/" + $(this).attr("id") // doesn't work }, hide: { when: 'mouseout', fixed: true }, positi...

retain show/hide states upon form validation

In my form I show/hide certain divs based on the radio button selection by the user. For example: $('input[name=\'pick_up_point\']').change(function() { if($($(this)).val() == 'pick_up_airport') { $('#pick_up_airport_div').slideDown(); $('#start_point_div').hide(); } }); Now when the form is submitted, and if there is an error...

Using jQuery Validate plugin submitHandler to fire fancybox window.

I'm using jQuery Validate & Fancybox together on a website to load a modal Fancybox window on form submission (after being validated by Validate) to confirm an order is being processed but have encountered a weird issue I'm unable to resolve. The < a > tag is as follows on the same page as the form: <a href="<?=ssl_url()?>basket/process...

Abbreviation plugins

hi, I need a good abbreviation plugins which i can use in a text area , using jquery.. some thing like when user types BP i text area . it should show expanded version like blood pressure and he must be able to accept or reject the expansion . ...