jquery

jQuery UI autocomplete on multiple rows created with .clone() method

Hello, I'm almost new to jQuery... I found some tutorials/posts explaining 1. how to clone a table row (useful for inserting invoice details): http://forum.jquery.com/topic/validate-will-not-submit-to-server 2. how to use the jQuery UI autocomplete with PHP and MySQL (useful for retrieving products from a db table and avoid typing everyt...

Why do I need this Callback function in order to work properly?

Hello - I'm working through a jQuery image slider tutorial and I lost them at the point where they put a Callback function on the .animate() option - the callback is the removeClass. Why do I need it? If I take the callback function out, the slider stops working. function slideSwitch() { var $active = $('#slideshow IMG.active'); ...

jquery dialog box debugging with firebug

once jQuery dialog box comes up, none of the breakpoints work in firebug. any ideas? ...

jquery random rotate

I have a div with a bunch of images (20) and i like a little rotation on some let say +-2dg i have try that with no success... all image are rotated equally /* By default, we tilt all our images -2 degrees */ #gallery2 img { -webkit-transform: rotate(-2deg); -moz-transform: rotate(-2deg); } /* Rotate all even images 2 degr...

Javascript - Extract text from a page then build an array with it

I have a table of data that I want to grab text from, stick into an array (and then use with Google maps). The table looks like: <table> <thead> <tr> <th>One</th> <th>Two</th> </tr> </thead> <tr class='bar'> <td class='name'>Bob</td> <td class='number'>12345</td> </tr> <tr class='bar'> <td clas...

jQuery Slideshow + Click to Enlarge (LightBox and ColorBox)

Hello! The Question: I would like to use the slide-show I currently have in place BUT with the option of clicking the image to enlarge. Enlarge would use a lightbox (you know, all fancy pants style) Here is the page I am working with as an example: http://newsite.702wedding.com/valley-of-fire-weddings.aspx The slide-show is on the ri...

jQuery: Using a Time Delay in an Each Iterator?

I'm trying to create a carousel effect that automatically cycles through each pictures every 3 seconds. $(".headline_img").each(function(intIndex){ setTimeout($(this).show(),3000); }); The timeout delay is not working. This shows all of the images instantly as soon as the dom loads. It's like its ignoring the setTimeo...

"queing" non-animating properties: attr

UPDATE: alright so I see that I can just include each attr replacement within the function of the timer. That means I do that five times; once for each graphic. But, is there a cleaner way to do this? Thanks ok, so I have five different images I want to replace the src for. However, I want each one sequential.. replace the first, then t...

Jquery - Customizing the colorbox plugin

I'm using the colorbox plugin for modal popups. It's working nicely, but there's a main thing about it that seems wrong. I have a form that pops up, and on submitting (or clicking a link) in the form, this might open another "colorbox" modal. It works smoothly, but there's one thing that bothers me. As it is, colorbox seems to wait unt...

jquery post to PhishTank

I am new to jQuery and have been trying to query the PhishTank API and in Firebug it returns the url in red and nothing was returned from PhishTank. The code I used is below. $(document).ready(function() { $.post("http://checkurl.phishtank.com/checkurl/", { url: "http://google.com" }, alert(data)); }); ...

Is there a good way to validate jQuery code?

I am a bonifide jQuery novice and I have some jquery code that I have pieced together, but I keep getting an error when the page loads. Problem is I am not sure if I have all the curly brackets and parenthesis closed properly and would really appreciate another set of eyes on this: $(document).ready(function() { $('#slideshow').cycl...

JQuery ajax can't find elements in returned HTML

I have a simple $.ajax({ url: someUrl, method: 'get', dataType: 'html', success: function(data) { $('#someId').append($(data)); } }); The problem is I can't find elements simply within the returned data. If there's an input with id="myInput" I can't get it with $('#myInput') or $('input[id=myInput]'). I...

jQuery ui autocomplete - .ui-autocomplete-loading

I'd like to apply this css to the search box while it is fetching the XML file. Currently it takes ~3 seconds to load this file. I see in the autocomplete.js file these two functions: _search: function( value ) { this.term = this.element .addClass( "ui-autocomplete-loading" ) // always save the actual value, not...

How do I make a jQuery script work on Grails??

How do I make a jQuery function work with Grails?? I installed the jQuery plugin and added grails.views.javascript.library="jquery" at the end of conf/Config.groovy And when I trigger the function I get an error saying Object Expected I checked the code and is fine, you can check it out here: http://www.jsfiddle.net/dCy6f/ When I wr...

Items unclickable/selectable/focusable in IE after being hidden/shown with jQuery

I have a set of tabbed divs that I am hiding and showing with jQuery hide() and show(), this works great in all browsers except IE where the tabbed elements that have been hidden, when shown, are not clickable as links, or focusable/selectable as form select, text field, etc. Has anybody had experience with this? Is there some sort of r...

Text Editor(ckeditor) not working inside my DIV box

Hi I have a div box that opens on my page and then loads a html file which contains CKeditor to deal with the text area. The problem is that if I view the html file in my browser everything works well and I have all the editing options. When I use it in my JS script I get nothing. Can anyone help me please ? The JS code that does this ...

Sorting jQuery Interactions of Multiple Instances, Each With Unique IDs

Hello. I'm expanding on what used to be a pretty simple jQuery accordion script, and I've made it so that multiple accordions can be placed on the page, each with its own unique ID. The trouble is, any interaction with the accordion functionality (expanding one of the panels while collapsing all others, or using the expand/collapse all ...

Draggable, resizable and movable iframe

I can't find any draggable, resizable and movable iframe on the web. Can anybody help? jQuery would be better. ...

jQuery .attr() and value

I want to make the following use .attr(); selectbox.options[selectbox.selectedIndex].value sadly, selectbox.options[selectbox.selectedIndex].attr("value") is not the same, and seems to defeat the purpose of the .attr altogether. My main question is: How should one use nested .attr()s? Muchos gracias mi amigos ...

Get HttpRequest with a Web Method ASP.NET

I have a page web method, and I need to get access to the headers, and particularly the uploaded files. Is this possible? Can a web method receive a file? If not, what would you recommend to upload files without post back? I am using the jQuery forms library that has support for this (and I have had it working with Django), however, I a...