jquery

jqModal and ad-gallery

I found a great jquery gallery. (http://coffeescripter.com/2009/07/ad-gallery-a-jquery-gallery-plugin/) . I am trying to implement this in a jqmodal window but having some trouble. To hide the jqmodal win, i have a file with: <div id="jqmPix" class="jqmWindow" style="width:730px; display:none;"> on my main page: $('#jqmPix').jqm(...

how to check how many options in a dropdown

How do I check using jquery how many options are there in a drop down? thanks. ...

mvc2, query and qtip issue

Hello, I'm having an issue where in my controller, I'm setting values in a collection and storing them in ViewData. eg: ViewData["ex1"] = new SelectList(ex1); // a simple collection ViewData["ex2"] = new SelectList(group.Members, "Id", "Gender"); I'm passing these to my View and looping through like this. eg: <div id="divListBox" s...

.change() not triggered in IE 6,7,8 on DropDownList - JQuery

I am trying to bind a change event to a dropdownlist. Works great in chrome and FF but it doesn't fire in IE. I saw a few other posts about this but they were asking about radio buttons and the suggestion was to use .click(), which obviously doesnt work for a DDL. Does IE6,7,8 not support .change()? What am I doing wrong / whats the ...

Asp.Net MVC 2 - Weird behavior: RedirectToAction and ValidationSummary not working

I've been working with MVC 2 for awhile and ive done ReturnToAction as well as ValidationSummary - but this is a little different in that my "submit" buttons are controls by javascript/JQuery - i debug the action and it does go into the correct Controller Action but once it passes over RedirecToAction, nothing happens.... My second prob...

Call action of another controller and return its result to View

I have a scenario where I need the following functionality: In View I have call as: $.ajax({ type: "POST", async: false, dataType: 'json', url: "ControllerA/ActionA", data: { var1: some_value }, success: function (data) { if (data == true) { form.submit(); } else if (data == fa...

Changing the source of an image (img) tag doesn't resize on IE

I have an img element in my DOM. Based upon user action, I compute a URL for an image, and change the image element's src attribute (using jQuery). The new image has a different size than the old image. This works fine on Safari, but IE does not resize the display for the new image's size. I do have a .load handler on the src change (in ...

calling alert from code-behind

i have a dropdownlist and a listbox both asp.net controls i am trying to prevent the user add duplciate items to listbox control i able to block it but i want to display DIV or Alert box saying,"duplciate names are not allowed" protected void btn_AddRecipientAction_OnClick(object sender, EventArgs e) { if (Convert...

jquery.append not working for div with id, but working for body?

I'm trying to append VLC player in an html page via jquery. I can do this with $("body").append(html), but not $("#VideoPlayer").append(html)...Is this html too complex? jQuery: $("body").append("<object classid=\"clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921\" codebase=\"http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axv...

Set number of rows based on not letting the page scroll (jquery)

We have a page with multiple content areas, in one of which we build a table from a result set. The user requirement is that the page not scroll. If we fix the number of rows to now allow scrolling at our preferred screen resolution, it looks great at the preferred resolution, but at lower resolutions the page scrolls. If we fix the n...

jQuery - stopping a hover event while dragging

I'm creating a drag and drop image environment, where if you hover over an image, a small menu pops up overtop of it. if you click and drag the image, you can reorder them. The problem I'm having is, I want the hover event to be disabled when you're dragging around. Currently if you drag an image around, it triggers all the hover menus ...

My script works fine on static content, but breaks when the content is changed via AJAX - jQuery

I am writing a custom calendar, that consists of two parts, one div showing the month grid, and a second div showing the events for the selected date. The current month's calendar grid loads automatically, and the display of daily events works correctly. However, when the user clicks the button to view the next or previous month, clickin...

How to set Wufoo input with a Query String value?

I have a Wufoo form that I wanted to populate one of the fields with a value directly from the query string the normal jQuery call for this does not get anything back jQuery("#Field13") so, all set using this, is just not accomplish jQuery("#Field13").val( my_qs_value ); I'm using the Embed Javascript code from Wufoo (not the ...

jQuery .html not working on td

I have a table cell with a text box in it, and I'm trying to take the value of the text box and put it back into the table cell while removing the text box. I'm doing this for a while row. So I have this: tds.each(function(i) { var val = $(this).children('input').eq(0).val(); document.getElementById($(thi...

Fading out and in with $(this).parent().find() repeating.

Hi there, I've been creating a checklist webapp using JQuery, and so far it has been going pretty smooth, but now I'm trying to make editable content. I want to do this by fading out the text in the list, and fading in the textbox, and then reverse when complete. The checklist can be found here: The Checklist. As you can see it is fairly...

Validate Drivers License numbers?

I am working on a ACH payment processor and was wondering if I can scope the drivers license field against some rules. Any ideas on this? Can I assume numbers only or anything else more like SSN Thanks ...

Jquery, unbinding mousewheel event, then rebinding it after actions are completed?

I've been struggling with this for a little while now.. I am using this code to monitor the mousewheel so it can be used for scrolling with a slider that I have.. however, it has an issue where the actions queue up so if you scroll with the mousewheel fast (like anyone would do normally) they build up and it causes buggy behavior.. I kno...

Make element fade away then display:none;

I have an element that fades in, its the size of the page and goes over top of the whole page. when you click the close button it should fade out. I have this all working but my issue is when I close it, its opacity is set to 0, but you can still click what was in the element. (I have a couple a tags in it) So.. your clicking it even th...

Using Curvy Corners, but keep getting a JS error "Invalid argument" in IE only

Here is my page markup: <div class="grayBox clearfix"> <div class="mainFormInnerColumn"> <label>Sort By:</label> <asp:DropDownList ID="ddl_TestResultsSortBy" runat="server" ClientIDMode="Static"> <asp:ListItem>Date Newest</asp:ListItem> ...

jQuery UI modal dialog form using remote content

I have a form in a web page dynamically generated and I would like to display it using a the jQuery UI modal dialog. How can I display the modal dialog form with the remote existing form (myform.html) as content when I click on a link "Open Form"? Clicking on submit button should close the dialog form. ...