jquery

how to fix iframe load never terminating the browser visual spinner and 'Transfer ...' status

I have pages loading json into hidden iframes from javascript. The Firefox browser seems to never acknowledge fully receiving the iframe content, and reports 'Transferring data from ...' on the status line, and shows the twirly 'busy' icon on the tab, indefinitely. I am using jQuery to bind the 'load' handlers, and would prefer a sol...

Does refreshing mysql query by jQuery ajax crashs the database?

Hello I'm using jQuery .ajax function to load php page with a mysql query in it that selects data from the database, but my question is: Does refreshing mysql query by jQuery ajax crashs or tiring the database? Info: Refreshing by 1 second using setInterval(). Edited: This the queries that I use to refresh them. SELECT * FROM table1 ...

Rails Ajax Hide/Show Toggle Link using RJS

Hello, I want users to be able to comment on submissions. Below each submission I want there to be a link that says "Comments (2)"...when you click on this link it dynamically loads in the comments, as well as a simple form to add a new comment. When the user submits a new comment I want it to load asynchronously in at the bottom of the...

How to call javascript function inside an adjacent iframe

I have an html page where I have this layout essentially: <html> <body> <!-- iFrame A --> <iframe></iframe> <!-- iFrame B --> <iframe></iframe> </body> </html> In IFRAME "B", I'd like to call a js function in IFRAME "A", which will ultimately change the window.location property and redirect the page. I have jquery at my disposal as ...

CSS Slide to new width

Let's say by using jQuery I can set the width of a DIV doing this: $('#perc_in').width("14%"); then I make it do this: $('#perc_in').width("57%"); Is there a way I can make it so instead of going from 14 to 57 I can make it SLIDE the progress bar from 14 to 57 percent? It's a simple div around another div with the percent being the...

Custom search function for jQuery UI Autocomplete

I'm using jQuery UI Autocomplete. Is there a way to override its default search algorithm? The changes I want to make are: Prioritize words that start with the search term at the top of the suggested results. Return a maximum of 5 results (instead of the default behavior, which is to return all matching results, potentially creating ...

jquery load() and SEO - anyone got a decent answer?

Many aspects of my site are dynamic. I am using jquery. I have a div which once the DOM is ready is populated using load(). Then if a button is clicked, using load() once again, this value is replaced by another value. This kind of setup is common across my site. My homepage is essentially lots of dynamically loaded, refreshed, and ch...

jQuery function string

This isn't working: function checkIt(String rep) { if (counter[$(rep).val()] == undefined) { count++; result = Math.round((count * 100 )/howMany); $('.percent').text(result); $('#perc_in').animate({'width': result+'%'}, 500); counter[$(this).val()] = 1; $('#counter').text(re...

jQuery and If Statement Not Matching Because of Multiple Classes

I have DOM elements I'd like to exclude from a .click function by adding a class "noEdit" the problem I'm having is some of these elements have multiple classes ie: <td class="firstCol noEdit"> // <-- wont work <td class="noEdit"> // <-- works fine And the jQuery: $('td').click( function(){ if($(this).attr('class') != "noEdit"){ ...

single ajax Calendar extender for mutiple textbox and image controls?

I looking single ajax calendar extender for multiple text boxes and (calendar) image controls? how can we do that? I found below good article on textboxes (not calendar images) controls. Please help me to get this with image controls also link text ...

How do i render and show another page when user hovers over the link?

Hello, I have one link. I want that when user hovers over the link, one page should get rendered which contains all <img> tag and should show it in one box (tooltip type). How can i do this? Thanks in advance:) ...

jquery start animation when timer runs out

I am trying to run some code that will start a particular animation when my timer stops, but I am stuck on trying to get it started. Code: if($('#popup_msg').length) { var timer = 0; $('#popup_msg').bind({ mouseenter: function() { timer = 0; console.log(timer); }, mouseleave: function(){ timer += 100; conso...

Open Fancybox (or equiv) from form imput with a href

Hello all. Attempting to open a Fancybox once a form is submitted. I am also trying to do an ajax call to a php script ... don't exactly know where to put that in. Here is the code. If anyone has any ideas I would really appreciate it. As you can probably tell I have no idea what I am doing with AjaxForm. <!DOCTYPE html PUBLIC "-//W3C...

How do I pass an extra parameter to Jquery Autocomplete field?

Hi, I'm using the JQuery Autocomplete in one of my forms. The basic form selects products from my database. This works great, but I'd like to further develop so that only products shipped from a certain zipcode are returned. I've got the backend script figured out. I just need to work out the best way to pass the zipcode to this script...

jQuery html response

Hello, Is it possible to determine if a response returned by $.ajax was served from the browser's cache or was fresh? Thanks. ...

How can i delete using ajax?

Hello, I have a image gallery inside a <div> which contains 10 photos. How can i delete them using ajax? I want one cross sign to appear at the top right corner of each photo and when user clicks on it, the image should get deleted. And the whole <div> should get refreshed. I do know working with jquery ajax. But is there any plugin ava...

internet explorer problem with a javascript page

I have made a page The url here It works fine in ff/chrome But the whole login form and reg form are not displayed in ie and the shout box is not working in ie... Any help Thanks Pradyut India ...

How/Where can I read a value to tell when my Google Maps API V3 map has completed rendering?

I have a Google Map that is created using the newer Google Maps API V3 from a Perl script. The script builds the map from values passed to it from hidden form fields in the parent page, and returns the map into an iframe in the same parent page. The reason that the map is in the iframe, is because I have discovered browser issues both w...

Modify JQuery easyTooltip to detect screen edges

I'm using the following JQuery script to create hovering tooltips, the problem is if the tooltip gets close to the edge of the screen it doens't flip or snap to the edge. (function($) { $.fn.easyTooltip = function(options){ var defaults = { // default configuration properties xOffset: 10, yOffset: 25, ...

How to delay a function inside a jQuery-ui slider event

I have several jQuery-ui range sliders on a page which add and remove rows in a table and show their values above the sliders, live as the sliders are slid. the function showData has to check and update every table row before it's done and the slide event doesn't seem to execute anything until the showData function has returned. This tab...