jquery

[jQuery] How do i get the value of all other dropdowns when one of them is changed.

Hello Everyone, I am trying to populate a text box based on the values from a set of dropdowns. Once the user changes the value of a dropdown, I would like to get the values of all other dropdowns that are contained within the same div. In the example below, I am trying to display the value all 'selects' in a gien div through a dialo...

Is it possible to check for PNG support with jQuery.Support?

My question is regarding the jQuery Support system. I'd like to know if it is possible to tell whether or not the browser will support semi-transparent background PNG images using this method. Edit: I am not interested in CSS solutions to a specific problem. I'd like to know if the jQuery support checking system can check this. I app...

How can I change content on my page based on the selected value of an HtmlHelper DropDownList?

Hello, I am using ASP.NET MVC and want to update content on my page based on the selected value of an HtmlHelper.DropDownList. I have an Admin page on which I would like to display a list of hired employees for a given semester, without having to redirect to another controller. Perhaps a table could be generated or a ListBox filled with...

jQuery/Javascript: How to tell if the $(window).load()/window.onload event has already fired?

I have a script that is being inserted dynamically via another script. The code in that script is wrapped inside the $(window).load() event because it requires the images on the page to have all loaded. In some browsers it works fine, but in others it seems not to fire because the page has already finished loading by the time the code ...

how to use JSON for an error class

Hey all. I was fortunate enough to have Paolo help me with a piece of jquery code that would show the end user an error message if data was saved or not saved to a database. I am looking at the code and my imagination is running wild because I am wondering if I could use just that one piece of code and import the selector type into it an...

How to display boxes over an image with JQuery?

Hi all, I currently have an image that I want people's annotations to show up on, where the annotations actually have an x,y coordinate relative to the image, as well as a width and height. Let's say for now the annotations don't actually have text in them -- they'll just be empty boxes. I'm wondering what the best way to display an em...

jQuery form validation multiple forms

Duplicate Answered here: validate multiple forms If all asp.net controls are required to be within a form in order to be generated, how does one go about using the jquery validation plugin with multiple forms on the same page? What I mean by that is, how can I have two forms both containing asp controls that can be validated indepe...

How do I combine two JQuery functions.

Could someone please give me a hand and tell me what is wrong with this script? The answer that was posted did not work. What I get when I use that code is the entire html page being submitted. This is what I can see from the console. Can someone please help me out? Thanks. $(function() { $('#add_customer_form').submit(function() ...

multiple form validation

If all asp.net controls are required to be within a form in order to be generated, how does one go about using the jquery validation plugin with multiple forms on the same page? What I mean by that is, how can I have two forms both containing asp controls that can be validated independently with jquery validation? ...

Remove close button on jQueryUI Dialog?

How do I remove the close button (the X in the top left corner) on a dialog box created by jQueryUI? ...

ASP.NET MVC return JSON() does show me a Save file Dialog

Hello together, My first Question on Stackoverflow, I am new on the .NET MVC pattern and tried to call a Action using AJAX.BeginForm Helper Class in my Controller I return seralized JSON using return JSON(); In my view I Added a Scrip witch should consume the returnes JSON. function ResultSet(request) { var json = content.get_r...

z-index in IE 6 and IE 7

I had a nested div as I show below: <div id="header"><div class="header-content"> <div class="button"></div> <div id="menu"></div> </div> <ul> <li></li> </ul> </div> Now my javascript code like that: <script> $(".button").click(function(){ $("#menu").css({ position:"absolute", zIndex:50000, display:"block...

jQuery Return elements where ID begins with a certain string

I have a lot of <span> tags like this <span id='val_Title'></span> <span id='val_Name'></span> I would like to return all the elements that begin with 'val_' and hide them. How can I do this? Thanks ...

JQuery datepicker not displaying properly

I recently migrated from JQuery 1.2 to JQuery 1.3. However the DatePicker UI is giving me a problem. I have a text field withing a JQuery dialog. A datepicker is attached to this field. When I click on the field the datepicker pops up but behind the dialog box, which blocks out almost the entire DatePicker. Also the DatePicker does not d...

How to rotate(degree) image with jQuery Slider?

Hi, I'm wondering how to rotate an image when jQuery slider value is changed. For example, the degree of image will change on the fly according to the left(0) to right(360) slider variation. I don't know how to pass the slider value to jQuery's rotate() function. Please help me. Thank you all in advance. ...

CleanCalendar In JQuery

Hi, I m Using a calendar.js file to implement calendar in my App. Actually this calendar .js has a line which accepts the classname and Div id name of my app. In my App i m having these lines <input type="text" class="calendarSelectDate" /> <div id="calendarDiv"></div> When i click this textbox it will generate the calendar inthe ...

Getting an empty JQuery object

In the following code I set up a change handler on a select box to show and hide some follow up questions based on the value of the selection. Further, for some values of the selection there is an extra message that is displayed. In order to check to see if I need to hide the extra message, I keep a variable called Previous. Upon exec...

JQUeryUI Dialog and HTML select

I have an ASPX page where jQuery UI dialog will appear on the screen ,on clicking on a button,When the UI dialog is active ,User cant interact with any other controls.ITs working good. But I have a Dropdown list (Select ) in the page .It is still active .User is able to go and choose any option from the dropdown. I know that in IE6,Its c...

ASP.NET partial page upload without Updatepanel /With jQuery

I have an ASPX page .In the Top i am displaying 5 categories (Ex : Pen,Book,Shoe,Mobile,Mirror) When i click on any of the categories,I want to show the products under that category below the header. I dont want to reload the entire page for this.I want to maintain my page as it is (The header,footer and side panels would ) when a click...

How to load Google API (UDS.JS) on demand (with jQuery)?

Tried this: $('.link').click(function(e) { $.getScript('http://www.google.com/uds/api?file=uds.js&amp;amp;v=1.0', function() { $('body').append('<p>GOOGLE API (UDS) is loaded</p>'); }); return false; }); Yes, it loads a primary "uds.js" file and then locks page by loading a locale JS file ("default+en.I.js", see line #48 ...