Here's the code I'm using:
function load(toLoad, area){
$(area).html('<img src="images/ajax-loader.gif" alt="Loading" class="center" />');
loadContent();
function loadContent() {
$(area).load(toLoad,'',sorter())
};
function sorter() {
alert('s');
$("#myTable").tablesorter({
widgets: ['zebra']
...
Look at this code for example
$div = $('#my div');
$ul = $('#somewhere ul');
How can I perform a jQuery method on both of them? For example, would this work? What is best practice here?
$($div, $ul).addClass('my-new-class');
Wouldn't that search $div under a context of $ul ?
Thank you
...
I'm using the Galleria plugin inside an Accordion plugin to display images in a super cool way. A problem occurs, however, when I open up a new tab (in the accordion) then come back to the gallery tab. This is causing the galleria to be reinitialized which makes it fail.
I was wondering if there's a way to __deconstruct() a plugin so it...
I have a simple table and draggable div on this table's cells. How can I get the element dragged div stopped on.
I need to do this without droppable plugin. Because there are a lot of cell and droppable cause performance decrease.
Any help would be appreciated.
...
I am using this http://fancybox.net/
Is there a way to add a property to not show the close "X" button on
top right? I mean I can use 'callbackOnShow' to hide it in a hide()
but that is not fast enough. I want it NOT rendered out instead of
rendered then hide.
...
I am using this http://fancybox.net/
I have 2 DIVs: 1st open and 2nd hidden
In the first FancyBox, I want to run several things in callbackOnShow
and then once done, it closes and opens the second hidden Fancybox.
However I used $('a#div-2').trigger('click'); and it is not working.
It seems that the FancyBox trigger won't allow within ...
I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll().
Here is what I used with scrollTo:
$('#scroller').scrollTo('1000px', 3000);
My question is, how do I do this same thing with serialScroll? I can't get it to work the same way as scrollTo, isn't that what it is su...
This may be more of a scoping question. I'm trying to set a JSON object within a $.getJSON function, but I need to be able to use that object outside of the callback.
var jsonIssues = {}; // declare json variable
$.getJSON("url", function(data) {
jsonIssues = data.Issues;
});
// jsonIssues not accessible here
A similar question...
I have a block of code that scrolls the page up via a animate jQuery thing, but to increase usability, if the user disturbs the scrolling motion in any way (e.g. scrolling wheel, grabbing the scrollbar, etc.) then it will immediately stop the motion.
I asked a question on this a week ago here but after some testers kindly tried out the ...
I am using jQuery and the jQuery Validation plugin to validate inputs. Below is the code. Now there are many inputs named like question1, question2, question3, question4,... How can I place validation on them? I mean how to select them all together?
$(document).ready(function() {
$("#item").validate({
rules: {
ti...
I'm working in an ASP.NET MVC application. In that I need to save records(example: Name, Email, comments) using Json request. I don't have any form tag and submit button on my page. So I'm calling Javascript method on button click event to save my records asynchronously. I'm not able to use jQuery's validate plugin. Is there any jquery c...
I've just put the jQuery UI dialog into a web page. It's the first time I've used it. I thought I had set the bgiframe property correctly but when I check it in IE6 it's still slipping behind dropdownlists. Here's my javascript code. There's nothing flash on the page. A simple div with the text in and an anchor around some text for the '...
Hey guys, I have written this code from the ground up using jQuery (first real jQuery project), and so far, I have some toggle animation. My code looks like this:
HTML
<div id="content">
<div class="featured-img one">
<img src="media/desktopography.png" alt="Desktopography"/>
</div><!-- end .featured-img -->
<div c...
Exact duplicate of How to select elements like question1, question2, question3,… in JQuery form validation plug-in?
<input type="text" name="question1" />
<input type="text" name="question2" />
<input type="text" name="question3" />
<input type="text" name="question4" />
$(document).ready(function() {
$("#item").validate({
...
Hello, I have a basic Generic List that I want turned into XML so I can return it to jquery. What I am trying to do is update my comments section in my article directory. I am returning an array of comment text, comment id, and user name. I would like to turn all of this into an array. Thanks
if (CommentFunctions.AddComment(aid, l.GetUs...
How can you handle errors in a getJSON call? Im trying to reference a cross-domain script service using jsonp, how do you register an error method?
...
I am using Jquery form validation plug-in to validate inputs within a form before submitting, there are some input elements which are named as "question1”, "question2", "question3",..., they are dynamically generated. So how to validate these input elements within the Jquery plugin function validate()? I need a means to select them first...
For all our AJAX programming we tend to use JQuery.
I would like to know if there is a way to enable Intellisense functionality in Dreamweaver CS3 and Delphi4PHP to work with JQuery and its plugins?
...
Hi,
I have a form with a time_select and a jquery datepicker,
I want to be able when I submit the form to merge the values of the time_Select and the datepicker into one datetime of my ActiveRecord model ...
Is there an elegant way to do that ?
Should I do it client or server side ... I'd like to keep my action as simple as that :
d...
I am using this http://fancybox.net/
When I do
$('a.#div1').trigger('click')
to popup a fancybox, it gives me this error (using Firebug)
opts.itemArray[opts.itemCurrent] is undefined
if (opts.itemArray[opts.itemCurren...[opts.itemCurrent].title.length > 0) {\r\n
jquery.f...-1.2.1.js (line 345)
Why is that? Can you help?
Thanks.
...