jquery

IE-specific problem with JQuery Form Plugin

My script utilizes BlockUI to load a modal upload form for images and then uses the JQuery Form Plugin to submit the data from this form. This works fine in Firefox and Chrome, however when I attempt to submit the form in Internet Explorer 7, I am prompted with a download dialog asking to save the PHP file that is calling this code. It...

Make sure first ajax function finishes before second one.

I have a JavaScript function that makes two consecutive Ajax requests using jQuery. I want to make sure that the first request has loaded before the second function is called. Is there a way I can do this? ...

How to edit a file's properties after is uploaded

I'm using the uploadify jquery plugin to upload multiple files. Everything works fine, but i want something a little more from the script. I want to add some more info to the uploaded files. How do I remove the default behavior of the onComplete option and instead of removing the file queue item from the list, to display a thumbnail of t...

Make sure ajax function finishes before 2nd non-ajax function fires

Similar to the question I just asked, If I call an ajax function in jQuery and then a non ajax function how can I prevent the non-ajax function from firing until after the first ajax callback function has completed. Will declaring async: false in the first ajax function be enough? ...

JSONPath :contains filter

Hey all, I was wondering if any knew of a way to use a regular expression or wildcard operator (or pehaps '%LIKE%' in SQL) so I could use JSONPath to do searching within a large set of JSON data. For instance (and yes, I'm parsing, not eval( )ing my data in the app): var obj = eval ( '({ "hey": "can you find me?" })' ); And I'd like ...

JQuery and PHP rate me script?

I found this rating script on [http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Rate_me:_Using_Ajax] and I cant seem to get it to work like in the example on http://jquery.bassistance.de/example-rateme.html when I click the rating nothing happens. How can I fix this problem? Here is the complete script below. <!DOCTYPE...

Pagination displaying elements as block - CSS Jquery

Hello, I am trying to implement a pagination with my content and allow the user to filter out results. Here is what I have created: Click Here The Problem: When filtering out content, for example taking out the colors black and green should display 4 results in total. However when doing this the pagination numbers do not update do to a...

How to create an empty jQuery result

I need to loop through an array and create a number of elements which I want to have in a single jQuery result object. for (var i = 0; i < 10; ++i) { $myJQueryObj = $myJQueryObj.add($("<span>blahblah</span>")); } The problem with this, however, is that you need a jQuery object to begin with, and you obviously want to start it empt...

Jquery code working in Chrome but not in Firefox

I have this piece of code that reveals a couple of divs when it is clicked and then they are hidden once another link is clicked. I'm trying to get this to show in Firefox and it may not be a problem in the js but all help is greatly appreciated. <script type="text/javascript"> $(document).ready(function(){ $('.fadein')....

jQuery Autocomplete with multiple inputs

I have an autocomplete field which I would like to augment by providing a drop down for categories as well, in the hopes that this makes it even easier to search on. This would take the category id from the drop down and then pass this in along with the search text to my server side Autocomplete Function. I am using the jQuery autocompl...

Editing draggable after it's added to a sortable

Hey, I'm trying to work out what event I need to bind to and what property I need to use to get a reference to the DOM element for the dropped item (That is the item in the receiving list. Here's what I have so far... <ul id="toolbox"> <li>A</li> <li>B</li> <li>C</li> </ul> <ul id="existing"> </ul> <script language="javascr...

Malsup's jQuery form plugins with file upload fail in Google Chrome

Hi, I have used Malsup's jQuery form plugins for a quite some times. The plugins working great and the file upload is working using hidden iframe technique. Yesterday I tried to use it in Google Chrome browser, but it failed. This morning I try the example in the http://malsup.com/jquery/form/#file-upload but I got the same failed resu...

Calling/Inserting functions before jQuery's document.ready

Hi all: I need to be able to insert or call a function before document.ready() is called in jQuery. I'm invoking the document.ready function from another file, which theoretically gives me control over when document.ready is called. Source file (.js): $(document).ready(function () { // some code... }); Technically, however, as ...

JQueryUI Tabs: OK to reuse DOM element ID's?

I am using JQueryUI tabs to display a number of lists. Each list is pulled in from an external file. While each list is unique, there is some common functionality between them - for example, the user is able to delete an item from each list. I use the currently selected tab to determine how to handle the page, like this: $("#tabs").tab...

How do I use Google autoload to load JQuery?

How do I use Google autoload functionality to automatically load JQuery? http://code.google.com/apis/ajax/documentation/autoloader-wizard.html Reading the documention, I thought the below would work but doesn't. <script type="text/javascript" src="http://www.google.com/jsapi?autoload={"modules":[{name:"maps",version:3,{name:"maps",ver...

grab element id - jquery

Hello, I am looking for a way in which I can grab an element id from my page like this: <div id="events"> <div id="event_1765" class="type_automotive start_125x125 color_Black"> <h3>Leftlane News</h3> </div> </div> I would like to get the id="events" but I need it in this script where the events is: $("input.t...

Populate 1 form field based on another

Hi There, Is there an easy way to populate one form field with duplicate content from another form field? Maybe using jQuery or javascript? Thanks, Jack ...

How to give style to list item only if item has another <ul> inside otherwise style should not apply?

How to give style to list item only if item has another list inside otherwise style should not apply? using css only. See example here http://jsbin.com/udora I want to remove arrows from all other items except "Articles" and "Pitching Past the 7th Inning" I realized it's not possible with css any working jquery solution with demo? ...

How to implement a calendar like google's with jQuery?

It should provide ease to add event to the calendar. When I click on the cell,should let me edit the notes. EDIT I've looked through many calendars but none of them meet the requirement that it should let the user add notes easily! ...

Why is Google autoload loading more than what I'm telling it too?

I want to autoload Google Maps 3, JQuery core (1.3.2) and JQuery UI (1.7.2). So I am using the following URL: http://www.google.com/jsapi?autoload={ "modules":[ {name:"maps",version:3,other_params:"sensor=false"}, {"name":"jquery","version":"1.3.2"}, {"name":"jqueryui","version":"1.7.2"} ]} However, if you go to that URL, it appears t...