jquery

Jquery UI Autocomplete from remote source categorized

There are nice documentation on the jquery ui site on showing auto-complete options categorized http://jqueryui.com/demos/autocomplete/#categories And there is also an example about showing remote suggestions. http://jqueryui.com/demos/autocomplete/#remote But what I want is to load auto-complete options categorized from a remote sou...

Problem with ajax loaded content in jScrollPane in jQuery

HI, I have a problem with jQuery, jScrollPane and loading data with AJAX. When I have static data a div the scrollpane works fine, but as soon as I load data with AJAX in the div the scrollpane disappears. I know that I have to reinitialise the scrollpane after that, so I am doing this.. but probably wrong as it is not working. So, the...

How to open a prettyPhoto lightbox automatically when the page loads?

I am really new to Jquery and I have found several examples of opening a light box using cookies and the the onload feature. I am using the cookie example which works with fancybox, but I have been using prettyPhoto on all my sites and really do not want to change to fancybox. I have tried a dozen different ways to get this to work but...

python list to newline separated value

hi, Im trying to get data in pylon to use in jquery autocomplete, the librarary i'm using for autocomplete it requires this format abc pqr xyz and in python i have data in this format [["abc"], ["pqr"],["xyz"] How do i convert this list to the above one. Edit: I trying to use these for a autocompete and i'm using pylons, in ...

jQuery outerHeight returning incorrect value IE

I am attempting to get the height of an element on a page. I get the expected value (700px or so) in FF and Webkit on Mac, but I am getting a value of 0 in IE8. I haven't tried earlier versions of IE yet. html: <section> <article> ... </article> javascript: var height = myElement.outerHeight(true); There are a number of t...

JQuery selecting children with same names

Hi guys, I have a list that is being fed in to my page using an ASP.NET repeaters. The repeater contains a div (divContainer) with two divs (divTitle and divDetails) inside it. I'm hiding the divDetails and only want to show it if the user click on divTitle. This works fine for me when in the first divContainer but all subsequent ones...

How to search for a row and then select it in jqGrid?

I have a scenario where in I have to select a row in jqGrid programatically. From a function I will have a value of a column which is available in jqGrid and based on passed in column's value I have to search in jqGrid and when it finds a record match I have to select that row. Not sure how to achieve this using jQuery for my jqGrid. ...

jQuery validate change color of element background

jQuery.validate doesn't seem to change the background color of the invalid element by default. Is it also possible to change the background color of a select element? Most of my elements are input type="text", but I need an indicator for the select form elements. I am not using the default generated messages, as they don't fit my layout....

jQuery AutoComplete, How to accept Found & UnFound Terms

Hello, I'm referencing the jQuery autocomplete plugin code seen in this tutorial: http://net.tutsplus.com/tutorials/javascript-ajax/how-to-use-the-jquery-ui-autocomplete-widget/ The problem with this tutorial is that it only support items found on the server. What I would like to do is allow a user to use items found on the server (as i...

jquery .hover .animation use to switch between a stack of z-index arranged images.

Part A I have the following: <div class="graphic fadehover" class="last"> <img src="graphic5test image" alt="" class="a" /> <img src="graphic5-2test image" alt="" class="b" /> </div> with attached css .fadehover {display: block; height: 162px; margin: 70px 45px 0 0; position:relative; width: 292px; z-index: 1...

Show box if radio button checked using jQuery

I have the following code: <fieldset> <legend>Do you currently have SolidWorks</legend> <ul> <li><label for=""><input type="radio" name="solidworks" value="Yes" id="rdYes" /> Yes</label></li> <li><label for=""><input type="radio" name="solidworks" value="No" id="rdNo" /> No</label></li> ...

javascript / jquery: how do I get the inner window height?

Like... the height that excludes the address bar, bookmarks, etc. just the viewing space. $(window).innerHeight() appears to not work. ...

How do I determine if something has been clicked in jQuery on the first load?

I am trying to set a javascript variable to be one of a few options. If one of a few specific link shas not been clicked (i.e. the first page load), then the variable should be set to 0 or 1 (the default value). If it has been clicked, then I want it to get a number associated with that link. So say the html looks like this: <a href=...

creating an inline update field using jquery

Hello all. I've gotten stuck(again) I have a table and one of the columns is a value that I want to be able to click, turn into an input field, then click again to change it back to just text. I've gotten the first step done. It turns into an input field with a link to click and it uses the value that was previously in the td. Howeve...

a single equals in an if. Javascript. Any good reason?

jQuery.each(player, function(key, val){ if (el = $("#pr_attr_plain_"+key)){ el.text(val === "" ? 0 : " " + val); } }); I inherited a project and I came across something strange. The guy who started the project is an expereinced programmer, definitely more so then myself. Is there any value or r...

refresh a javascript file after an event?

I am using a keynav plugin that allows me to navigate up and down though a list. This list is dynamically generated using ajax and mysql. the suggesstions appear when someone begins to search into an input box. if the user clicks off and the list closes and then begins a new search, when the list is generated the second time, the keybo...

jquery .each() take image and title from a class and add each one to 5 diffrent div's

I am stuck on this what I am trying to do is: there will be div's with the class of feature there could be an x amount of them but i only want 5 most resent. take the img src and a.html witch is a title link from each and add each one to 5 containing divs at the top of the page. the image as a background-image and the other prepend to an...

Major IE8 positioning issues part 2

Hello, I have a social network for the cystic fibrosis community. There is a section (s) where you can leave comments, and reply to the comments. This is generated with html,css,and jquery and works amazingly on FF,Safari, and Chrome, as you can guess, it has major quirks on IE8. It works as it should when the comment is small, or ther...

user paste a hyperlink and picture into a text area

I have a website that has in internal email system . There is a text area for the body of the email. but what I need to do is allow the user to paste a link or picture into the area. can this be done ? or is there a script etc.. Any help would be appreciated ! thanks ...

jQuery - How to get position of element that has a class

Hi, I have an slider that ads an class (.current-item) to each tab that is on, and removes when it`s off. I want to use LavaLamp for the menu efect and I need to get the position of the each element that has class current-item. I used: var my = $("li.current-item"); var myposition = my.position(); function setCurr(el) { $bac...