jquery

Loading a page into a dialog with ASP .Net Buttons doesnt fire button click event

Hi,I am loading a page into a jquery dialog. $(document).ready(function() { var $loading = $('<img src="../Images/loading.gif" alt="loading">'); var $dialog = $('<div></div>').append($loading); var $link = $("#<%=lnkCustomise.ClientID %>").one('click', function() { $dialog.load($link.attr('href')...

Jquery to activate multiple slideshows and popups

Hey Guys, I am having a bit of difficulty with this current code I have set up. I am setting up a page with various projects. When one is clicked, the idea is that there will be a popup with a full size image. Some projects have multiple images, so I also added a slide show property. I am sizing the popup by having jquery determine the ...

how to sum radio button values only one time ?

I am using this code to sum values from multiple radio buttons : $(document).ready(function(){ var total = 50000; $("input[type=radio]").change(function(){ $("input[type=radio]:checked").each(function(){ if (isNaN($(this).val())) { total = total; } else ...

How to remove the first level elements in hierarchy ?

Hi guys, I have a datalist being generated with ASP, but unfortunately the jQuery script that I'm using to scroll through the results requires the layout to be as so: <div class="itemContainer"> <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> ASP generates something that look...

using onChange for menu selection in jquery

My below code works fine and is used to populate a <select> item with dynamic <options> The problem is that say I end up with 3 <options> say: One / Two / Three and then I select the first <option> so that I can call jquery code to populate the next menu. One is already the <selected> item in the menu so it is not recognized as a onChan...

paging and sorting using jquery

How can i see paging usng jquery,also should have facility to see amount of records selected from drop down.For eg Dropdown conains 10,20,30,40,if i want to see 40 records then i would select 40,by default it will show 10 records perpage,Secondly i also want to use paging and searching techniques.Please help. ...

How can I use jQuery to make an input readonly?

I have the following input: <input id="fieldName" name="fieldName" type="text" class="text_box" value="Firstname"/> How can I use jQuery to make this element a read-only input without changing the element or its value? ...

jQuery selectors parents and children?

I want something similar to what a Wordpress do to its posts - actions. My HTML <div class="onhover"> <p class="">This is a paragraph. My background will be yellow when you hover over me — even if you're using Internet Explorer.</p> <div class="actions"><a href="#">Add</a> | <a href="#">Edit</a> | <a href="#">Modify</a> | <a href="...

Grid Sizer with jQuery

I'm writing myself a little game in JavaScript, using jQuery. The game has a board, with cells in it, much like Minesweeper: the user clicks a cell, and its data needs to be changed in some way. Each cell is presented by a simple image, but has some more data associated with it. What I mostly need is, when the user clicks a cell, I have...

creating slide down menus in a while loop with dynamic data using jquery

I use php to display a table of data drawn from my mysql database. I have a while loop that loops through each row and spits out the user data. I want to have a more details button that when pressed will drop down a div box displaying "more details" about the user. The problem I've run into is when I create the div to hold the more det...

jQuery Validation Submitting without Validation in Firefox

Hi Guys, I've put together a pretty simple competition script - it's commented out below and you can find the demo at http://www.jakeisonline.com/stackoverflow/jqueryvalidation/page/ I am using a jquery plugin to achieve the validation: http://bassistance.de/jquery-plugins/jquery-plugin-validation/ The problem is only in Firefox (3.5....

Parsing XML with JQuery

I am querying the Microsoft Office SharePoint Server Search Service to write some results into a web part. I have the query working correctly but am having some trouble parsing the xml response via JQuery. Below is the XML response <ResponsePacket xmlns="urn:Microsoft.Search.Response"> <Response domain="QDomain"> <Range> <StartAt...

Problem using Uploadify plugin(JQuery) with ASP.Net

Hello guys... I have a Masterpage like that : ... <head id="Head1" runat="server"> <asp:ContentPlaceHolder ID="HeadContent" runat="server" /> </head> ... And in my Aspx page : ... <asp:Content ID="HeadContentFromPage" ContentPlaceHolderID="HeadContent" runat="server"> <link rel="Stylesheet" type="text/css" href="uploadify.cs...

jQuery Ajax submission problems

Hi, there is a strong possibility that I'm just being stupid here as this is my first attempt at using jQuery's ajax functionality so please bear with me. $(document).ready(function(){ $("input.update").click(function(){ var str = $(this).parent().serialize(); $(this).parent().parent().block({ message: "<span class=\"loading\"...

loop jquery object

I simply try to assign a background color to each div. it looks simple but it doesn't work. var divElements = $("div"); var colorArray =["444", "344", "345", "472", "837", "043", "345", "472", "837", "043"]; for (var i=0; i< divElements.length; i++){ divElements[i].css("background","#"+colorArray[i]) } I also tried to use jQuery's ea...

Jquery Onlick not happening second time

I'm a bit confused as to why this isn't working; I assume that because I'm adding the class and its not being added back into the collection I'm not sure. Here it is on a jsbin http://jsbin.com/ayije although code is below also. Either way I can only get the action to happen on an element once; <html> <head> <script src="http...

Div class cleared during Jquery effects?

I have a div that I want to apply a bounce effect to. It's class gives it some left padding to center it on the page. After examining what happens during the effect with Firebug, it seems that it adds an effect wrapper class and removes my original class. This causes the div to move from the center of the screen, to the left of the scre...

setting the selected option of a select tag with jquery

If my jquery function is as below: $('#shifts').change (function () { $.get('ajax/time_menus.php', { shift: $('#shifts').val() }, function(data) { $("#test").html( data ); }); And returns a array with two time values contained in an array of six values: [hours][minutes][ampm][hours][minutes][...

Fire async postback from jquery

Is there a way to fire a postback to the server through jQuery? I've tried just putting the postback signature in a .change method on a hiddenfield but it causes a full postback. ...

Getting dynamically created tags (jQuery) from ASP.NET

Hi, I have web page in ASP.NET. I have created Tree View control with jQuery. I drag items from the tree and drop into the div element. <div id="rows" runat="server" class="droppable"> </div> I add items to that div using .append function from jQuery. $(".droppable").append(event.originalTarget.innerHTML); It works like I want. ...