• Execute php in new tab.

    Hi all, I need help to execute in new tab a php file via ajax. I have this code: <script type="text/javascript"> function registroClasse(arg1) {     $.ajax({         type: "POSTT",         url: "registroClasse.php",         data: {cla: arg1},     })                              } </script> Thanks. Tegatti
  • jQuery plugin in few files

    Hi. How can i locate one jQuery plugin in few files *.js, and then construct it all in gruntfile.js(for example)?  and sorry for my english, it's a little hard for me now ))
  • Get RSS feeds to hybrid mobile app

    My project is to create a hybrid mobile app for a press Joomla web site. I have the link of the RSS feeds (in XML), my questions is : How can i get the feeds with Ajax because Ajax is not cross domains ?? My app will be converted by Cordova to get the "Apk" and Cordova get just html and js files , I mean if i use php (Curl), i must put the php file in a server and communicate with the php file by ajax and Ajax is not cross domains ... I need your prepositions to resolve the problem Thank u in advance
  • How create fixed header and resizable content?

    Hello How can I create a fixed header on full display for width and resizable content? Sorry for my bad English.
  • open a fancybox from another fancybox....without closing the first?

    Im using fancybox to show some content, and it is working fine. But I also have inside my fancybox content, some links to open others fancyboxs that will show pdf´s. And it is working fine, but When I close my last fancybx opened, I also close my first fancybox opened. So, I came here to ask you, if it is possible, open a fancybox from another, but when you close the last opened fancybox, I want to go back to the first fancybox and not want them to be both closed, wich is what Im getting now. I have
  • Selector Context not working as advertised.

    On this page http://api.jquery.com/jQuery/#jQuery-selector-context the instructions for using the selector context says: By default, selectors perform their searches within the DOM starting at the document root. However, an alternate context can be given for the search by using the optional second parameter to the $() function. For example, to do a search within an event handler, the search can be restricted like so:  $( "div.foo" ).click(function() {       $( "span", this ).addClass( "bar" );  });
  • JQuery mobile Script builder question

    I am new to JQuery and JQuery Mobile.  I have been trying to understand the builder to create minimum script files and get lost in everything that you can select.  This is all I use in my pages.  Can someone help this newbie on how to use the builder?   data-role="page" data-theme="a" class="ui-bar, ui-bar-a and ui-corner-all" data-role="content" class="ui-content" data-role="footer"  data-position="fixed" data-role="page" data-url="map-page" data-role="header" data-position="fixed" data-theme="a"
  • Recognizing DOM add for leave page naviation warning

    away from a page without submitting. I am having issues when the page uses document.add to overwrite radio buttons and textboxes. Everything else works. What doesn't work is when the user clears a textbox or radio button. The way it gets cleared is with document.add. I want to include this segment of code on multiple pages, so it must be dynamic. Here is what I have so far: var warnMessage = "You have unsaved changes on this page!"; $(document).ready(function() { $(document).live('change', ':input',
  • ProgressiveImageSequence, jquery Jpeg image sequence scrub & scroll breaks chrome

    PROBLEM: ProgressiveImageSequence Breaks in chrome but not other browsers BACKGROUND: I am building an interactive web page that takes a jpg sequence and plays through it as the user scroll up or down the page. the page that inspired this and that I am using to base my code off of is http://360langstrasse.srf.ch/page/. using 360lang's beautifully built ProgressiveImageSequence Created by Hinderling Volkart AG. There is a turtorial that goes over the basics of it, Though the demos they give dont respond
  • handsontable is not displaying in UI?

    Hi All i am using the below code but handsontable is not displaying anybody has idea. <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"           xmlns:f="http://java.sun.com/jsf/core"           xmlns:af="http://xmlns.oracle.com/adf/faces/rich">   <jsp:directive.page contentType="text/html;charset=UTF-8"/>   <f:view>   <af:document id="d1"> <af:resource type="javascript" source="jquery.min.js"/> <af:resource type="javascript" source="jquery-1.10.2.js"/>
  • Paginate results from ajax call

    Hello, I'm currently working on a project (in codeigniter) where you have a table showing data from the database, and I have 3 selects, each select has the on change event, base on the id of each select I do an ajax call to filter the table information, I'm using the codeigniter pagination controller to paginate the results, all work ok but. What if I do the ajax call and the result is 300 rows?, I would like to paginate those results too. What I wanna do is, get all rows and paginate by n quantity
  • key word search from google issue

    Hello        get data from this url : "http://google.com/complete/search?output=toolbar&q=hello" $.ajax({                   url: "http://google.com/complete/search?output=toolbar&q=openerp",                   type: "GET",                   async: true,                 dataType:'jsonp',                 success: function(data)                  {                      console.log("done");                   },                              }); ERROR :  Resource interpreted as Script but transferred with
  • Problem with return value from JQuery call

    I have a JQuery script which calls a PHP file (should it be a PHP function instead?)   The script only shows the "not working"-alert box, and alert(output) displays nothing. The PHP file can return only 2 values, ('1' or '0') This is my JQuery code: <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script>        function checkCountry(country)        {             $.ajax(             {                 url: 'ajax/getCountryState.php',              data: {country: '1'},             
  • Basics

    Hi, I am on and off on jQuery - so be patient with me please. I have a question on the very basic topic: $('#banner') 1)  is this a query that finds element with id = banner? If so what is the root document to search from? 2) is that a statement to create new element with the id == "banner"? Regards, Janusz
  • offset Line

    What is the 4th Line really doing  var posY = offset.top - $(window).scrollTop(); <script type="text/javascript">     function show() {     var offset = $(".logo").offset();     var posY = offset.top - $(window).scrollTop();           if(posY <=-80){           $(".navbar-brand").css("display", "inline");      }else{          $(".navbar-brand").css("display", "none");      } } show(); $(window).scroll(show); </script>
  • How to pass list of values to JQuery handsontable?

    Hi team,           Please let me know how to pass columns and values to handsontable from list. Regards, Chandra 
  • How do assign a form field element?

    This should be simple but it's preventing the validation script from working properly. I'll explain: Essentially, I have four form fields, all of which are prepopulated with a prompt ("Enter name here" sort of thing) which become blank on focus and repopulate on blur. Only two fields require validation which means the "Please enter your surname" prompt (Surname is not a required field) is being posted. At the foot of the validation process I need scripting like this:         if ($("#inf_field_LastName").val()=='Nachname'){
  • nested lists and formatted content problem

    Hi, I'm using the plugin that jQuery Mobile mention in the demo web (this one: https://github.com/arschmitz/jquery-mobile-nestedlists) and I'm using cells with thumbs + <h2> + <p> (descriptions). The problem is that the plugin is not totally working: if I click exactly in the circled arrow the next level is generated correctly, but if I click, for example, in the description it generates an empty list. I have created a Fiddle with my problem: Fiddle The plugin is in the JS window because it has been
  • $(document).ready() is not working after coming back from a page

    Dear All, I am developing an application in asp.net using c#. In my page I have done ajax call to load the page with html. The html code is coming from the database. This ajax call is written in the document.ready() function. When I am first time loading the page its working fine. When I am going to another page, that is also working fine. But when I am trying to coming back from that page then the document.ready() is not working. For that reason the html code is also not getting populated. How can
  • Safari jquery plugin clash / problem

    I am using jquery.ImageOverlay.js & jquery.jcarousel.js on this page : Both work together well in Chrome, FF, IE - but in Safari, the overlay goes crazy in Safari... it is very erratic - sometimes it fixes itself, sometimes it stays crazy. I'm not really sure what to look for here or how to fix it... I've never had a browser specific jquery problem. I've search & found mentions that Safari loads the jquery before it should, but they were all back in 2011/2012. Can anyone point me in the right direction?
  • Changing Checkbox and Radio Buttons from Javascript.

    I have a form that I want to populate based on which 'line' of data I am on.  The form as a couple of checkboxes in it. I know that I can find the various UI pieces that need to be changed and add/change classes.  But this requires that my code be aware of some of the inner workings of Mobile. I was hoping that there would be a way to "trigger an event" (maybe?) that tells Mobile.. "Hey.. I changed the state of this checkbox/radiobutton.. make yourself look that way". I tried $("#checkhere").checked=false;
  • code for change Slider Range value

    Hi to All, I'm able to read the value of an range/slider (single value) but have not idea of how to put/set/change the Value. <form >     <label for="wait">Wait minutes:</label>     <input type="range" name="wait" id="wait"  min="1" max="60" step="1">     //btw same situation if add value="10" or so </form> //works, get the value changed by the user wait = $('#wait').val(); $('#wait').val("11");            //no works $('#wait').val(11);            //no works $('#wait').slider('refresh');  //even
  • Change function to take in class name

    I have a page that produces the following html. Check all checkbox html: <span class="chkHeader2"><input id="CPH1_dlYear_cbCheckAll" type="checkbox" name="ctl00$CPH1$dlYear$ctl00$cbCheckAll" checked="checked" /></span> Check box controls being produced by my page: <span class="chkItem2"><input id="CPH1_dlYear_chkYear_0" type="checkbox" name="ctl00$CPH1$dlYear$ctl01$chkYear" checked="checked" /></span> <span class="chkItem2"><input id="CPH1_dlYear_chkYear_1" type="checkbox" name="ctl00$CPH1$dlYear$ctl02$chkYear"
  • jQuery Form IE8

    Hello everyone. I'm trying to submit a form via AJAX that contains a "file" input (upload) and have cross-browser support (including IE8). I have tried using a polyfill for the FormData object, but even with that, IE8 cannot send the form properly to my endpoint.  I found this plugin (jQuery.form) and decided I would give it a try. It seems to work except that in IE8, it throws an error and asks the user if they would like to debug. I am using the plugin the following way: $('#import-form').ajaxSubmit({
  • .change event question

    Hi The following script adds a value of '3' to the rDecision field if the domain in the email address is gmail.com etc. This works when you click the button, but I would like the value to be added without having to click on the button. I understand this is done with .change but I'm not sure how? Can anyone help? Thanks <script> function checkEmail() {       var email=$('#txtEmailID').val();     var filter = /^([\w-\.]+@(?!gmail.com)(?!yahoo.com)(?!live.com)(?!hotmail.com)([\w-]+\.)+[\w-]{2,4})?$/
  • On a .post, why isn't my .done(), .fail(), and .always() methods working?

    None of my alerts in the following code are working?     <script type="text/javascript">     // Wait until the doc structure is parsed and the browser has created the DOM tree.     jQuery(function() {         // Attach a submit handler to the form         $( "#loginForm" ).submit(function(event) {                       // Stop form from submitting normally             event.preventDefault();                       // Get some values from elements on the page:             var userId = $.trim($('#j_username').val());
  • Data entry form tool

    I'm pretty sure I've seen these in the past but have been working in an non-coding job for a bit and my mind is blank.  I am looking for a data entry forms framework.  Rather than create a new app every time a customer group wants to have a simple CRUD form to a database, this should be something that is built simply by configuration to a reusable app.  Is anyone aware of any such tool?  I'd like something with a pleasant user experience fitting with today's modern UI styles rather than plain and
  • Validating radiobutton must have selected value

    I am trying to validate with jQuery that at least one input is checked inside the .QuizAnswers div.  Any thoughts? <div class="QuizAnswers"> <div class="QuizAnswer"> <input type="radio" value="2" name="questionAnswer"> <label for="questionAnswer">a. Taxilane Centerline</label> </div> <div class="QuizAnswer"> <input type="radio" value="3" name="questionAnswer"> <label for="questionAnswer">b. Movement Area Boundary Line-Stop!</label> </div> <div class="QuizAnswer"> <input type="radio" value="4" name="questionAnswer">
  • Short yes/no question

    Hello, Is there any jquery majik  that will close all popups from a parent screen? I have a screen that has the potential of opening 4 different popups. And no I didnt write it ... Thanx
  • How do I prevent bootstrap modal screen from appearing when I press enter

    Hello, Im using bootstrap to create a modal screen.  When I press "enter" to do a submit, the modal screen appears. But then disappears. How can I prevent the modal screen from appearing when pressing "enter"  document.onkeypress = enter;               function enter(e) {                         if(e.which == 13){                          sendform();                               }                                         }                                                                          
  • about jquery connectivity online

    i have been trying to add html elements after clicking on ADDNEW link but the link doesnot work as project doesnot connect with jquery file.so please help to connect it online..The code is written in netbeans <%--     Document   : index     Created on : Jul 17, 2014, 12:04:15 AM     Author     : AnishP --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html>     <head>         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">         <title>JSP Page</title>
  • $ is not a function error

    HI folks, Getting this error for my js functions. I’m using noconflict. Any ideas how I can fix this? Here is the start of my file: // globals var recepients=Array(); var groups=Array(); var classes=Array(); var grpnames=Array(); var recnames=Array(); var classnames=Array(); var directorywindow; var total=0; jQuery.noConflict(); jQuery(InitSite); // functions declared from here on function InitSite() { if(jQuery("#userfile").size()) { jQuery("#userfile").MultiFile( {... etc
  • Datepicker - Years Working Only Showing 20 year periods

    i have an odd problem. I have a date picker set to run from Jan 1st 1922 - Current Date However instead of getting a scrolling list of years that goes back to 1922 my year selector only goes backwards in multiples of 20 years. This code is going into a WordPress plugin as part of a front end form - and I am suspecting some kind of conflict but I was wondering if anyone had any ideas The formatting code is  jQuery('.calendarpicker').datepicker({                 changeYear: true,                 changeMonth:
  • jQuery Mobile

    Đầu năm 2016 tới nay, Thị Xã Thuận An vừa được Công ty cổ phần viễn thông FPT cho triển khai bổ sung thêm hạ tầng internet cáp quang thay thế cho hạ tầng ADSL cũ tại 1 số khu vực Phường An Thạnh, Phường Bình Chuẩn, Phường Bình Hòa, Phường Bình Nhâm, Phường Hưng Định, Phường Lái Thiêu, Phường Thuận Giao, Phường Vĩnh Phú và xã An Sơn trên địa bàn Thị Xã Thuận An. Hiện 2 dịch vụ chính mà FPT đang cung cấp lắp mạng fpt thuận an tỉnh Bình Dương là mạng cáp quang FTTH tốc độ cao + mạng ADSL tốc độ thấp
  • Event binding not working as expected when set on the parent.window

    I'd like to know if the issue I'm going to describe is a bug. If I bind an event from an iframe content to its parent window and use a property set to the iframe content window in order to update a counter whenever I refresh the iframe page the counter property doesn't seem to be correctly reinitialized. The iframe page should set the window.counter to 0 each time the page is reloaded, but the counter property seems to keep previous value. I've been able to reproduce this issue on Chrome and Opera.
  • json with jquery mvc4 mobile application?..

    $(function () {         $('#TM1').change(function () {                         $.getJSON("@Url.Action("getEMI", "MISanction")", { loanamount: $("#loanamount").val(), rateofinterest: $("#rateofinterest").val(), tenureofmonths: $("#TM1").val() }, function (result)             { $("#EMI").val(result) })         });  }); here json is not working.please tell how to work with json?..
  • iosslider Plugin Help

    Hello, I hope I'm in the right place. I am currently trying to see if I can get the jquery plugin 'iosslider' working for my infinite scrolling horizontal webcomic site. I've gone item by item through the "Installation & Setup" portion of their site (https://iosscripts.com/iosslider/#installation-and-setup). I -think- I've got everything covered there. But when I go to test the site live on the server I get a big blank section where the slider is supposed to be and the following error: Uncaught ReferenceError:
  • Jquery trirand grid not displaying

    I am using Jquery trirand grid..Its well working in a sample project..when i integrate with the main project its not displaying ...In the main project more jquery.js files are present...when i use jquery migrate the trirand grid showing only header and the data is not displaying...Could you please help me???.....
  • expand and collapse with changing graphic!

    Hi Jquery masters!!! I need your help - I'm trying to build a simple menu that expands and collapses - when a menu item is selected and the expand happens - a number on a map lights up. (SEE ATTACHED GRAPHIC - it's probably way easier to understand by looking at - as opposed to my horribly written explanation). The expand and collapse shouldn't be too difficult (but I'd love to hear suggestions!!!) but how do I make the number change colors/light up on the map when the menu is selected/expanded???
  • Need help getting the length of :checked usin .on("click")

    Hey Guys. I wrote the script below to display an alert message if the user has selected more than 2 items. But it doesn't seem to be working for me... Any help would be really appreciated. Thanks!! http://jsfiddle.net/eldan88/qyu9N/ <script>     $(function(){        var $checkboxes = $("input[name*='max_allowed']:checked");        var $checkbox_len =  $checkboxes.length;         var $max_len = 2;         $($checkboxes).on("click", function(){            if($max_len > $checkbox_len){               
  • 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