jquery

jQuery removing an element and renumbering remaining elements

Does anyone see the flaw in my code here, because this one has me stumped! function removeMLRow(rowNo) { $('#ml_organize li:eq(' + (rowNo - 1) + ')').remove(); $($('#ml_organize li:eq(' + (rowNo) + ')').get().reverse()).each(function() { var newID = 'li' + ($(this).index() - 1); $(this).attr('id',newID); }); ...

Setting width and height of modal window from JavaScript/JQuery to ASP.NET MVC inline code

This is my HTML ActionLink helper in the view: <%=Html.ActionLink(Resources.Localize.Routes_WidgetsEdit, "Edit", Model.ContentType.ToString(), new {slug = Model.Slug, modal = true}, new { rel = "shadowbox;height=_HEIGHT_;width=_WIDTH_", title = Resources.Localize.Routes_WidgetsEdit, @class = "editWidget" })%> ...

Implementing smooth div toggle

I am trying to recreate the "div toggle" effect on this page, but with jQuery: cordon-bleu.se I want this effect, but working like the above page: the visible div hides when you click to show another: sohtanaka.com/web-design/easy-toggle-jquery-tutorial/ My javascript so far is: $(document).ready(function(){ $("h2.menutrigger").cl...

jQuery password strength plugin: Retrieving password's strength.

Hi, I'm working on a legacy groovy project that uses jQuery's password strength validator plugin. It works great. However, a new requirement arrived today, indicating that the form should not be submited if the strength of the password is below good (this is an arbitrary value) Is there any way to achieve this? Possibly via javascript?...

jQuery, Web Application Framework?

For the longest time I've used jQuery to hack together web sites. Now I'm interested in making a web application (one page load for the entire site to function, like Gmail). Are there any jQuery Frameworks or practices that I can leverage to build my application so I don't have to recreate the wheel, or hack something together as I go? ...

chrome safari javascript jquery back

Is there anything particular to chrome or safari that would make a javascript/jquery script work on the first page load, but then when the user hits the back button after navigating the site, it causes select boxes to be selected? Here is the code. Apologizes before hand for the lack of conventions. I had to get this up quick: http://w...

Ignore default text in jquery validation plugin

Hi, I am using the jquery validation plugin (bassistance.de/jquery-plugins/jquery-plugin-validation/id) for a bit of client-side form validation. The plugin is working great but I cannot figure out how to force it to ignore some default text within a textarea. <form action="#" id="landingForm"> <p> <textarea id="askTexarea" class="requ...

How to get my div to fade out with jQuery on page load?

I'm brand new to jQuery (and javascript in general). I've been meaning to use it/learn it for some time, and nows the time. So I'm going to use jQuery on this page to fade out the "under construction" warning at the top of the page on load. But I'm unfamiliar with any of the functions or selectors to use. I found this basic article at ...

jQuery extract id and then attach calendar based on class

I'm working with an existing javascript library that does an AJAX call and then executes an optional callback function. The callback function gets passed the HTML string that is being loaded into the DOM. I need to assign the jQuery datepicker to all elements in that HTML string that are of calendar class. A simplified example of the HT...

jQuery equivalent of radio button "checked" for drop down menu

Hey guys, Probably a simple one, but I need some help. I had some radio buttons and was using the following jQuery to see which was checked: var desc1 = ($('input[name=area]:checked').val()); That worked fine, but I now need to use a drop down menu instead of the radio buttons. I tried the same jQuery and also with "selected" instead...

FullCalendar dayClick functionality

Hello, I am fairly new to the FullCalendar, but totally love it's functionality. I am trying to use the dayClick function. Perhaps someone can guide me in the right direction. I currently have this. dayClick: function (date, allDay, jsEvent, view) { var titleNew = prompt('Event Title:'); var thedate1 =...

jQuery UI Tabs Minimal Styling

In my application, I have so far avoided needing to load any jQuery stylesheets at all, but the UI-tabs plugin seems to need some CSS to work at all. OK, fine, but the examples have you loading ALL the UI styles and, perhaps more important, the tab styling totally ruins my own look and feel. Is there any place to learn how I can provid...

Scrollable HTML Table in Vertical and Horizontal Option

Hi All, I have a table which has many columns and lots of records. My user want me to have the table to have a fixed header but should have a scrollable option in both the vertical and horizontal version? Is this possible to do this that is cross browser? My target browser is IE 6.0 + and FF. I am looking for a CSS version or jquery...

Jquery datepicker does not work inside lightbox - solved

Hi again, after some problems solved, I got a tricky stuff. I am using an overlay plugin for Jquery called prettyPhoto. Just wanna make an overlay with a form. The form is hidden with CSS, and when a link is clicked, the overlay shows it in a nice fashion. So far so good, everything working as expected, except only one thing: this form...

Best article about how to use jQTouch .

I want to use jQTouch on my project, but I can't find many examples. So do you know some website which has many jQTouch examples. Thanks ...

Get user control method and properties from static page method

So I have an ASP.NET user control that is using jQuery AJAX to call a method. Here's the jQuery: $.ajax({ type: 'POST', url: 'Default.aspx/AdvertClick', data: '{"name":"test"}', contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(result) { //do something } }); Because...

asp.net webservice returning XML instead of Json object

hello, I made a post here: http://stackoverflow.com/questions/3386398/httpget-fail-when-passing-c-entity-class-to-json-jquery my problem is, its returning an XML on its xhr.responseText rather than a Json object. HELP! ...

Need help with $.ajax function - How to send an associative array ?

I would like to send data using $.ajax like this: $.ajax({'url': 'my.php', 'type': 'POST', 'data': arr, 'success': function(response) { alert(response); } }); The problem is that arr is an associative array that looks like: arr['description_0'] = 'very nice picture!'; a...

Creating a CSS class in jQuery

I believe the .addClass() function in jQuery attaches a CSS class to the current selection, but I was wondering I could create or define a CSS class in jQuery, and then attach it? ...

Webkit won't switch out background-image using jQuery

function set_preview_image(image_link){ $('#slideshow-container').css("background-image", "url('files/images/store/content/templates/websites/preview_images/" + image_link + "'"); } I'm passing through an image variable. Everything works fine in FF and IE. What am I missing? I've already tried us...