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")...
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.
...
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)...
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?!
...
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)
...
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 ...
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?
...
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...
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...
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?...
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,
...
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...
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>
<...
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...
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,';...
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 ...
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...
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)....
<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");
...
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...