jquery

How does jQuery handle the click event?

I am new to jQuery and cannot get a selector to work using the id of the element. The code below works: $(function() { /* $("#ShowBox").onclick = ShowAccessible; */ document.getElementById("ShowBox").onclick = ShowAccessible; /* $(".searchcheck").click = ShowAccessible; */ }); function ShowAccessible() { $("tr.hide")...

How to rotate image with jQuery like 'Free Transform' in Photoshop?

Hi all, I've searched everywhere but can't find how to rotate(degree) with image border or something like 'resizable' in jQuery. What I mean is something like 'Free Transform' border in Photoshop which has 4 place to rotate at each corner of image. Thanks all in advance. ...

Replace any (.) periods with escape backslashes so I can select elements

I have some elements with (.) periods in them and I need to select them but I need some escape characters to do so I believe. How can I sure that my string that may have a period in it will be escaped properly. Something like this I guess? var title = "User1.Title"; var string = //replace any periods with escape sequence? $('#'+string)...

Learning Javascript vs. jQuery

I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my boss came along and said that why bother, learn jQuery. Can I understand jQuery and work with it although I am a newbie and have limited knowledge in ASP.net, vb.net, some C#, and basic HTML?! ...

Create editable new rows to a table

I'm trying to add details to a database by using ajax and table dynamic rows. e.g. ---- {Customer: dropdown menu} | {Description: textarea} | delete Add New Customer --- When the user clicks it shows the drop down menu of all available customers. when you click away it just shows the select customer name (not the dropdown menu) ...

Running javascript when adding it to the page's Html

I have content on a webpage which is both sent from the server at page load, and updated frequently via AJAX. When it is loaded initally, I use $( function () {} ) to do binding and updating based on the news from the server. I want to be able to also run the code when it is repopulated, in particular to rebind click events and update ...

What is wrong with WITH statement in JavaScript?

I seem to remember there is a problem with WITH. I don’t miss it; I prefer each line of my code to stand on its own. I started wondering about this when I learned (at SO) that people consider chaining one of their favorite features of jQuery. JavaScript’s WITH and jQuery’s chaining is, basically, the same feature, right? ...

Problem to have access to jquery plugin inside $(document).ready() with django-debug-toolbar

Hi, I wrote my own jquery plugin and was amazing that I haven't access to it inside $(document).ready function. I write this testpage and was amazing more: /** * jQuery anchor plugin */ (function($) { $.anchor = { hashTrim: /^.*#/, } })(jQuery); console.log($.ajax); console.lo...

jQuery: Making simultaneous ajax requests, is it possible?

I am using jQuery to try and retrieve multiple pieces of data at the same time. The background of the requirement is that different bits of data take various lengths of time to become available, so I want to display each piece as it is returned. The problem is that the requests seem to 'queue', the next request does not go until the pre...

using jquery.getJson with Google's GeoCoding HTTP Service

Google offers a wonderful REST interface for geocoding and reverse geocoding an address. My API key is valid, and if I enter the request directly into the browser address it works great. However, the following jquery fails terrible and I'm failing to see why. Hoping you could help me out here. $.getJSON("http://maps.google.com/maps/geo?...

jQuery + Ubiquity: Return a document object from a URL

I'm trying to write a simple Ubiquity command that will run a query on Wolfram Alpha, and display the results in the Ubiquity preview object. I need to set the innerHTML of the preview object. I am currently doing this to get the HTML, which is only a start: //... jQuery.get( 'http://www.wolframalpha.com/input/?i=' + input.text, ...

jQuery traversing problem

I have a potentially infinitely nested tree of ol > li given an li in the tree, i need to apply some function to all other lis below the given li, except within the current ol. As an example: for example: <ol> <li> Do not apply to me <ol> <li>Do not apply to me</li> <li>Do not apply to me</l...

ASP.NET/Jquery: document ready in update panel?

I have the following user-control: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="FadingMessage.ascx.cs" Inherits="includes_FadingMessage" %> <asp:PlaceHolder Visible="false" runat="server" ID="plhMain"> <span id="<%= this.ClientID+"_panel" %>" style="background-color:yellow; padding:10px;"> <b><%= Message %></b> </span> <...

Fire event each time a DropDownList item is selected with jQuery

I have a dropdown: <asp:DropDownList id="dropdownid" runat="server" class=blah"/> in my jQuery, I assign change event like this: $('#dropdownid').change(function() {......}); Now, this works when I select different value from the dropdown, however let's say I want to select the same value again. (because I want to make another call w...

Mozilla Jetpack: multiline notifications?

I just started playing around with Mozilla Jetpack, and I love it so far. I wrote a little code that displays an icon in the statusbar that, when clicked, brings up a notification: var myTitle = 'Hello World!'; var line1 = 'I am the very model of a modern Major-General,'; var line2 = 'I\'ve information vegetable, animal, and mineral,';...

Form submit (email) with ASP.net and jQuery not working

I'm trying to figure this out, but I'm not having much luck. Basically, I have a wizard style HTML form that's built using the jQuery form wizard plugin, which includes the jQuery.Form, jQuery.Validation and jQuery.History plugins. I'm trying to use ASP.net Web Forms to submit an email, but I can't seem to make it work at all. here's ...

How to store data on a page and retrieve it through JQuery?

Hi all, I have an array of data that I'll echo to a page using PHP, and I want JQuery to be able to parse it. However, I don't want the data necessarily visible to the user. I have, for example: <div id="data-1"> <span id="width">5</span> <span id="height">10</span> <span id="depth">15</span> </div> <div id="data-2"> <s...

JQuery: Access original jquery object within each

I'm trying to implement HTML radio button behaviour on a set of DIVs in JQuery. I want to remove the "set" class from all the elements then use addClass() to re-set the (one) element that is clicked: $(".button").each(function() { $(this).click(function(){ // what goes here to call removeClass() on *all* the elements? $(this)....

How can I convert this working JAVASCRIPT code to JQUERY

<script language="javascript" type="text/javascript"> function hasPasswordChanged(value) { if(value == '1') { var container = document.getElementById("sNav"); if(document.getElementsByTagName) { var hyperLinkList = container.getElementsByTagName("a"); ...

Javascript transcript system

Can someone recommend a opensource tool that can create transcripts of videos? Even a good Javascript framework on which I can quickly build this system will be helpful. It ideally needs to have three input fields for (text of subtitle, start and end). You can see one in action here http://yt-subs.appspot.com/help?first=1 (The Synchroniz...