jquery

jQuery add decimal to SELECT, No Duplicates with option to remove

OK here goes: Need to filter out duplicates and the ability to remove added values to a SELECT box. Number: <input type="text" name="number" /> <br /> <!-- Clicking the button should add an option w/ the value being the text displayed --> <button type="button">Add</button> <br /> <Select id="mySelect" size="9"></Select> <br /> <!-- Disp...

Has the community for the jQuery HighlightFade plugin died?

I'm currently using the jQuery HighlightFade plugin and can't seem to find if anyone is working on the next version (beyond 0.7 that is). I only went out looking for a new version because after I updated my jQuery.UI from 1.5.x to 1.7.x - the plugin doesn't work for IE 6/7/8 anymore (not sure if this plugin depends on jQuery UI, but I w...

Recursive image lazy-load failing in Internet Explorer (6-8)

Problem: I am having trouble implementing a recursive image lazy load in all relevant versions of Internet Explorer. I am using jQuery 1.3.2, and the code that follows works wonderfully on Firefox, Safari, and Chrome. While I would expect that IE6's javascript engine would choke, I am very surprised to find that it does not work at all...

What is the most efficient way to access DOM elements in jQuery?

I am writing a jQuery plugin and I am at the optimization stage. I wonder which of these leads to a quicker script in general, and what sort of mitigating factors are important: Have the script generate lots of classes and ids at the start so finding elements in the dom is easier (quicker too?) later on. Keep classes and ids to a mini...

Problem with jQuery in Internet Explorer 8

I am trying to get my jQuery functions to work on IE8. I am loading the library from google's servers (http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js). The $(function(){}) is never called. Instead, I get an error "Object expected". I opened the developer and ran "typeof $" in the console, and it came up as "undefined". I h...

can i post a temporary file name of the file that is being uploaded using jquery

hi , i need to post a form which includes personal details and i need to upload a attachment file also and i need to achieve this using ajax , how can i upload a file using ajax , i need to post the personal detail as well as upload a file at the same time using ajax , how can i do this? ...

can't get jquery output my json object

I have the following code in my page. I am expecting a series of json objects to get returned from the person_output.aspx page, which it does successfully. However, when it comes to outputting the content, I receive an error. $.getJSON("ajax/person_output.aspx", { 'uID': 1 }, function(data) { $.each(data.items, function(i...

Calling ASMX from JQuery

Hi, I am trying to call ASMX method from JQuery without success. Following is my code and don't understand what i am missing. Thanks, Ebe ///Something.js function setQuestion() { $.ajax({ type: "POST", data: "{}", dataType: "json", url: "http: //localhost/BoATransformation/Survey.asmx/GetSurvey", ...

GalleryView - JQuery With Landscape and Portrait Photos

Does anyone have a nice solution for GalleryView when I want to display photos that are a mix of landscapes and portraits? ...

ASP.NET MVC - Controller parameter not being gathered from form?

We are having this problem with a controller right now; the controller looks like this: public class AccountsController:Controller { public ActionResult List(int? page, int? pageSize, string keywords) {...} } We are posting to this page via jquery: $.post("/myapp/Accounts/List", {"page":0,"pageSize":10,"keywords":"asdf"}, ...

How do I add options to a DropDownList using jQuery (ordered)?

This question is similar to this one http://stackoverflow.com/questions/317095/how-do-i-add-options-to-a-dropdownlist-using-jquery but I would like to add it in an ordered fashion. The example in the other question just adds it to the end of the list. The code is as follows: var myOptions = { 1: "Test" 2: "Another" }; $.each...

Show/Hide an accordion panel in Jquery when clicking edit in a gridview?

I have a Jquery Accordion and I have a asp.net GridView below that. When I click on the edit button in a gridview row, it goes and grabs some data. Depending on which row is clicked, I want to show/hide an accordion panel. Can I accomplish this in the GridView_RowEditing event, if so, how? ...

How do I initialize a jQuery UI datepicker to a date from the querystring?

Given this markup: // Calendar.html?date=1/2/2003 <script> $(function() { $('.inlinedatepicker').datepicker(); }); </script> ... <div class="inlinedatepicker" id="calendar"/> This will display an inline datepicker with very little effort (awesome!). How do I preset the datepicker to the date passed in via the query string? ...

Any good lightweight date/time picker for web with good UI ?

Few wishes, If it is jQuery based, best. If it focus easy UI then eye candy, better. If it is date and time picker both, good. Edit: I should have mentioned , I already looked most options available that I can found using google. Problem is not a single date+time picker is part of official jquery-ui project so some are for old jquer...

jQuery enable/disable show/hide button w/ SELECT options. Get remaining option values

I have a select list which is being populated using the values from a text field. I also have two buttons: an add button which adds the entered value to the select list and a remove button which removes the entered value from the select list. I would like to do the following using jQuery: If the value entered into the text field is NOT...

jQuery: filter out elements via class?

I have a website featuring a long list of names. To make it more oversee-able, I'd like to put a text link in to (on load) show all (on clicking word "pears") hide all elements with class="apple" (on clicking word "apples") hide all elements with class="pear" (on clicking "show all") show all I suppose it'd be like a really simplif...

How to implement displaying the requested named anchor using JQuery / JavaScript / CSS

The page has a container div which holds multiple content divs. Each content div has a named anchor. Only one of the content divs is displayed at a time: Example: <style> .lurk { display: none; } </style> <div class="container"> <div id="c1"> <a name="#c1">One</a> is the loneliest number. </div> <div id="c2" class="lurk"> ...

How to use YUI's

I experienced with JQuery and new to YUI. I'm looking for YUI's equivalent of the JQuery "$(document).ready". I found "onDOMReady". If I have a .JS document with a large number of functions, what is the right way to wrap them all in "onDOMReady"? ...

jQuery get remaining OPTION values in CSV format

I'm looking to return a CSV formatted string to set the value of a input text field with the OPTION values from a SELECT box. $.map($('#addedchargeamtid option'), function(e) { var exp = $(e).text(); alert(exp); }) In using a map function but it looks to overwrite the value each time. can't figure out how to concat these ...

jQuery: Making corresponding text boxes affect eachother's values.

Situation: 2 text boxes, TextBoxA and TextBoxB. I enter text into TextBoxA and it sets the value of TextBoxB. Now, I need to be able to edit the value of TextBoxB, and have that set the value of TextBoxA. Simple enough, but I need this to work for several pairs of text boxes on a single page. This is what I have so far: $(function() {...