[jQuery] Ajax call not working for Firefox/Mac only
I've got a page that uses Ajax to submit the contents of a feedback form without refreshing the page. It all works fine with IE7 and Firefox on Windows but not with at least one user's Firefox on Mac platform. The web server is IIS6. The code I'm using is contained in a script file referenced in the <head> tag and looks like this: $(function() { //trigger ajax on submit $('#feedbackform').submit( function(){ //hide the form $('#feedbackform').hide(); //show the loading bar $('.loader').append($('.bar'));
[jQuery] jQuery validation and error messages
I don't really know where to start on this, but I need to take a form like: <input name="username" type="text" id="username" /> input description And put an icon [the error label] next to input on success or fail; but also change the 's text on success or fail. So a fail would change the message to whatever the message was, and on success it would return it back to it's normal text. Or to make it more simple, how can I change the 's text but return it back to its default on success?
[jQuery] Strange formatting error (FF3 and jQuery)
I see a formatting error in Firefox 3.5.3 when I include jQuery 1.3.2 on a page even though I have not added any JavaScript of my own. A paragraph element that is placed after an image is not honoring the margin-top CSS parameter. The HTML and CSS are valid, and if I remove the jQuery library, the margin-top works properly. I can adjust the CSS a couple different ways to avoid the problem, but those changes are not desirable (they don't provide the same result). It seems like something in the jQuery
[jQuery] each function not iterating
Hi! I have this code: $("form.uplform").live('submit', function(){ if($(this).attr('validate')=='true'){ $("#testform>input").each(function(){ alert($(this).attr('name')); }); } return false; }); What I'm trying to achieve is alert all the name attributes of all input boxes belonging to form.uploform but this does not seem to happen. although i did get past if validate==true thing.. Please tell
[jQuery] jQuery selector return parent
Is there anyway to write a custom filter which returns the parent nodes of the selector? ie) div.someClass:parentNode or ancestor: div.someClass would return the parent element of div.someClass. I know you can use .parent() in jQuery, but am using Selenium RC and am limited to using selector functionality in the code. Thanks
[jQuery] Cycle plugin issue in Safari & Chrome
Hi. I have two Cycle slideshows on this page. The first shows exactly as expected. The second drops the bottom of the background image when the slides change. This happens in Webkit browsers (or at least Safari and Chrome) only. Any ideas why/ http://staging.pixelluxe.com/tt/child.html
[jQuery] Jquery Corner IE issues
Hi there, When using Jquery Corner in Firefox & Safari it works like a charm, but in IE 7 & 8 I only get four ugly black corners... How can I solve this: http://www.cornelisdehoutman.nl/futureisnow
[jQuery] Can I access/change a variable in a plugin?
Hi, so, I have a pretty basic plugin, and I'm trying to access a variable that's set when the plugin is initialized. I'd also like to change that variable on the fly. Is it possible? (function($) { $.fn.plugin = function(options){ // default settings var settings = { marginLeft : 10, identifier : 'om', xidentifier : 'omx', height : 200, width : 200 } //extending options options = options || {};
[jQuery] Browser refresh
How can I catch with Jquery a user refreshing the page with his browser? Thank you!
Adding Jquery Tooltip to an asp:hyperlink inside a gridview
So i am pretty new to jquery and am loving it so far but i am not sure how to tackle this issue. Right now i have a link in a gridview that displays in a tool tip more detailed information about that product. I would like to use the jquery tool tip as it looks much better, but i cant get anything to work, my guess is because the hyperlink is wrapped in the gridview the jquery function call cant find it. Here is an example of some of the code i am trying to get to work where tabs1 is the div wrapping
[jQuery] JQuery cloned elements new class isn't recognized.
Hey. I have two functions show after the message. The first works fine. When a checkbox is clicked with the class availableProfile, its class is removed, selectedProfile added. It is then appended to anotehr list and destroyed in the original. However when i click the now moved checkbox it doesn't recognize it has the new class of selectedProfile. $(".availableProfile").click(function(event) { elementID = event.target.id; elementGroup = elementID.split("__"); $(this).removeClass("availableProfile");
[jQuery] $("option:selected", this).first(function(){})
Hello, I am trying to extract value of a dropdown on select and use it in a function. Jquery has .each method to loop over matches, but I just need the first match. I could use each and break loop after first run, but there must be a better way.. $("#venue").change(function(){ $("option:selected", this).each(function(){ .... return false; }); }); Can I use something like this? $("option:selected", this).first(function(){ });
[jQuery] Callback not firing
Hello Guys, I'm sure that I'm doing something blatantly wrong here but I can't spot what's wrong. I've got the following code snippet. http://pastebin.com/m71102c16 Now, when calling the method change_testimonial() I get the log entry in the console as expected however the callback to show_new_testimonial () after the fade out occurs doesn't appear to get fired. Can anyone offer any suggestions? I know that the show_new_testimonial () method works when called independently so I'm guessing this is
Ajax and php sessions
Hallo all, I'm facing some trouble when trying to load one php page with jquery's load() method. Not sure how load() works, but I assume it uses ajax. The problem is, that in page page1.php (for example), I set a value in the session: if(!isset($_SESSION['step']) || $_SESSION['step']==""){ $_SESSION['step'] = "step1"; include("steps/step1.php"); } <script type="text/javascript"> $('#container').load('steps/step2.php'); </script> Now in page step2.php I change $_SESSION['step'] = "step2"; But it seems
[jQuery] [validate] - JQuery - multiple submit buttons
Hi all, I'm currently working on a form with JQuery and the validation plugin. This works great. I do have 1 little problem, i have 2 submit buttons on there: "Temporarily save" & "Continue process" the first button should just submit the form to the server, and NOT validate anything. The second button should use the fields (like required etc.) and validate as I normally do. I do that like this (from the tutorial): <script type="text/javascript"> $(document).ready(function() { $("#commentForm").validate();
[jQuery] hide browser toolbars using jQuery
Using window.open I can achieve this, however, from what I understand window.open is normally used for popups. What I want is the first time the user opens their browser and points to my site, they should see my site with no toolbars. Is it possible to do this jQuery?
[jQuery] printArea problem in Chrome and another in FF
Hi folks, has anyone faced a problem that in Chorme when printing certain element using printArea Plugin, whole page is being printed? e.g.: $('#invoice').printArea(); - it prints whole page, not the element alone Also in FF, when printing element there is report in Firebug with "writeDoc.close()" Thanks Radovan -- View this message in context: http://www.nabble.com/printArea-problem-in-Chrome-and-another-in-FF-tp25999074s27240p25999074.html Sent from the jQuery General Discussion mailing list archive
[jQuery] Jquery onload complete like function
I wonder if there´s some function that execute when all the elements of the form are loaded, some like an onload complete function where i could excecute some actions... Any help will be very appreciate.
[jQuery] JQuery Move Element to a New parent
Hey. Essentially I have two lists one id with available one id with selected. When you click on an element within the available (a checkbox) it executes a function $(".availableProfile").click(function(event) { elementID = event.target.id; elementGroup = elementID.split("__"); $(this).removeClass("availableProfile"); $(this).addClass("selectedProfile"); newBox = "<li>" + $(this).parent().html() + "</li>"; $(this).parent().remove()
[jQuery] jquery dragabble copy item (not only helper clone visual copy)
Hi, i want to use jquert dragabble , but i want to copy item. that mean, i want to drag item and then drop to another place. So, i will have now two items. Can you help me ?
[jQuery] hover menu - jquery
Hi, I am using this jquery sliding menu.Its working on onclick event.I wanted to make it to a mouseover/mouseout.This is the orginal script. Original = http://www.webresourcesdepot.com/sliding-top-menu-with-jquery/ topMenuAction = this is the click button openCloseIdentifier= this is the content or the DIV <script type="text/javascript"> $(document).ready(function() { $(".topMenuAction").mouseover( function() { if ($("#openCloseIdentifier").is(":hidden")) { $("#slider").animate({ marginTop: "-210px"
[jQuery] jquery.form.js -> multiple simultaneous ajax form submissions
I have a page with the following properties: Several non-form input elements (a text field, a few buttons). There is an "add file" and a "remove file" button. Whenever the "add file" is clicked, new_file_count is incremented and a form is created (ID: "nc-" + new_file_count, NAME: "ncform", enctype: "multipart/form-data"). Whenever "remove file" is clicked, the last form is removed, and new_file_count is decrimented. Each form has a hidden submit element named "NEW_SUBMIT". There is also a text field
[jQuery] Add an inlcude css from an iframe to a parent.
Hallo all. I need to add an include css from an iframe to a parent as described in the title. Is it possible via jQuery? Kind regards Massimo
[jQuery] Using google CDN for jQuery causing problems
Using the minified version, pointed by the link http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js , I am not able to use jQuery. Looking at the source file, seems the script file is messed up. The link http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js work fine jitu
[jQuery] In a table, I add a new row(<tr> string append to the table), It can not action some even.
I am very newer to JQuery, beg U pardon. While, in every table row I have two link button : <td> <a href="#" class="up">Up</a> <a href="#" class="down">Down</a> </td> And I click "up" the table row <tr> will move up, the "down" is same move down. But, I add a row into table use append string to table, like following: $("#btn_add").click(function(){ $("#myTable tbody").append("<tr><td>5Five</td><td>Five<input type='text' name='tb_class'></td><td>Five</td><td><a href='#' class='up'>Up</a> =<a
[jQuery] (validate) preclude, deny, disallow or prohibit URLs from submitting
Hi all sorry - I can't figure this out and I'm a little thick. I'm using the great validation plug-in from bassistance and would like to use it to stop a form submitting contents of a *required* comment field when a URL is present in there. [Getting spam links submitted to a contact from] I've previously managed to hack the plugin to allow spaces and a leading "+" for phone numbers but this is beyond me as I'm not trying to extend but rather invert the function. ? I've been trying for two hours and
[jQuery] Can someone tell me how to debug this?
Here are two files ( one html and one .php file). I'm trying to get backend.php to send text to the .html file but nothing happens. Does anyone know what is wrong with this or how to debug it? thanks, Bob here is the html file: ------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Collecting Data...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/
Multi drag and drop/sortable
Hi, I am looking for a multi drag and drop and multi sortable feature . I should be able to sort elements in ListA supporting multiple elements at a time in List A and drag multiple elements from ListA to ListB. Please suggest me how to do in jQuery and show demo site if available thanks in advance, sri..
[jQuery] jQuery Validation - ajax check for email
Hi, This is my first attempt at using addMethod and it's always returning true, for some reason. This is placed outside of document.ready jQuery.validator.addMethod("checkemail", function(email) { var email = $('#email').val(); $.post("user/checkemail", { "email" : email }, function(data){ if(data.exists == "1") { return true; } }, "json" ); }, 'This email already has already been registered'); and
[jQuery] Unable to parse XML in iframe with IE
Howdy! In my app, I have a file upload form that submits to an iframe, with the server returning an XML document. Though I am able to consume this XML using jQuery in Firefox 3.5 and Chrome 4 without issue, the same code fails in Internet Explorer 8. The relevant snippet of my code follows: $('iframe#destination').load(function() { var response = $(this).contents(); console.log(response.find('mediaurl').text()); }); IE 8 doesn't produce an error, but simply fails to locate the element, even when
[jQuery] convert single digit day to double digit day
Hello, I am wondering if someone can share a good clean way of converting a single digit day to a double digit day. For example, I have date1 = 5 and I want that to be 05. Thanks in advance Peter
[jQuery] each function not iterating
Hi! Sorry to flood please disregard my previous attemp to post for this same issue. This is the real post. I have this code within the ready function: $("form.uplform").live('submit', function(){ if($(this).attr('validate')=='true'){ $("#testform>input").each(function(){ alert($(this).attr('name')); }); } return false; }); I want to be able to alert all the names of the input boxes belonging to
[jQuery] jQuery Animate
Hi All, Just wanted to share this link: http://blog.freelancer-id.com/index.php/2009/10/12/jquery-animate-advanced thanks.
Script modification - slide to fade
Hello I am trying to alter the default transition of this script: http://www.gcmingati.net/wordpress/wp-c ... lugin.html It currently slides between images, but I would like to fade between images. This is the call: <script type="text/javascript"> $(window).bind("load", function() { $("div#mygalone").slideView({ easeFunc: "easeInOutBack", easeTime: 1200 }); }); </script> Modifying the "easeInOutBack" using the easing methods seems only to change the ease method, still using a slide.
.get() function
Hi, I have no idea why this would function correctly under every browser but IE8. I'm using the $.get function to execute a php script onload. Here's the code <header> <script type = "text/javascript" src = "exactlocation/jquery-1.3.2.js"></script> </header> <script type = "text/javascript"> window.onLoad = $.get("exactlocation/mod_flexbanner_AJAX.php",{id : "1"}); </script> The script itself is a simple mysql update query and given that this issue only effect one browser, it's clearly a issue on
[jQuery] Accordion Menu and active link
hi, i use the followig accordion menu: function initMenu() { $('#submenu ul').hide(); //$('#submenu ul:first').show(); $('#submenu li a').click( function() { var checkElement = $(this).next(); if((checkElement.is('ul')) && (checkElement.is(':visible'))) { return false; } if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { $('#submenu ul:visible').slideUp('normal'); checkElement.slideDown('normal'); return false; } } ); } $(document).ready(function() { initMenu(); }); now, when a link
[jQuery] Problem with slide toggle
Hi, I was practicing some examples , on click of a button a calendar slidesdown dynamically, but whenever I am clicking some content on the calendar its geting posted back and its dissapearing, my code is as follows <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>JQuery Collapse</title> <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function()
[jQuery] Tablesorter default order information
Hallo all. I'm using the tablesorter 2.0 plugin and I found it marvellous. I have a question about the sorting algorithm. Imagine that i got a table with 2 columns with text content: column A and column B When i first order column A I click on the header and the content is sorted in ascending order from A to Z; then I click on column B and the content is sorted in ascending order from A to Z; now I click again on column A and the content is sorted in descending order from Z to A. I imagine that this
[jQuery] Order of Cycle plugin's addSlide function
I've been using the cycle plugin a lot lately (thanks a tonne, malsup!). I'm trying to write a wrapper plugin for the Cycle plugin that will allow me preload (more accurately, queue load) images for a banner slideshow. I've run into an issue with the cycle.addSlide function... it seems to be adding my slides out of order. Has anybody run into this before? Some more details on what I'm trying to do: Each image is loaded individually, and once loaded they are added to the DOM via cycle.addSlide. I've
[jQuery] [autocomplete]
Great plugin. Very flexible and easy to implement. I'm not sure if this is a bug or I'm doing something wrong but here goes. My list of items are: Grenada, St Georges France, Nuits Saint-Georges Canada, Georgetown Georgia, Tbilisi is set to default and the cacheLength is at default too. Now, I am trying to find the "Canada, Georgetown" entry. so I start typing "geo" and it shows me that whole list. when I pause and type "r", it shows me "Georgia, Tbilisi" and not the rest when I just type "geor",
Next Page