jquery

AutoComplete using JQuery in GridView

AutoComplete using JQuery in GridView. I want to autocomplete functionality in gridview which is required for bulk update ...

JQuery clone duplicate IDs

I have a html element with a large collection of unordered lists contained within it. I need to clone this element to place elsewhere on the page with different styles added, this is simple enough using JQuery. $("#MainConfig").clone(false).appendTo($("#smallConfig")); The problem, however is that all the lists and thier associated...

Javascript function should be running on every page load

I am looking at an asp.net 2 web application that I am maintaining (but did not write). Some things that should happen on the page loading do not, but only sometimes, and it seems to be if you are using Firefox 3 inside a VM. JQuery and asp.net Ajax are used. The important function that should run every time (but does not) is attached ...

Select values of checkbox group with jQuery

I'm using Zend_Form to output a set group of checkboxes: <label style="white-space: nowrap;"><input type="checkbox" name="user_group[]" id="user_group-20" value="20">This Group</label> With a normal HTTP Post these values are passed as an array, but when I'm somewhat stumped on how to grab all the values using jQuery. I figured I can ...

jQuery UI Tabs - How to Select a Tab on Hover

Using the jQuery UI Tabs component, is it possible to select new tabs on hover instead of when clicking on them? I found an example here, but this does not seem to work with the latest (stable) versions of jQuery and jQuery UI tabs. Finally, one of the developers mentions that this will be an option in Tabs 3, which has since been rele...

Is there a better jQuery solution to this.form.submit(); ?

I want to trigger the submit event of the form the current element is in. A method I know works sometimes is: this.form.submit(); I'm wondering if there is a better solution, possibly using jQuery, as I'm not 100% sure method works in every browser. Edit: The situation I have is, as follows: <form method="get"> <p><label>Field ...

cloning ExtJS components using JQuery

I'm trying to clone form components using JQuery's .clone() (actually, I'm cloning a collection of fields by cloning the container element). Everything worked out well except that the datefield, comboboxes are not working, even the validation for minLength, etc. is also not working. By the way, I'm just transforming an old html form fie...

jQuery Hover Menu - When hovering over child - menu disappears

So I created a simple little hover, that uses a class from a link to show a div underneath. The show/hide works fine, but I can't figure out how to set it so that if the mouse is over the div, it wont hide. I tried using (this) and .hover, with no success. Here is my code: $(document).ready(function() { // hide all dropdown $...

Where can I find a list of jquery autocomplete options such as mustmatch, highlight, etc?

I can't find a good list of options in the docs for autocomplete: http://docs.jquery.com/Plugins/Autocomplete Any ideas where to find a list of these and what they do? ...

Hosted Yui, Google maps, JQuery - an easy way of monitoring website usage?

The Yahoo Javascript library (YUI), JQuery and less so Google maps all allow you to reference their files using the following format: <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"&gt;&lt;/script&gt; This does a request for the script from their servers, which will also pas...

how to load a div into html using jquery

I'm trying to load a div into a page based on a change in the drop down. I either want to show a div which has state/zip or province/postal_code, (each is a file) but I am getting a "406 Not Acceptable [http://localhost/profiles/residency]" Here is my JQuery code: $(function(){ $("#profile_country").change(onSelectChange); }); fun...

JQuery resizable with a knob

I am using JQuery Resizable - http://docs.jquery.com/UI/Resizable/resizable#options - and i want to use a knob instead of the borders (my knob is a button in the bottom right). I see that in options I have a KnobHandles, that I have to set to true. Where do I set my handle? I tried to set it in the handles option but it is not working. M...

"Pin" a class to the selected radio button?

I'm trying to add a class to the selected radio input and then remove that class when another radio of the same type is selected The radio buttons have the class 'radio_button' but i can't get the class to change with the below code. jQuery(".radio_button").livequery('click',function() { $('input.radio_button :radio').focus...

Can't get the object from a cell in jqGrid (jQuery)

This is the issue, when I define the ddl (drop down list or select box) I don't know the selected value. When a user edits a row, the user can select an item from the list. But the selected item isn't set. I want to set the selected item when the user clicks a button to edit the row. The proper way, I think, is to get the ddl that was ...

Using JQuery as an ASP.NET embedded webresource

I have an ASP.NET server control which relies on JQuery for certain functionality. I've tried to add as a webresource. My problem is my method of including the jquery file adds it to the body, or the form to be exact: this.Page.ClientScript.RegisterClientScriptInclude(...) The alternative to this is to add it as a literal in the head...

Handling key-press events (F1-F12) using JavaScript and jQuery, cross-browser

I want to handle F1-F12 keys using JavaScript and jQuery. I am not sure what pitfalls there are to avoid, and I am not currently able to test implementations in any other browsers than Internet Explorer 8, Google Chrome and Mozilla FireFox 3. Any suggestions to a full cross-browser solution? Something like a well-tested jQuery library ...

Compression issues with JQuery file in YUI Compressor

I am trying to minify a few files with YUI compressor. However, I seem to be getting an error on 2 lines of code, which prevents compression. The .js file for jcarouselLite contains 1 error, and my own code contains the other. I have narrowed it down and in both occasions it looks like the the float property used in jQuery is causing t...

Does jQuery have a built in function to return the rootURL?

I typically use the below function to return the root URL if I ever need this, but thought to ask if jQuery had a "one liner" way to do this ... function getRootURL() { var baseURL = location.href; var rootURL = baseURL.substring(0, baseURL.indexOf('/', 7)); // if the root url is localhost, d...

Loop through input items onchange with jQuery

When a select field is changed, I would like to loop through all of the input values in the form it belongs to using jQuery. This doesn't work below, but I can't figure out exactly how to do this. $("select.mod").change(function(){ $(this).parent().get(0).$(":input").each(function(i){ alert(this.name + " = " + i); }); }); ...

jQuery backgroundColor animation

Hello I have a DIV with a link and a SPAN. When clicking the link, it renders a list of items by using AJAX. When an item is clicked, the content of the SPAN is changed. I want to highlight this change, by setting the background-color of the DIV to green, and animating it back to white using jQuery. var originalColor = elementToUpd...