jquery

JQuery tablesorter conflicts with checkall toggle

I am trying to create a table that is sortable using JQuery tablesorter and also with a select all/none checkbox toggle for the individual row checkboxes. Tablesorter is disabling the toggle. On a similar post I read "tablesorter is destroying/recreating the original Dom element" - that said I'm still not sure how to fix it. My code i...

Is JavaScript multithreaded?

Here's my issue - I need to dynamically download several scripts using jQuery.getScript() and execute certain JavaScript code after all the scripts were loaded, so my plan was to do something like this: function GetScripts(scripts, callback) { var len = scripts.length for (var i in scripts) { jQuery.getScript(scripts[i], funct...

CSS: how to dynamically grow/shrink an HTML table column

I have a HTML like so: <table> <tr> <th>colA heading</th> <th>colb heading</th> </tr> <tr> <td>colA content</td> <td>colb content</td> </tr> <tr> <th>colC heading</th> <th>colD heading</th> </tr> <tr> <td>colC content</td> <td>colC content</td> </tr> </table> That products the following output: colA he...

passing url parameters to iframe, using jquery or javascript

After searching a lot over the internet I finally decided to post this question. I am using THICKBOX jquery tabs.When any of the tab is clicked I want to pass the URL.IDNUMBER to the iframe which on tab pages . I was able to send the IDNUMBER and display it in a text box by simply using jquery on the main page $("#mytest").val('IDNUMB...

jQuery element index

I have a table full of tabular data. I need to find the index of a column(cell) in the table. For example: <table> <tr> <td>Column1</td> <td>Column2</td> <td>Column3</td> </tr> <tr> <td>foo</td> <td>bar</td> <td>foobar</td> </tr> </table> function TestIndexOf(someTD) { $(someTD) // what's my column index? } ...

jquery: displaying image in top right corner

hello, i am pretty new to jquery and hope this is the right place to ask. my problem is the following. when i mouseover a certain element on a page, i want that a certain image is displayed in the top right corner of the page, no matter where the it is currently scrolled. how can i achieve that? thanks a lot! ...

Is there a good jQuery Drag-and-drop file upload plugin?

Is there a nice tidy jQuery plugin that allows including a single JS script then using a simple snippet to enable a form? Something like this: $j('#MyForm').enableDragDropUploads('.upload-area') With the upload target being the action of the form. Any solution must not prevent a regular file field from being usable (using traditional...

How can I access the children popup windows without knowing their handle names?

I'm trying to see which windows are being opened, but I dont know the window names as they are called. How can I access them in JAVASCRIPT/DOM/or JQUERY? Thanks! ...

Test for AJAX in mobile browsers

I'm building a mobile web application that may or may not rely on ajax, depending on whether the user's browser supports javascript. Since I'm using JQuery, I want to make sure the mobile browser supports AJAX through JQuery before enabling my AJAX functionality. I'm running into a problem with Opera Mini because of the way it renders ...

Can't write to dynamic iframe using jQuery

My goal is to dynamically create an iframe and write ad JavaScript into it using jQuery (e.g. Google AdSense script). My code works on Chrome, but fails intermittently in Firefox i.e. sometimes the ad script runs and renders the ad, and other times it doesn't. When it doesn't work, the script code itself shows up in the iframe. My guess...

Using multiple pagers in jQuery cycle plugin

Is it possible to have multiple pager elements for a slideshow using the cycle plugin for jQuery? For example, in this project, I need to have a pager above and below the slideshow. The code below works fine, but when I try to "clone" the nav (prev, next, and pager) using jQuery's clone() function, the pager will not work (although both ...

JavaScript test if date (in string format) is more than 30 days ago.

i have the date in a string format like so '11/2/2009' (m/d/yyyy) I need to test if that is greater than 30 days ago. Whats the easiest and least error-prone way to do this. ...

How do I handle a server side exception during an Ajax call from JQuery?

I am calling a Page Method from JQuery as described here: http://encosia.com/2008/05/29/using-jquery-to-directly-call-aspnet-ajax-page-methods/ This is all working fine. During testing I came across an error when my response from the Web Method was too large: Error during serialization or deserialization using the JSON JavaScriptSerial...

jQuery selector samba

This is my first post on stackoverflow, hello everyone! My first venture into jQuery animation is to have a set of images in two divs, top-half and bottom-half, and make them rotate through with a flip-down transition a-la the ancient alarm clocks with flip-down numbers. I've got the animation down, but the problem is having more than...

jQuery: find and replace cleaner syntax with jQuery? and advanced find/replace capabilities?

So i got this snippet of code: $(document).ready(function () { var replacementDoneIn = $("body").html(); var regExMatch = /premier(( {1,5}?)?co(mpany)?([ |\.])?)?/ig; var replaceWith = "Nikon"; var resultSet = replacementDoneIn.replace(regExMatch, replaceWith); $("body").html(resultSet); }); which is some what...

jquery not displaying chart in ajax div

Hello. I have a little page I've been working on. It's at: http://nait.jtlnet.com/~fpkj5v0r/programmer.php - and as you can see, a jquery chart shows up, like it's supposed to. Now here's the problem.. which has ended up taking up 6+ hours of my time... when I click a link (which uses ajax to load up a new page in the same div), and the...

xVal: How to get error message to show up underneath field rather than beside it?

Using xVal with Jquery validation and would like the error messages to be shown underneath the field rather than besides it. Is this possible? Also, is it possible to instruct xVal to simply show a "*" next to the field and then show the actual error message in a tooltip and/or summary above the form? Thanks ...

jQuery: how to return all elements that has been .data("tag","tagged") ?

$('*').data('tag', "tagged"); $('li[tag=tagged]').length returns zero... ...

How do I bind the Overlay Tool for new Ajax elements in Jquery?

Hi, I'm using: echo $javascript->link('tools.overlay-1.0.4', false); which is initialized with: $(".overlay_popup").overlay({ expose: '#000000', close: '.close_overlay', finish: { top: 'center', left: 'center', absolute: false } }); I call the overlay popup box like this: echo $html->link( ...

jquery how to wrap a table cell

I'd to add a wrapper around a row with jquery. I've made several attempts but am not able to. I'm only able via have a html template and filling in but doing orig.html() I lose any input selections values that were there. Original html <table><tbody> <tr id="myitem1"><td>I need a coat1</td></tr> <tr id="myitem2"><td>I need a co...