jquery

Webkit and jQuery draggable jumping

Hi, As an experiment, I created a few div's and rotated them using CSS3. .items { position: absolute; cursor: pointer; background: #FFC400; -moz-box-shadow: 0px 0px 2px #E39900; -webkit-box-shadow: 1px 1px 2px #E39900; box-shadow: 0px 0px 2px #E39900; -moz-border-radius: 2px...

How can I get the corresponding table header (th) from a table cell (td)?

Given the following table, how would I get the corresponding table header for each td element? <table> <thead> <tr> <th id="name">Name</th> <th id="address">Address</th> </tr> </thead> <tbody> <tr> <td>Bob</td> <td>1 High Street</td> </tr> ...

Firefox Bug With Paste + Dynamically Resized Textbox

I am having an issue with FF (surprisingly, IE works) with pasting into a dynamically-resized textbox (using a text shadow). http://pastebin.com/ZzbQdSh7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <t...

How to use loop action in Jquery?

I am developing a CRUD application using DWR & Jquery. I want to display the table records from database. I want to put a loop to do that. While searching for that, i ve came across each() method in Jquery. I cant get its exact concept. Any idea, or solution?? ...

How do i handle the event for Hyperlink generated Dynamically

I have a table which displays the Dynamic rows from server side script .Each rows conatins various values and the first row value contains the link such as "Show/Hide" when we click on "show" it shows the sub rows and when clicked on "hide" it hides the rows. Now the "Show/hide" is dynamic is such way their id is .where $i is dynami...

Is there a javascript (jquery) library for updating html form controls from cgi parameters?

Our site has some very complicated form controls that are submitted and then show up again on the results page in case users want to resubmit the form from the results page. Currently, this requires a lot of if-then statements to preset the form controls to what was submitted. I'm wondering if there is a library (preferably jquery) t...

jQuery .before() re-executing javascript

I have a piece of code that is using .before() and the code it is moving has inline javascript which .before() re-executes. Is there a way to prevent .before() form re-executing javascript code? ...

How do I keep FireFox from “spinning” with a long-polling request?

I'm using the following for a long-polling request (this is a plugin similar to getJSON)... $.jsonp({ "url": url, "data": { "settings", settings }, "success": function(userProfile) { // handle user profile here }, "error": function(d,msg) { alert("Could not find user "+userId); } }); The request won't ...

jQuery - Change part of contents in form

Just starting out with jQuery and this problem seems to be impossible to me. Search all the forums, no luck. Maybe you guys can help me? My html looks kinda like this: <form> <table class="tableClassName"> [content] </table> <div class="divClassName"> [content] </div> Here is some text <div class="divClassNam...

jQuery: how do I have two date pickers?

On my site, I want to have a date range thing, so I figured I'd use two date pickers from http://jqueryui.com/demos/datepicker/ currently, both date pickers edit the same field... which makes me sad. $j(function() { $j(".date-range-start .date-picker input").datepicker({ //showOtherMonths: true, changeYear: true, ...

Using multiple jQuery selectors to filter

I am trying to add the jQueryUI datepicker on a certain group of datefields, but exclude fields whose id ends in -0 Here is my code: $(function() { $("input[id^='TOEFLtestDate-']").not([id$='-0']).datepicker({ onClose: function(dateText, inst){ GenericDateUpdate(this.id, dateText,1); ...

jQuery to Toggle a form in a div, prevent hiding when clicking on inputs

Sorry if this has been asked, I am not sure how to best word it so I couldn't find a result on Google. I currently have a div #divForm with some text and a table that has a form inside. I currently have it so when you click on the div it toggles to show the table: $("#divForm").live('click', function () { $(this).attr('cla...

jQuery focusin and focusout live events are not firing

jQuery Version: 1.4.1 I am attempting to write a simple watermark type plugin and I want to take advantage of live events since not all of the elements I need to use it on will exist during the page load, or they may be added and removed from the DOM. However, for some reason the events never fire. Here is the not working code: ; (...

How to check if css box-shadow is supported (jQuery)?

Hello I'm creating a layout in full css. However, some browser (such as IE6) do not support box-shadow (.. and -webkit-box-shadow or -moz-box-shadow). I would like to check if it's not supported and then add other styles. How's this possible in jQuery? Martti Laine ...

The Edit button is not working, Please help how to make the Edit button to edit the values.

<html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function(){ $(".pane:even").addClass("alt"); $(".pane .btn-delete").click(function(){ alert("This Row w...

Changing site to Anonymous Access causing minor jQuery problems

I have a simple ASP.Net 3.5 site that is essentially of the master/detail variety. A master page shows a GridView of database records, and clicking on Edit for a given row brings up an edit form with a DetailsView. Pretty standard stuff. Now, I have the GridView in an UpdatePanel, and launch the edit form with a jQuery FancyBox. After sa...

Do jQuery functions return a value like Javascript? How?

In Javascript we can declare a variable and we can call a function. The function will return a value and will be assigned to the variable. Is this possible in jQuery? I want to know if my previous function is finished or not. I want to get the result success or failure and call another function based on first function's result I use a ...

Highcharts => Getting the id of a point when clicking on a line chart

Hey all ! I am building a line chart and I would like, when I click on a point of the line, to display a popup containing some data about this point. The issue I try to resolve is to get the id, the series associated with this point or something like that. Here is my code : plotOptions: { column: { pointWidth: 20 }...

Plain old query string with jquery-address

Hi, i'm implementing deep linking for my website. I wonder, why jquery-address is unable just to set a query string, like this: www.mywebsite.com?search=keyword When i using $.address.parameter("search", "keyword") jquery-address sets follwing url: www.mywebsite.com?search#/?keyword Why, it doing so ? I just need the plain ol...

How to fire existing "onclick" event on a "a href" element using JQuery?

So the page is broken down some sections and each section has a 'a' tag. When clicking on the link it fires the 'onclick' event which calls a javascript function. I am adding a link at the top of the page that when you click on the link it will call a JQuery function .click that will call all the 'a' tag 'onclick' events. Is this pos...