jquery

jquery load to download the content first

Hello, this is a strange case, I have a jquery script that works with load() and a PHP script with a gif loader until this script is retrieved FADING IN, this jquery is launched on click The problem is that the jquery script is kinda useless for its real intent because this php script I call returns something like <img src="resizer.php...

JQuery Toggle Button

I'm new to JQuery, so please bear with me =) I have a "Menu" button that should "slide down" a menu. My problem is that the menu is visible from the start, I want it to be hidden at first and then when clicking on the "Menu" button, should the menu "slide down" and then "slide up" again after pressing the "Menu" button again. My HTML:...

How can i make the jQuery slider only slide when draging the handlers?

The thing is, I'm trying to use a multiple handlers slide like jQuery example, but I what to be able to drag the part between the handlers. Is this even possible? Thx jQuery example: http://jqueryui.com/demos/slider/range.html ...

Adding table column dividers without distorting column data?

Is there an easy way to create vertical dividers between HTML table columns? I want to add thick bars, but the only good way I've seen to do this is to distort table data add TD's. Is there a way to add vertical dividers between columns of a table using only jQuery+CSS? My table structure is pretty simple. <table> <thead><tr><th>...</...

Way to detect broken images in javascript?

I need to be able to detect if an image is broken and replace with a default image if the image link is broken. I know i could do this with an image proxy, but was hoping to do it on the fly with javascript. ...

jQuery .html() not updating?

I'm doing a vehicle search on our site, you select the make and ajax loads the models and populates a select box. The problem is that I can't get the select box to update with the options. I've tried both jQuery('> .model', container).replaceWith(html); and select.html(html); and neither will work. The HTML is like this... <div class...

Jquery/Ajax and PHP rendering TR

I am scraping sites, and I am doing this one at a time, and then trying to get the results to display AS I get them. I am trying to render one TR at a time, but instead, it does every single one, and then renders ALL the TRs. Here is the call to javascript: <body onload="getOffers(companies , {$scraped}, {$isbn13});"> Here is the JS/...

Having many JQuery Toggle buttons on the same page.

I just realized another problem with my so called "solution" =) My JS Code: <script type="text/javascript"> $(function() { function runEffect(){ var selectedEffect = $('#slide').val(); var options = {}; if(selectedEffect == 'scale'){ options = {percent: 0}; } else if(selecte...

Adding a fadeIn effect

I have this code, and I'm trying to add a fadeIn once the content.replace is fired. I've tried quite a few ways, and can't seem to find the magic bullet. function add_fields(link, association, content) { var new_id = new Date().getTime(); var regexp = new RegExp("new_" + association, "g") $(link).parent().before( content.repl...

jstree - adding child nodes which themselves contain children

I have some code in which I need the ability to add child nodes to a jstree which themselves contain children. The below code adds a 'child2' node correctly to 'child1' but ignores the child3 data. Any help much appreciated. Code follows: <html> <head> <script type="text/javascript" src="http://static.jstree.com/v.1.0rc2/jquery.js"&gt;&...

jQuery delegate problem

This is my first question on SO, so if it seems beyond dumb, please take it easy on me. I have a page with a list of pictures with links for deletion underneath them and with possibility to add more pictures. After each one of this events (that does a #user_gallery load like below, I have to click twice the delete link for it to work. W...

How to make a slider stop when video is playing?

I have this website which has a slider in the middle of the page. I put a video in the slider but the problem is when I play the video I need the slider to stop its effect so the video can play. Any ideas how to make this happen. Here is the website it is on. http://flamingoroadchurch.com.previewdns.com/ ...

jQuery BlockUI Plugin - How to set a callback function when I need to unlock the BlockUI

Hello all, I am working on the jQuery BlockUI Plugin and I like to adopt the style illustrated for iPhoto (ish) http://malsup.com/jquery/block/#demos. I have designed the jQuery Form that will be submitted through aJax. Here is what I would like to do: 1> After the user clicks the submit button to fire up the form to server, I pop-up ...

How to find out if ipad is in landscape/portrait mode in javascript/jquery?

I want to add an extra div if the ipad is in landscape mode. Is there some sort of if statement that could find this out? Thanks ...

Edit serverside files in JS.

Hello guys, i am making some script for some personal use. Now i tend to keep my CD collection list in a html file which has some sleek design, but i am tired of editing the list by "hand" and that means that i don't want to edit the code everytime i add new CD. So is there a way that i can use JS or JQuery so i could add/read from a loc...

Image slider; stop at last image

Hi, I'm only a beginner with Javascript & jQuery. I am trying to create my own image slider however I cannot figure out how to get it to stop at the last image. Can anyone help me out? Here is the code so far: // Javascript Document $(document).ready(function(){ var slides = $(".slides"); var numberOfSlides = slides.length; va...

Set div scrollbar to specific position

Hello, I am using this javascript (Super Table) to transform my table in a div to freeze the top header and left column. The scrollable area has columns with textboxes that corrospond to a specific month and year. I would like to have the horizontal scroll position to match the current month and year. I create the table programmatically...

Any way to make div scroll in ipad?

I have tried so many different things and I keep searching but I find nothing! Help anyone? ...

dayclick on fullcalendar

Is there a way I can get the day I click to show? For example, on the calendar, if I click on the 9th, my input would show that date, if I click on the 10th, that date will show, etc. ...

jQuery if statement for finding element ID

I have a group of tabs that have hidden content which display when the tab is clicked. The jQuery looks like this: jQuery(document).ready(function($){ var sections = $('.section').hide(); $('.tablink').click(function(e){ e.preventDefault(); sections.hide(); $($(this).attr('href')).show(); $(this).clos...