• finger event taphold

    Hello everyone I have a question you can capture the state of the finger or mouse during taphold for example $(document).on("taphold",".div",function(e){ if the finger is still pressing { alert("down"); } if the finger is still up { alert("up"); } });
  • Ajax and Json

    Hey I have a small Question about Json, I am trying to retrive some values following some little tutorial ive seen . and trying to add new stuff to it. so here it gos  so my error is 100% in this function SummonerLeagues(summonerID) I am sure about this cuase when I remove it I get my response for the 1st half. but when I add it back i get nothing in return I am fairly new in this consept can someone help me udnerstnad what I am doing wrong ? <html>  <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  • maintain position when positioning is changed

    Consider the following <div id="pearent">     <div id="child"></div </div> the pearent has static positioning Is there any easy way to read what the top and left properties of the child would be if it had fixed positioning. answer this question for both a child with absolute and a child with relative positioning.
  • How can I make this shorter? Maybe as a function?

    Hi Guys, Is there any way in which I can shorten this code?: $(document).ready(function(){     $(".radio__label").focusin(function(){         $(this).addClass("focus");     });     $(".radio__label").focusout(function(){         $(this).removeClass("focus");     });     $(".checkbox__label").focusin(function(){         $(this).addClass("focus");     });     $(".checkbox__label").focusout(function(){         $(this).removeClass("focus");     });     $(".checkbox__label--error").focusin(function(){
  • how to display base 64 image and dynamic fields in grid/datatable

    Hi frds I have got this json output. I want to display this in grid/jquery datatable. I have got base 64 characters (for image).I want to display photo as well as dynamic fields in grid. I have used 1 plugin. only static fields i got in grid. please help me how to do. Reffered plugin :http://www.jqueryscript.net/table/jQuery-Plugin-To-Convert-JSON-Data-Into-Data-Grid-Columns.html this is my json file [{     "student_id": "1001",     "admission_section": "a",     "admission_date": "12/01/2015",  
  • jQuery Slider returning/reading values on the Server

    I have as ASP.NET application, it uses Bootstrap sliders, but the customer wants changes to the slider and changing the Bootstrap slider appears a nightmare, he has provided me with a sample jQuery slider that does what he wants BUT swapping the 2 sliders presents me with a server side problem - how do I initialise the jQuery slider with a database value, and on submit how do I read back any new value.  Below is the server side C# code that works for Bootstrap's slider, but it uses an input HTML
  • Add to jquery unserialise function

    First, my English is poor We can get the corresponding URL via jquery params method,like that: var params= '{ "a": [ 0, [ 1, 2 ], [ 3, [ 4, 5 ], [ 6 ] ], { "b": [ 7, [ 8, 9 ], [ { "c": 10, "d": 11 } ], [ [ 12 ] ], [ [ [ 13 ] ] ], { "e": { "f": { "g": [ 14, [ 15 ] ] } } }, 16 ] }, 17 ] }' $.params(params) /*get params  a[]=0&a[1][]=1&a[1][]=2&a[2][]=3&a[2][1][]=4&a[2][1][]=5&a[2][2][]=6&a[3][b][]=7&a[3][b][1][]=8&a[3][b][1][]=9&a[3][b][2][0][c]=10&a[3][b][2][0][d]=11&a[3][b][3][0][]=12&a[3][b][4][0][0][]=13&a[3][b][5][e][f][g][]=14&a[3][b][5][e][f][g][1][]=15&a[3][b][]=16&a[]=17
  • Problem using Jquery and XMl to sort links by their number

    Hello everyone, I've tried to sort links I've got in a XML file. I've using AJAX from jquery but I have problems. I wanted to create links order by their number into panels that can slide. Panels can slide but I'm a beginner using Jquery and Javascript and i don't know how I can do using AJAX to import my XML and sort it. But wait there's more ! In my XML I have a "commen" section that I wanted to show in "commentaire" section on my HTML every time mouse come over a link... I know it's a little bit
  • jQuery datepicker entered invalid date is resolved to another date

    I am using the jQuery datepicker. When I enter an invalid date like 1-1-0004, this date will be resolved to 1-1-1994. When I enter 1-1-2004, this date will be resolved to 1-1-1944. Why is this happen? I can reproduce this on the jQuery datepicker demo page. I would like to avoid this situation. It needs to be only possible to enter valid dates. And the date you enter needs to be same as in the datepicker. Not resolved to another date. $("input.field.date").addClass("ui-datepicker").datepicker({        
  • jquery accordion with radio buttons

    Hi, I have an online delivery page and I want in the last page to let user to select the delivery from existing addresses or enter a new address. I though of having a jquery accordion with radio buttons so it will be like this: ( * ) My Work ( * ) My Home ( * ) My Brother House ( * ) Enter a new address so the first three populated from the database and will show the details of the address when the user expand it and the Enter a new address will expand with a textbox to enter the new address. What's
  • Show photo gallery from database

    Hi, I would like to show a photo gallery from  a database but I don't want to download all pictures during the page load because there will be hundreds of photo so what;s the best way to do this without having to load all pictures? Thanks, Jassim
  • Autocomplete with categories from database not working

    I have product names and categories from database fetched with PHP: $findNames=$user_home->runQuery("SELECT productTitle, category from Iranga "); $findNames->execute(); $information=$findNames->fetchAll(PDO::FETCH_ASSOC); foreach($information as $item){ $namesArray=array("label:"=>$item['productTitle'], "category:"=>$item['category']); } Then am trying to use collected data like this: var data=<?php echo json_encode($namesArray);?>; But it won't work, where could be a problem? <script> $(function()
  • event.preventDefault(); still post on production server

    I use event.preventDefault(); function to prevent the page default post. The function works on my local developer server, but when I post my code to production server, it still refresh the page. Are there any configuration to set for the server? Your help and information is great appreciated, Regards, Iccsi
  • custom copy paste

    i have a textbox in my jqm app. i need a custom text popup (similar to copy paste) appears on long press of the textbox, is it possible ?
  • sequence of js and css files

    Hi, I am always confused how to order the js and css files for jquery and jquery mobile and jquery ui? where to put every file? is there an template to use and to include in every page? Thanks, Jassim
  • $(...).buttonset is not a function

    Hi, Why I am getting this error: ncaught TypeError: $(...).buttonset is not a function here: https://www.cakeboutiquebh.com/before_submission.php Thanks, Jassim
  • JQuery UI Tooltip with jQuery Steps, tooltips after validation

    Hi, i use jQuery Steps for bulid form, jQuery UI tooltip for show validation errors, jQuery Validation Plugin for validate code bellow: css <style> .wizard > .content > .body input {         width: 180px;         display: inline-block; } .wizard > .content > .body label.error {                                display: none !important;         background: #fbe3e4;         border: 1px solid #fbc2c4;         color: #8a1f11; } .wizard > .content > .body label {         width: 150px;         text-align:
  • JQuery Validation Issues

    Having issues getting jquery validation to work, any help would be greatly appreciated! HTML <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title> Form Scrape </title>     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>     <script src="validation/dist/jquery.validate.js"></script>     <link href="theme/jquery-ui.css" rel="stylesheet">     <link href = "css/formPrototype.css" rel="stylesheet">     <script src="theme/jquery-ui.js"> </script>
  • Biding Autocomplete to Multiple Columns

    Hello everyone and thanks for your help in advance.  I am develop a search box that utilizes the jQuery Autocomplete widget.   I am trying to get the widget to consume a JSON data source, however, the data source returns multiple name:value pairs that look like: [{"ID":139,"VisitID":0,"ClaimNo":"573220160314215047","MRNumber":"5732","PatientLastName":"Testcase","PatientFirstName":" I know how to get a singular column bound to the search,                     $.ajax({                         //url:
  • redirect using QueryString

    Hi, I have enter.php page for signing in and I am authenticating the user using ajax when done, and if the url enter.php has a paramters redirect like this: enter.php?redirect=http://www.mydomain.com/my.php I want the jquery to redirect to that page.. How can I do that please? Thanks, Jassim
  • Sharepoint Jquery Conditional dropdown validation

    I have a dropdown named "Status" with a "Yes" and "No With Reservation" as options. If the user choose 'Yes", form can be submitted, if "No With Reservation", user must fill out an "Explanation" multiline textbox below the dropdown.  I have access to Sharepoint Designer so any help to achieve this is highly appreciated.
  • Can't use Android speech recognition in inputs nested in popups

    Hello, I'm using jQuery Mobile 1.4.3 with jQuery 2.1.1. My project is a Cordova app hosting a single page webapp written in Backbone.js. I have problems using the voice recognition on Android :  - when I simply put my form in a page, it works fine : touching a text input, the keyboard appears, I select the voice recognition and the microphone UI appears.  - if I put the form in a jQuery Mobile popup, I get the keyboard too, but if I call the voice recognition, the UI briefly appears, then disappears.
  • plugins

    anyone know if that CDN <script src="http://code.jquery.com/jquery-1.12.3.js"</script> have the plugins included? and if not whats the url for the CDN plugin for colors and easing. thank you
  • can anyone help me why that code don't work

    <!doctype> <html> <head> <script src="http://code.jquery.com/jquery-1.12.3.js"> </script> <script> $(document).ready(Function(){ $('answer').hide(); $('h2').toggle(function(){ $(this).next('.answer').fadeIn(); },function(){ $(this).next('answer').fadeOut(); }); }); </script> </head> <body> <h1> FAQ </h1> <h2> how many days are in one week? </h2> <p class=answer> i think seven </p> <h2> how many years are in one week? </h2> <p class=answer> oh boy a year is much larger than a week </p> </body> </html>
  • Sort rows by class using tablesorter

    Hello,  I want to sort the table rows buy the tr tag class. I want to sort a table with subtotals. The subtotals have a group of rows assigned. I want to sort each gorup independently. I am using the mottie tablesorter. Thanks.
  • One Select list populates itself with different values depending on which array is chosen by another select list

    I want to have one select list populated with different values (price) depending on which option was chosen in other select list (sale or rent).  The procedure of the code looks ok what the logic refers but it is not working So what I have done is first create the arrays for sale and rent. Then get the jquery and do an change event to pick which selection was made. then a Switch statement that should populate the select list in question, but it is not showing anything. While jquery is a library for
  • Writing a dynamic code which you don't need to write the same code for each input

    Hi, Whit this code I can check if an text-input is empty or not and add an error message and some accessibility attributes to it if it's empty. Accessible validation form Now how can I make it dynamic, so I don't have to repeat the same code (almost the same code) for each input? Thanks
  • clickable title

    is it possible to make title of datepicker clickable. I mean think about windows' calendar. Whjen you click month. It shows all months in a square. And title of calendar become current year. When user clcik title again it shows all the years. Is it possible to make in jquery ui calendar?
  • Is it possible to make a website that is horizontally AND vertically scrollable?

    Hello, I am trying to make an experimental narrative website that tells two different stories in a page. The website is currently just horizontally scrollable, and I just have a big fixed image top of images that has a big hole in the middle.(so users read the story only through the hole) I originally had a clickable image at the end of horizontal scroll so that it links to the another story, but I wonder if I can have horizontal scroll AND vertical scroll so that it shows different images at the
  • 3 Tier Menu Adding class to multiple li

    Hi, i'm building a 3 tier drop down menu and i want the other menus to open and close depending on what link i clicked on. This is what i have so far JSFIDDLE At the moment the first drop down opens fine and disappears when i click the other drop down. But when i click the menu item drop down within the drop down menu it doesnt open. I'm pretty sure my jquery code is wrong somewhere. Please help. Help much appreciated.
  • How do I make a sliding banner loop?

    Hi, does any one know how I can make my sliding banner loop so that on the last slide it carries onto slide 1 again, instead of flicking backwards through the whole thing? Here is my code     $(function() {             $('#banner').unslider();         });     var unslider = $('#banner').unslider();     $('.unslider-arrow').click(function() {         var fn = this.className.split(' ')[1];         //  Either do unslider.data('unslider').next() or .prev() depending on the className         unslider.data('unslider')[fn]();
  • Images selected for upload PREVIEW only plugin?

    Can someone recommend me a plugin (jquery, js, angular etc) that shows previews of images that are selected for upload? I dont want to upload them with this plugin, ONLY PREVIEW them. Images will be sent and uploaded normally with PHP. Also if possible if that plugin has deleting selected image option or reorder them, but not important. Best Regards
  • Problem with jquery on my site

    hi guys I hope you can help me over the last few days my login and register buttons on my site have stopped working I do not know why as they worked perfectly up till Thursday then boom dead links.....IM running a wordpress theme called wprentals,  when i look at inspect elements it comes up with this  http://netholidayrentals.com/wp-content/themes/wprentals//js/%20jquery.viewport.mini.js?ver=1.0 Failed to load resource: the server responded with a status of 404 (Not Found) can someone please help
  • Selecting Child and Grand Child Elements

    I am trying to select a child or a grand child element by clicking on it. Upon clicking on the child or grand child element, its border is supposed to turn blue to indicate that it has been selected, but nothing happens. I have tried this script but it's not working, please help.
  • Passing dynamic variables back into HTML - Best Practices

    Hi, what would be the best way to pass dynamic vars back into an HTML entity? I am tracking the mouse movement and passing with append() and it just makes a whole list when the mouse moves, I just want a current dynamic value to be presented; one line that changes dynamically. How should I approach this?
  • how to vertically center content

    Hi there, How do I vertically center the content that is inside the following div. <div data-role="main" class="ui-content"> </div> Thanks Joe
  • Unable to hide class on click

    Hi, I am using the following to show and hide menu items on click, it shows the menu items when I click on the target however when I click a second time it does not hide the menu items again.     $(document).ready(function(){         $(".menu_sub_par_head").click(function(){             if ($('.menu_sub_head').is(":visible")) {              $(".menu_sub_head").hide();             }             else {             $(".menu_sub_head").show();             }         });     }); Any assistance would be
  • Camera slideshow v1.4.0 and jCarousel are not working on Firefox, chrome, opera and explorer are running ok

    I'm working in a web site http://www.autopartesrm.com  and i'm having some jQuery pluggin issue in this project.  I have chek at chrome, explorer, opera an it's working perfect but at firefox all the proyect looks real bad because the pluggins dont work. Can you help me? The mail slider is a jQuery pluggin: // Camera slideshow v1.4.0 - a jQuery slideshow with many effects, transitions, easy to customize, using canvas and mobile ready, based on jQuery 1.9.1+ // Copyright (c) 2012 by Manuel Masia -
  • List all links in ajax callback

    I want to make a list of all links per 'content' item but I can only figure out how to get ALL links on a page EXCEPT for the ones retrieved via the AJAX query. How can I search for all links within a variable? $.ajax({             context: this,             url: url,             method: "GET",             headers: { "Accept": "application/json; odata=verbose" },             success: function (data)             {                 for(i = 0; i < data.d.results.length; i++)                 {       
  • datepicker onShow event

    hey i am using datepicker. I want to do something when datepicker is open. Datepicker hase some functions like onSelect, onClose, but there is no onOpen or something similar. Is there any solution you can suggest to me for taking care of this problem.
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of