jquery

JQuery .each function

I have a bunch of images on my ASP.NET page like so: for (int i = 0; i < 3; i++) { Image image = new Image(); image.ID = "UpdateStatus"; image.CssClass = "imageCss"; image.ImageUrl = "Bump.GIF"; this.Controls.Add(image); } I want to loop through each image. Why does this not work? i.e. "Function 1" is outputted bu...

How can you move the cursor to the last position of a textarea in Javascript?

I have a textarea and a button on a form. The textarea may already have some text in it. I would like the cursor to move to the last position in the text area when the button is clicked. Is this possible? ...

How to build a tree control with JSON and jQuery

I have a web page on which I would like to display dynamically a tree based on a JSON array with the help of jQuery. Each node of my tree has a checkbox associated to it. When I click a node which has children, I would like all of them to be checked. I’ve already taken care of printing the tree and the checkboxes and I am now trying to s...

Evaluating ajax data forcefully as XML in jquery.

$.ajax({ type: "GET", url: "something.html", dataType: "xml", success:function(data){} , }); The content while accessing "something.html" is an XML but the above call is failed where if I use "something.xml" it is working fine. Is it possible to make jQuery to forcefully evaluate the data as XML, without worrying ab...

how i can replace style with new one using jquery

i am inserting below css using jquery into head tag but problem is everytime i change the color using user interface it add another style tang and than css how can i remove already added and replace with new css please help. <style charset="utf-8" type="text/css">div.contentMid2{background:#000;}div.module{background:#fff;}</style> wa...

How do I Select all text boxes in a table excluding the last one in the table row with JQuery.

I want add a key up event to every text box element in a table excluding the last text box in each row. The table is dynamic on both axis. The key up event will total the values in all but the last text box. The total is then placed in the last text box for the row. The script for the totaling and setting the total all works fine. I...

jQuery - how can I find the element with a certain id??

Hi everyone! I have a table and each of its td has a unique id that corresponds to some time intervals (0800 til 0830... 0830 til 0900 and so on). And I have an input text where the user will type the time intervals the they want to block. And if they type an interval that doesn't exist in my table, in other words, if they type an inter...

Replace http:// in anchor portion of links using Jquery

Hi, on a page there a several links of: <a class="linked" href="http://link1.com&gt;http://link1.com&lt;/a&gt; <a class="linked" href="http://link2.com&gt;http://link2.com&lt;/a&gt; How would one remove the second http:// in each link so it can't be seen on the screen. I've tried this to no avail: $(document).ready(function() { $(...

Why is it that my cookie is not getting deleted/unset?

I have a login link that fires a javascript function that calls a logout page. This is what the logout page consists of: If Response.Cookies.Count > 0 Then Response.Cookies("aLog").Value = Nothing Response.Cookies.Clear() End If Originally I just had cookies.clear in there, but that wasn't working. Here is the javascript th...

Need help handling multiple jquery $.get calls at once

Hi. I'm new here and I'm very stuck. I need help. Hopefully someone can tell me there's a very simple solution to my problem Smile I have a site where you can click links and open the relevant content in a "window" so to speak. It's all from the same domain. Anyways, my problem occurs when you click on lets say... 5 links very fast. Wha...

Background-color hex to JavaScript variable (jQuery)

I'm kind of new to JavaScript and jQuery and now I'm facing a problem: I need to post some data to PHP and one bit of the data needs to be the background color hex of div X. jQuery has the css("background-color") function and with it I can get RGB value of the background into a JavaScript variable. The CSS function seems to return a s...

jQuery not working in ASP 2.0 page - Visual Web Developer 2008 Express

JQuery is not working in ASP 2.0 pages which were developed under VS 2005 and now doing Javascript in it using Visual Web Developer 2008 Express. I have included the jquery file. I have also installed all patches required. JQuery intellisense works fine in the IDE, but no jquery command is running. btw, the page renders fine from the ser...

call server function from jquery dialog

Currently I'm using jQuery on my asp.net content page (using master). I am creating a modal dialog using jquery. The div that is defined with the following code <div id="example" class="flora" title="Information" style="display:none; visibility:hidden; text-align:left;"> <asp:Panel ID="Panel" runat="server"> Is the...

Tile scrolling / preloading (Google Maps style) of HTML layers with Ajax

I am looking to replicate the panning (not necessarily the zooming) effect of the Google Maps API, but without the images. Essentially, I want to position HTML elements in a large coordinate system and be able to navigate around them, Prezi style (though without the rotation). Preferably, I'd like to preload the elements dynamically thr...

How to disable all div content

I was under the assumption that if I disabled a div, all content got disabled too. However, the content is grayed but I can still interact with it. Is there a way to do that? (disable a div and get all content disabled also) ...

"too much recursion" error in JQuery 1.3.2

I am trying to make a form with some dynamic behavior. Specifically, I have my inputs in divs, and I would like to make it so when the user clicks anywhere in the div, the input is selected. I was using JQuery 1.2.6 and everything worked fine. However, I upgraded to JQuery 1.3.2 and I am getting some strange behavior. When I click on an...

jQuery Function Question

Hello, I have a question concerning functions with jQuery. I have a function that once the browser is ready the function finds a specific table and then adds hover & click functionality to it. I am trying to call this function from code behind in an asp .net page due to the fact that once someone adds to the database the update panel ...

How to make a dropdownlist disabled on change event using JQUERY ?

$(document).ready(function() { $('#<%=ddlContinents.ClientID %>').change(function() { var element = $(this); var totalLength = element.children().length; if ($(this).disabled == false) { $(this).disabled = true; } }); }); What I am trying to do is fire off the change event of the dropdownlist and on chan...

What are my options to get all the necessary data using javascript and/or jQuery for the following scenario?

I'm not sure how to best word this, so I'll give it a shot and hopefully revise it as it comes to me. Using javascript/jQuery, let's say I want to get some data from a clicked element to a function for processing. A couple of options: OPTION 1: $('.classOfInterest').click(function() { // How can I get 'a' and 'b'? var c = $...

JqueryUI show highlighting wrong cell

I'm using Jquery to add a row to the end of a table, that works fine. I want to use the JqueryUI highlight method to highlight the row whenit gets added. It works, but its not highlighting the new row, but the one above it. I'm guessing this is because i'm using the .after function to add the new row. How can I make it highlight the righ...