Live mysql database querying to show number of rows
Basically i have a form with jqueryui implemented (autocompletes) and I need the form to display the number of current results as the user fills the form, i.e. once the user has finished inputting data into one field, the form will query the database with the current form details and return just the number of results ($mysql_num_rows) Does anyone know a solution to this?
How to sum numbers
How to sum numbers for example: 29.90 and 10.20? It should be 40.10 but jquery returns 40.099999999999994 My code: var sum = Number(var1) + Number(var2);
Mouse location for Rollover
I have some simple rollover code here where I take the rel of an anchor and show the corresponding html ID. I would like to set the location of the appearance of the tooltip using jquery. So, basically I want to secure the mouse location and append it to the CSS. How do I do this? $('.toolTip').hover( function() { this.tip = this.rel; var tooltipID = "#" + this.rel; $(tooltipID).fadeIn(300); }, function() { $('.tooltip').fadeOut(300); } ); Many
Problem hiding a div
I'm new to jQuery and I'm having a problem hiding a <div> element. I have a form that has a table with numerous lines in it, collecting the input. When I open up this form I want to be able to hide several lines before it is displayed depending on a parameter that has been set previously. Some of the lines are already within a div and I added a new div wrapped around the lines I wanted to hide and gave it a unique id. To test it out I assumed the parameter had been set (I can deal with this part
Problem with upgrading 1.2.6
Hello, I've got a "little" problem I'm not able to solve. I'm using a slider-gallery script (http://jqueryfordesigners.com/slider-gallery/) which uses the jquery-1.2.6.js . The problem is, this script only works with the 1.2.6. version. I've tested it with other jquery versions (1.3.1 , 1.4.1, and so on) but no one is working? Why? I can't understand. I searched already in this forum and in google to solve this problem but could'nt find anything. Just this (http://forum.jquery.com/topic/problem-upgrading-from-1-2-6-to-1-4).
Passing Var to a dailog
I have a question if someone can please help me and show me how to do this. I have a web page that is in php. when someone clicks on a <span></span> elem, I need to passed a var to a jQuery dialog box that will then access a database to get information to be displayed. Can this be done and how can I do it.
Thumb hover slide plugin?
I've got a client who quite likes gallery's with main image and thumbnails below. The last project I did for him he requested that the thumbs slide right or left to show those hidden based on mouse position. A smooth transition as opposed to buttons. I happily complied. My issue is that my version is jerky (not smooth), the speed is linear and not as robust as it could be (doesn't work well or at all in certain IE versions). I've tried searching for a plugin, but I think I'm not using the correct
The object doesn't support... on IE
Hello, I'm creating and adapting a basic script that will display thumbnails of selected videos from YouTube (I'm using this plugin). $(document).ready(function() { url = $('.videoDiv p:first').text(); var vd = $.jYoutube(url); /* return the thumbnail URL */ $('.videoDiv').append('<a href="'+ url +'"><img src="background.png" id="img"/></a>'); $('#img').css('background', 'url('+ vd +')'); }); The problem is that the line 03 return on IE: Object doesn't support
nivo slider and lava lamp not working for me
I'm kind of new at this.... with that said, I'm trying to get the nivo slider to work with my lavalamp menu. I'm using these in a wordpress theme, and I tried to include jquery the "right way" <?php wp_enqueue_script("jquery"); ?> but couldn't get the menu and the slideshow to work. I would get one working, but not the other. I've uploaded all the latest scripts to the server, and still can't get it to work. Can anyone help? i would love to load the scripts properly, I'm just not sure what to do
Best way to detect change in textbox and send typing/not typing 4 ajax
Hello, I've already developed a system for doing this which isn't perfect i'm wondering if there is a better solution. Here is the code I got atm. $(".chatmsg").live("blur", function(event) { stopTyping(); }); $(".chatmsg").live("focus", function() { if($(".chatmsg").val().length > 0) { typing(); } }); $(".chatmsg").live("keypress keydown", function(event) { var key = event.keyCode;
clone method causing Stack Overflow in IE under jQuery 1.4.2 (but not jQuery 1.3.2)
I have an application that is showing a stack overflow error in IE when moved from jQuery 1.3.2 to jQuery 1.4.2. The error occurs when calling the clone() method, passing in true to clone events with the element. I'm guessing that this is related to the change in 1.4 to clone data as well as events when passing in true to the clone() method. Is anyone familiar with this error and how I might be able to mitigate it? Thanks, Brian Dukes
Problem with fadeIn (or toggle) on .click
I'm using jquery in my IPB forum and i had no problem at all using jQuery.noConflit But now i'm having issues with e fadeIn function I have a <a> element, id='fadein' and a div, named 'network' which comes with a display:none attribute. My idea was to call the fadeIn function when pressing the <a> element, so my function is <script> jQuery.noConflict(); jQuery('#fadein').click(function() { $('#network').fadeIn('slow', function() { // Animation complete }); }); </script> and
Issues with $.post() please help,
I have 2 db tables: manufacturers (id, manufacturer_name) madels (id, model_name, manufacturer_id) I want to give the option to delete items in the DB. But when they delete a manufacturer I want to run an alert saying "Deleting this Manufacturer will also remove their models" so I don't have unassociated data in my models table. Makes sense right? To note, please ignore any general syntax and spelling errors that my have occurred in writing this. The code works great except for the single issue,
Using toggle to call a function continuously until toggled again
I have been trying to get a function to run continuously with with toggle function. Here is the snippet of code: $('#infinite').toggle(function() { $(this).css({"color":"red"}); infiniteloop(); }, function (){ $(this).css({"color":"black"}); } ); The above code should run after the first time the button is clicked, once it is clicked again the function should
Escape characters prior to using Selector
I'm trying to escape characters within a selector as follows: var findString = "[value='" + str.replace(/([ #;&,.%+*~\':"!^$[\]()=>|\/])/g,'\\$1') + "']"; someElement.find(findString); When str contains an apostrophe (for example, str=John's), the find fails with the following error in Firefox uncaught exception: Syntax error, unrecognized expression: value='John\'s'] I've seen a few post surrounding this issue, but the fix seems to escape the characters as I have done. Any thoughts on why this isn't
Accordion style function not working with jQuery 1.4.2 but works with jQuery 1.2.1
I have a table display that uses an accordion like function to hide sub info in the table due to the length of the overall table. I built it using v1.2.1 and it worked fine. However I have also implemented another function elsewhere in the site that requires v1.4.+ and because of this the accordion or expanding table doesn't function properly. The initial display is showing all of the rows of data, not what I want. When you click the parent row it will then hide the info, but you can't click a second
Could you find out some fault?
Could you find out some fault in the codes as below? Anyway I can't see the correct effect now. <head> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script> $(document).ready(function({$("p").html("<strong>abcdefg</strong>")}) </script> </head>
.attr and value of undefined attributes
I have a suggestion based on the assumption, which I think is correct but feel free to prove me wrong, that the .attr() method returns "undefined" in two different cases: 1) when the attribute is actually not present in the dom element 2) when it is present but it has no value, think for example <input type="text" disabled/> which I not is not standard HTML but I've seen it pretty often... wouldn't it be better to return undefined only in the first case, and return null in the second case? In this
fadein fadeout HEEELP!!
Please someone help me, because I'm not sure what I am doing wrong. I have quadruple checked my code, but am still a relative newbie. My intention is that when I press the button, my image will simply fade out. Sounds easy right? Here is my code: <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery.js"> $(document).ready(function() { $("#fadeout").click(function () { $("#Div1").fadeOut("normal"); }); }); </script> </head> <body> <div id="Div1"><img
("input:checked").each(function()
I recently got help with this http://forum.jquery.com/topic/var-label-label-for-str-html Thanks again! Now, I would like to loop throw each checked box and get its label. I'm not really sure where to begin here
Generate jsdoc for jquery functions
Hi, I´m new with Jquery and the forum. I have the JS file with jquery functions and I don´t know how generate jsdoc, I guess the structure does not accept for jsdoc and perlAction. anyone help me ? tks
nested form element selection
I am experiencing a problem that I have not been able to resolve with research. Using a group of nested form elements (IE. <input id="txt[0][amount]">, <input id="txt[1][amount]">). I am not able to come up with a method of selecting and assigning a bind event to anything matching the specified group of input elements $j('input[name*=txt\\[*\\]\\[amount\\]]').bind('blur', function() { // operations }); Is this possible? Any help is definitely appreciated.
Slide In Carousel Plugin?
Hi all I am looking for a plugin which does the following 2 things: 1) User clicks an arrow on the website and a menu slides in from the edge of the screen display x number of square images 2) The menu consists of hyperlinked images but the images are in a carousel, so the user can keep clicking 'next'/ 'previous' to move the carousel on one image at a time Has anyone seen anything like this that I ca use? Any advice would be greatly appreciated Kind regards Doug
skip the form validation to specific controls
Hi, I want to validate my forms when clicking only on submit button. Here is my code. $(document).ready(function() { $("#<%=btnSubmit.ClientID %>").click(function(){ $("#form1").validate({ rules: { <%=txtFirstName.UniqueID %>: { required: true }, <%=txtEmail.UniqueID %>: { required: true, email:true
IE7 does it all wrong - why?
I've created a slideshow with hover items. Works fine in Chrome, FF but not in IE7. The slideshow normally goes to the next item and so forth however in IE7 is doubles it. Where did I make a mistake? Live example: http://www.pauwert.nl/index.php?option=com_content&view=category&layout=blog&id=11&Itemid=24 Jquery script is in the page source or below: $jquery('ul.show_pictures li').filter(':not(:first)').hide().end().filter(':first').addClass('showing'); $jquery('ul.show_menu li').filter(':first').addClass('showing_menuitem');
jquery ajax problem
Hi... i want to use jquery ajax in current spring mvc3.0 application.... i have downloaded the jquery-1.4.2.js file... Do i need any additonal file in order to unable jquery ajax calls????? PLease help.. its urgent..
Jquery Easyslider mystery (showing static image only)
Hi all, This is my first post as I have never usually needed help before but with this I am completely stuck! I have a Jquery slider (Easyslider) at the top of my page and for some bizarre reason it suddenly stopped working and just shows the first image in the sequence and also hides next and previous arrows. I have looked, looked and cannot see what the problem is! I am sure some fresh eyes would spot the problem immediately! The website is here A working example is here (earlier development
jquery.ajax database insert issues
i am trying to build my form to submit without reloading the screen. I am using jquery and it inserts the data but it also reloads the screen and two database records get inserted. It appears that one is being inserted by jquery and the other is being inserted by the normal form submission. How do I remove/override the normal form submission? My html code is as follows: <div> <script type="text/javascript"> $(document).ready(function(){ $("#SubmitIncident").click(insertIncident);
Jquery ajax Spring mvc
Hello all.. I am new to both jquery and ajax... I have an existing spring mvc project with me... I need to integrate ajax and jquery in it... Do i need a spring json library for this????? What all is required in this scenario.... Any help is thanked completely in advance :)
JQuery not working / causing IE to throw exceptions
Hi there, I am new to jQuery. Anyhow, I am using it in my project and it works fine - in all browsers except for IE. ---CODE-- 1- <script type="text/javascript" src="jscript/jquery.js"/> 2. <script type="text/javascript"> 3. function doIt() 4. { 5. alert("ja"); 6. } 7. </script> ------- Here is the really crazy bug: doIt() cannot be called if line 1. is in the code. If I delete the jquery-include line (1), doIt will be called. IE says "Object excpected in Line bla" where the Line is the following:
Alex Rabarts cache image plugin
Hi: Each time I think I have a handle on jQuery plugins I run into a brick wall (largely erected by my scripting challenged brain). I HAVE been able to use his Demo example on a page I created. URL for ducumentation at bottom of post. In his usage section he says to: $.cacheImage('/path/to/image.png'); Then add some callbacks $.cacheImage('/path/to/image.png', { load : function (e) { console.log('Loaded', this, e); }, error: function (e) { console.log('Error', this, e); }, abort: function (e)
xml parse
im using this tutorial http://www.switchonthecode.com/comment/reply/371 but it only seems to work in FF, chrome and IE gives errors does anyone know why this is? $(document).ready(function() { $.ajax({ type: "GET", url: "jquery_xml.xml", dataType: "xml", success: parseXml, error: err }); }); function err(xhr, reason, ex) { $('#output').append(reason); } function parseXml(xml) { $(xml).find("Tutorial").each(function() { $("#output").append($(this).attr("author") + "<br
jquery validation help needed
I am using this jquery demo as my base to do form validation http://jquery.bassistance.de/validate/demo/milk/ I am trying to check if a username already exists here are some code snippets RULE: username: { required: true, minlength: 6, remote: "includes/usernameCheck.php" }, MESSAGE: username: { required: "Enter a username", minlength: jQuery.format("Enter at least {0} characters"), remote:
Colorbox advice needed
I have a link to an iframe. The iframe pops up in a color box. When the user click a button on the page i call a function called page_close() when that function is called i need two things to happen. Two variables firstname , lastname need to be returned to the parent page and the colorbox closed. I have this functionality working with normal window.open but not with colorboxes. Can anyone help me out thanks in advance - code is below Ilan /////////////////////////////////CODE/////////////////////
slideUp function doesn't work at onunload event. What is a problem?
Hi, I have some problem with onunload where I want slideUp my menu when I go out form site. I have the slideDown function fire at body onload and this function work properly. but the slideUp() at onunload not. Could anyone have any idea? My code: Copy code $(window).unload(function() { $('#menuContent1').slideUp(); alert('Handler for .unload() called.'); });and even the alert work. Only the jQuery slideUp not working.
Separate current year and current century
I'm getting the current year like this: var currentDate = new Date(); var currentYear = currentDate.getFullYear();How can I get the current century out of currentYear? Thanks
Equalheights working fine in jquery 1.3.2 but not working in JQuery 1.4.
Hi, Attached the code is working fine in jquery1.3.2 but not working in jquery1.4. it is giving following error Error: a.ownerDocument is null Source File: file:///C:/....../jquery-1.4.2.js Line: 117 Please help out Note: Please browse the attached file in firefox only Thanks,
jqgrid not displaying array data.
Hi All, I am loading the array data into jqgrid ,but it is giving some errors . Please point out the mistake in the code. <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jqGrid Demos</title> <script src="js/jquery.jqGrid.js" type="text/javascript"></script> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/jquery-1.4.1.js" type="text/javascript"></script> <script src="js/jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script>
How to show jquery message after submitting the form
Hello All, I am new to jquery and would like to learn how to show a message (e.x please wait in green color or submitting ) after clicking on the submit button. Can you please help
Repeat mouse click function when the key is clicked
Hi friends, I have a problem. This is my javascript code to generate of 10 next numbers around range when user will click: // vars var step = Number(100); var min = Number(100); var max = Number(1000000); // init $("#ActMin").attr("value", min); $("#ActMax").attr("value", 10*min); var x = min; $("#Measure").html(""); while (x <= (10*min)) { $("#Measure").append("<span class=\"Value\">"+x+"</span>");
Next Page