jquery

Collect all the items in a Form in Jquery

How do u collect all the checkboxes and dropdownlist items inJQuery for saving ...

Insert a user control after clicking an item in checkbox list using Jquery

How do I show a usercontrol after clicking the check box in a checkbox list using JQuery. ...

ASP.NET + jQuery + Dynamically Created HyperLink controls

Hello, I have an ASP.NET application that uses jQuery. My ASP.NET application dynamically generates some HyperLink elements based on some values in a database. When a user clicks one of these HyperLink elements, I want to display a jQuery dialog box that allows the user to edit the text of the HyperLink. I have this part working. When ...

ASP.Net MVC & jQuery Form Plugin Uploading a File

Can someone give me an example of how to do this with ASP.Net MVC? I have followed the example at their site on the file uploads tab but I cannot get a decent response back. My controller thinks that it is not a AJAXRequest and tries to do a RedirectToAction but that doesn't change the page after the post. ...

How can I exclude these elements from a jQuery selection?

My jQuery: $("ul.dropdown ul").slideDown("slow"); $("ul.dropdown ul ul").children().hide(); That causes the ones that match the second selector to display for a brief time. How can I exclude the second set from the first set, and only show the first set? My HTML: <ul class="dropdown"> <li style="margin: 0px"> <span ...

QUnit Unit Testing: Test Mouse Click

I have the following HTML code: <div id="main"> <form Id="search-form" action="/ViewRecord/AllRecord" method="post"> <div> <fieldset> <legend>Search</legend> <p> <label for="username">Staff name</label> <input id="username" name="username" type="text" value="" /> ...

ASP.NET AJAX and UserControls: handling client side scripting

I have a UserControl that I want to include in a page multiple times programatically based on some business rules. Currently the control has a JavaScript function that must be called on the ASP.NET AJAX pageLoad event. I'm using a pattern where the Master page has a pageLoad function that calls a contentPageLoad function on any Content...

jQuery ajax (jsonp) ignores a timeout and doesn't fire the error event

Hey fellow jQuery lovers, To add some basic error handling, I wanted to rewrite a piece of code that used jQuery's $.getJSON to pull in some photo's from Flickr. The reason for doing this is that $.getJSON doesn't provide error handling or work with timeouts. Since $.getJSON is just a wrapper around $.ajax I decided to rewrite the thin...

jQuery coda slider effect navigation stop

Hello. I'm using the Coda Slider effect described here: http://jqueryfordesigners.com/coda-slider-effect/ . It works perfectly but I need one more feature added and I don't know how to achieve this: I want the navigation to stop at the last and first tabs. I want the left/right button to disappear or became inactive if I am at the first...

jQuery: Setting Functions Per Page

I currently have a single jQuery script page that I include in my ScriptManager on my MasterPage (I use ASP.NET). All of my custom scripts for all my pages go in this page. I know some people like to break it up into multiple pages but I prefer having them all in one place. Anyways, I have one $(document).ready(function(){ //do stuff// }...

How do I get jQuery's Uploadify plugin to work with ASP.NET MVC?

I'm in the process of trying to get the jQuery plugin, Uploadify, to work with ASP.NET MVC. I've got the plugin showing up fine: With the following javascript snippet: <script type="text/javascript"> $(document).ready(function() { $('#fileUpload').fileUpload({ 'uploader': '/Content/Flash/uploader.swf', ...

How to append value from form field in a new form field

Hey Guys, Here's the story. I have a form with some form fields. Example: name email message What I would like to do is when I click to submit the form, get JQuery to grab the email field value and append it to the message field. I have the value stored here: var email = $('#email').val(); Any ideas? ...

jQuery x y document coordinates of DOM object

I need to get the X,Y coordinates (relative to the document's top/left) for a DOM element. I can't locate any plugins or jQuery property or method that can give these to me. I can get the top and left of the DOM element, but that can be either relative to its current container/parent or to document. ...

basic (lightweight) lightbox plugin

Hello i am looking for a very basic (lightweight) jquery lightbox solution that i can show my pictures and vimeo videos (flash player) on it. and of course browser friendly. I tried fancybox and its not working good in different browsers and also has some bugs on flash medias. Thanks. ...

Understanding bitwise operations in javascript

I am currently storing data inside an XML doc as binary, 20 digits long, each representing a boolean value. <matrix> <resource type="single"> <map>10001010100011110000</map> <name>Resource Title</name> <url>http://www.yoursite.com&lt;/url&gt; </resource> </matrix> I am parsing this with jQuery and am cur...

Target an iframe with a HTML Post with Jquery

Hi, If I'm using JQuery or javascript to do a post, how can I make it target an iframe rather than the current page? jQuery.post( url, [data], [callback], [type] ) That is the format of the jquery post, it doesn't seem as though there is anywhere to specify the target like there is in the tag. Any ideas? Thanks, Matt ...

How can I pass information to an iframe via Post in ASP.NET?

Hi, I would like to pass information to an iframe via post. (Could be jquery or javascript that executes the post, it doesn't really matter). The information cannot be sent via querystring as I do not have access to change the way the page brought in by the iframe is. This data will determine the layout of the content in the iframe so...

Using JQuery to do a GET request with POST variables

I want to call a url from an onclick event and pass it POST variables. I do not want to do this via hidden inputs and a form submit. Of course I want to do this using jquery. The url will have to be loaded into a popup window. The question, since I am a jquery newbie, is how? ...

JQuery cycle plugin with different effect on next and previous

Using JQuery cycle, is it possible to have different effects on the next and previous buttons? For example, have the next button scroll left and previous button fade? I know about the scrollHorz effect for left and right scrolling. Thanks ...

jQuery CSS plugin that returns computed style of element to pseudo clone that element?

I'm looking for a way using jQuery to return an object of computed styles for the 1st matched element. I could then pass this object to another call of jQuery's css method. For example, with width, I can do the following to make the 2 divs have the same width: $('#div2').width($('#div1').width()); It would be nice if I could make a t...