jquery

jQuery Tools: Expose... API Problem

I am trying to use jQuery Tools EXPOSE function. I have successfully implement the overlay tool as well as its API object (so I can call api.close()). I think I am having a problem with the initializing line and the proper object is not being passed to my API variable. You can see the error listed below in the comments. http://cdn.jquer...

Prevent Galleriffic jquery plugin from reloading the same image twice

Is it possible to prevent the Gallerific plugin from reloading the same image that’s already showing? For instance, if a user clicks on the same thumbnail twice, the gallery image reloads. Can Galleriffic determine that the user is requesting the same image twice and thus should not reload until a new image is requested? ...

problems with jQuery load() method

I'm just starting with jQuery, and having trouble doing something embarrassingly simple: using .load() to insert external HTML into a main page. Here's the main page: <html> <head> <script src="js/jquery-latest.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> $...

javascript syntax and jQuery source

Possible Duplicate: For the function (function($){})(), Ive seen it with the word jQuery in it, why is that? Can someone explain the following syntax that is used in the jQuery source files? I am learning jQuery and trying to dive into writing a jquery.ui.widget. (function ($) { ... code ... } (jQuery)); While I am usin...

IE doesnt add HTML to the dom using $.append or $.html()

I have a div that I'm trying to add html to. When I use a small html string it works, but when I try to add large html string nothing happens. $("div") .html (data ) // about 1kB of html content $("div" ) .html() // it return empty If I do the same with a little html code like <p></p> it works. Any suggestions? I am using Internet...

Custom(ish) jQuery accordion menu buggy in IE7

Hi, I have an accordion style menu which seems to be working fine in IE8, Firefox and Chrome (although it probably isn't as smooth as it could be), but in IE7 or IE8 Compatibility mode, it seems to be totally erratic, and I'm at a loss as to what the problem is. Can anyone offer any pointers? The site is here Thanks in advance for any h...

jQuery Custom Autocomplete load with jQuery Validate

It may sound like a very minor issue. I have a voting system with many text fields where survey taker enters the name. Each of the input box has been initialized with autocomplete. There's also jQuery Validates running on the form where I have to use .addMethod to validates them dynamically base on the sibling input fields. The follo...

How to check if an appended <img /> src attribute is relative or absolute using jQuery & IE7?

I have a website that includes code: <html> <head> </head> <body> <div id="wrap"> <img id="img_1" src="images/sample.gif" alt="Image 1" width="200" height="40" /> </div> </body> </html> I have this JavaScript and jQuery: $(document).ready(function(){ $('#wrap').append('<img id="img_2" src="images/sample_2.gif" alt...

Using jquery with spring framework

I don't have much experience using jquery but I want a rich UI from my application, which is built on spring framework. I am the only developer working on this project and want to know if there is any possibility of using Jquery like GWT ( write once, run every where). Please letme know if there are any issues in using Jquery and Spring ...

jQuery get function return true/false

$(document).ready(function(){ //global vars var name = $("#username"); var email = $("#email"); function usernameExists() { $.get("register.php",{ check: 1, username: name.val(), email: email.val() } ,function(m) { if(m==1) { return false; } else { return true; } }); } }); Firebug shows the right ...

make background image to link.

i am using this jquery iviewer i want to link these image thumble to another link. can i use image map for this or any other way to make image thumble to link. these are really add with full image. ...

Delete multiple Div's from a modal confirmation based on which div triggered the function

I have several Div's that appear and would like each one to have a "delete" button on it. When a user clicks on the delete I have a modal come up with 2 choices, either confirm the delete or cancel. THE QUESTION is: How can I adapt my code below so that only the parent div that I've selected to trigger the modal get's deleted? An array...

storing a dynamic array of values inside an object looped within a for statement

I am looking to create a set of dynamically created arrays stored inside an object. the outcome would be something similar to this... object.array0.length = 5, object.array1.length = 4, etc the name of the array would be generated from within a for loop based on a numerical value declared elsewhere in the application. Here is the co...

Show/Hide div on click using jQuery

I've got 4 divs and on click of the navigation I want to show one of them and hide the others. I have it working but I feel its not as smooth as I know it could be, its definitely my code that needs to be refactored! Heres what I have. $('#details-speakers').click(function() { $('#home').slideUp('slow', function() {}); $('#sess...

How to pause a function in javascript until a CONDITION is met, not until a defined limit in millisecond is set!

hello everybody, this is urgent and i couldn't find a solution to it. The problem is as follow: i am designing a web app, which sends multiple commands to multiple machines. Now some of the commands i have require additional input. i have designed a pop up window in jquery that ask user to add this additional input. the problem is while...

does jquery has a ajax function similar to Prototype's Ajax.periodcalUpdater?

need to update html page periodically by the data from server, but couldn't find a Jquery ajax function to do that, any suggestion? Thanks. ...

Circulating a carousel with jQuery Tools

Hi all! Using jQuery 1.4.2 and jQuery Tools package I am trying to create a nice autoscrolling sponsor image scrollable (carousel). The problem is not to get the carousel move forward every now and then, but to circulate (start over). It is no big deal when I want to move a bunch of pictures together, it becomes difficult when it progre...

jqueryFileTree and monitoring clicks on folders. trying to use jqueryFileTree and uploadify together

I am using this jquery plugin: jqueryFileTree availbale at http://abeautifulsite.net/blog/2008/03/jquery-file-tree/ I have managed to integrate it in my page but now I want to monitor whenever a user clicks on a folder, an input should contain the value representing the folder's path. I need this to be done so to pass it to the uploadif...

How to get element by href in jquery?

i want to get an element by it href attribute in jquery or javascript, is that posible?? thanks! ...

Method to fill forms across many sites - jQuery?

Hi all, After working in good ole' c++ all day, I like to have a few javascript/jQuery side projects that are purely for fun. One of most intriguing things about jQuery is the ease of filling forms. All you need is a selector and the .val() method and you are golden. However, what would be the most efficient way to fill forms across mul...