jquery

How to select the inverse of the selection

I am successful in selecting the first <li> of the <ul> i want to select the remaining of the <li> except the current selected <li> . i.e., (inverse) How can I select it. Please help EDIT 1 As per request var newEle = $(str); //str contains a <li> i.e., <li>Some content</li> $(newEle).hide(); ...

Using soapenv CAML jQuery to get data from List library

Hi, i'm using soapenv to get data from SharePoint list librarys. There are some things i didn't found answers to .. How should get data from library which is located in other site/subsite ? What is the best way to write this jQuery CAML Querys ? Now, i'm using NotePad :) then copy/paste it to SharePoint site, into Content Edi...

AjaxFileUpload Plugin does not retrieve $_POST data

This is almost identical problem which I faced a few days ago. I fixed it then, but now it's not working any more. Well, some of it works. I'm using AjaxFileUpload Plugin to upload files in my WP plugin. This plugin calls uploader.php to process the upload form. I am able to get the filename (and other data) using $_FILES['uploadFile']...

How to access text from neighboring table cell?

I have a set of search results presented in a table. Each row has a radio box. Once the user has selected a row I would like to access the description text from the neighboring cell. Using jQuery or straight javascript, what is the best way to do this? <tr class="odd"> <td class="chosenCode"><input type="radio" value="123" name="chos...

Bind jQuery hover event to multiple DOM elements

Hello, I've an unordered list of elements and I want to bind hover event to each of these elements. The HTML structure is as follows : <ul> <li id="url_1">item 1</li> <li id="url_2">item 2</li> </ul> I figured using a for-loop would be the best way to do it. So my jQuery code is as follows: for(i=1;i<=2;i++){ $("li#url_"+i)....

In jQuery, how can I monitor a dynamically populated element (AJAX), without basing it on an event?

I have the following markup on page load: <select name="sel_billing_address"></select> After page load that select is then populated by some AJAX to be something along the lines of: <select name="sel_billing_address"> <option value="1">hi</option> <option value="2">there</option> <option value="3" selected="selected">sally</opt...

jQuery plugin - Can't find download link

Hi, Sorry for this stupid question but I cant find the download link from this plugin: http://plugins.jquery.com/project/jgfeed Can somebody help me? Thanks in advance! Peter ...

Scroll page to a certain point then start scrolling a div's overflow content using only one scrollbar

I'm after some information on how to make the page's scroll bar scroll the overflow content of a div instead of the page once its scrolled to a certain point. The end outcome is to scroll the page to the extent that the header isn't visible anymore, but from that point forward scroll the contents of the div - with the main scrollbar, no...

jquery animate one element after another

I'm trying to create a small sequence of animations with jQuery but cannot get it to work! HTML: <div class="outer"> <div class="inner"> <p>First line visable.</p> <span class="expand">Read more</span> <p class="fade">Line one</p> <p class="fade">Line two</p> <p class="fade">Line three</p> <p clas...

jQuery UI datepicker IE problem

Dear, I checked related posts but none of these answered my question. So this is the code i use: <script type="text/javascript" src="/media/datepicker.js"></script> Inside the datepicker.js i have the following: $(function() { $("#id_picker").datepicker(); }); I also tried to put document.ready() around it, but that didn't hel...

jquery ID of previous dynamically added text area

Hi I'm attempting to hack a wordpress plugin to gain some extra functionality. As it stands i've adjusted it so I can add a new textarea with it's own upload box. I now need a way to get the ID of the new textarea, so I can pass the uploaded file text back to the correct textarea. this is my code: JQUERY: <script type="text/jquery"...

Return array *after* JSON is done?

How do I make this function return the entire array when it's done pushing all markers? function XTW_getLocations(data, div_id, map) { var markers = []; var marker; var latLngBounds = new google.maps.LatLngBounds(); $(div_id).empty(); $.getJSON('GetLocations', "country=" + data.id, function(data){ ...

Jquery ajax function and downloading files

Hi all, I am using $ajax( { type:"post", url:"/whatever/" } ) to access my server which works nicely. The problem is that the response is not evaluated as I need it. On some occations the server sends back a dummy string ("x") which can be ignored on the browser, but on other occasions my server sends back a special file as attachment: ...

network diagram/ flow diagram in JQuery

Hi, Have You got any examples or links to free JQuery flow diagram or network/ graph diagram ? ...

Not sure how to use the JQuery UI Autocomplete ... :(

Hi folks, this is a continuation from a previous JQueryUI Autocomplete question, I asked. This time, I have my data returning ... but I have no idea how i define what html to show and how to dynamically update that html with my results. So, here's my jquery .... Home.js function AutoComplete(element) { var cache = {}; $(elem...

Unable to load view on jQuery dialog.load()

Hi, I am using jQuery to load the details on a modal popup. The url is determined by the item clicked on the Html.Grid(). The following is the .aspx code: <script type="text/javascript"> $(document).ready(function () { //define config object var dialogOpts = { modal: true, ...

Changing attributes of cloned elements using CSS selectors

Hi guys, I am trying to clone an element, and then traverse through it's child elements and change attributes accordingly, the thing is that I am trying to access the elements via custom attributes using CSS selectors and I can't seem to get it to work, here is what I have thus far, HTML: <div id='main_container'> <div id="contain...

jQuery Selectors

I am trying to get an array of checkboxes that ARE checked AND have a certain attribute (tag) that is NOT blank. (I know that the attribute called tag is not HTML compliant but it does work across the major browsers and makes life alot simpler!) e.g. <input type="checkbox" name="First" tag="[email protected]" checked="checked"> <inp...

Flexigrid Problem

Hi, i m using the "Flexigrid" to create the Jquery Grid (http://www.flexigrid.info/). i m using it with the C#. from web site i have downloaded the XML file and using it in Jquery code. My code is: <script type="text/javascript"> //var lastsel3; jQuery(document).ready( function() { jQuery("#test").jqGrid( { ...

Jquery if statement for background-image css value

i am trying to compare the value of background-image and do image that image to another one here is the snippet if ($('.list').css("background-image") === "url(images/Remove.png"){ $('.list').click(function(){ $('.list').css({ 'padding-left' : '40px', 'background-image' : 'url(images/Remove_vertical.png)...