Jquery script stopped working in version 1.11.0

Posted Jan 01, 1970 12:00 AM

what's wrong with this code. It works in previous versions of Jquery but stopped to work in version 1.11.0. This script checks username availability and prints result in div #status.

The script works only partly. It sends request to check-username.php and shows loading.gif and text "please wait" but never prints the result from check-username.php file. It stucks at "Please wait" forever.

Javascript console doesn't show any error messages.

<script type="text/javascript">
pic1 = new Image(16, 11);
pic1.src = "/loading.gif";
$(document).ready(function () {
    $("#nn").change(function () {
        var usr = $("#nn").val();
        var paro = $("#par").val();

        $("#status").html('<img src="/loading.gif" align="absmiddle">Please wait');
            cache: false,
            type: "POST",
            url: "/check-username.php",
            data: "nn=" + usr + "&prr=" + paro,
            success: function (msg) {
                $("#status").ajaxComplete(function (event, request, settings) {
Tagged jquery code

Similar Topic Questions

JQuery Script Not Working?

So I have this jQuery script but when you click the button it doesn't go along with what its supposed to. I'm using the same script on a different button and it works. Cant seem to find the issue D: jQuery Script: <script type="text/javascript"> $(document).ready(function(){ ...

Posted Jan 26, 2014 11:52 AM

Jquery Script Not Working to accept input numbers only

I have written my Jquery script to input number only for textbox. Following is my html code : <input type="text" name="mobile_number" id="mobile_number" maxlength="10" class="form-control input-md" placeholder="Mobile Number" required="required"> When I try to input some value it accepts both numbers and characters also. My Jquery...

Posted Feb 05, 2014 3:25 AM

Jquery script not working inside HTML

I am learning Jquery from this tutorial : http://www.littlewebhut.com/javascript/getting_started/ I created One Html , 1 js file . put them on same physical folder ,put "jquery-1.8.0.min.js" in same folder , put a link of js file in html page But it is...

Posted Feb 16, 2014 1:26 AM

Why does my jquery script not work?

I wrote a script, which get data (in Json type) from a method and show it in div tag with a close button, when i click on close button it is not work! my script is: $(document).ready(function () { ...

Posted Feb 17, 2014 2:24 AM

Jquery scripts not working after changing AngularJS templates

I'm working on an single-page-app in which we use templates like that: <script type="text/ng-template" id="content.html"> some HTML </script> I was working on one module separately from main project and now I want to include it. The problem is that I have...

Posted Feb 20, 2014 5:27 AM

JQuery script not working in Firefox

My code is working decently (though slow) in Chrome, but failing in Firefox. Currently the script toggles a class on a list item's hover/click, revealing a div, and a second toggle adds a blur class to the rest of the...

Posted Apr 30, 2014 2:03 AM

JQuery script not working - Newbie

I'm working on adding a jaccordion to my website. Here's the thing, I've tested it in CodePen and it works fine, but when I try it in my browser, no dice and nothing I do seems to change that. I...

Posted May 18, 2014 11:02 AM

JQuery script not working w/AJAX in Rails 4

Basically, I have my messages inbox (using mailboxer gem) arranged in a collapsible accordion (using twitter bootstrap). Whenever a user clicks on a conversation, it expands and shows all the messages. I want it so that when the...

Posted May 23, 2014 12:47 PM

Rails 4 turbo-link prevents jQuery scripts from working

I'm building a Rails 4 app and I have a few scattered js files that I'm trying to include "the rails way". I moved jquery plugins into the /vendor/assets/javascripts and I updated the manifest (application.js) to require them. When I...

Posted Sep 12, 2013 3:59 AM

Jquery script not working first time

When I access a specific page I have at the start of a day, no data will show. After I refresh the same page, the data appears as it should. If I were to access the same page an hour...

Posted Jun 15, 2014 12:25 PM

2 jQuery scripts not working together

I am using jQuery 2.0.3 and bootstrap. I have function created in jquery, one for the dropdown menu and other for changing images on page load. $(document).ready(function() { //Display radom image on page refresh var images...

Posted Jun 20, 2014 6:21 AM

Jquery script not working when loading with .load a remote html

I have this code $(document).ready(function() { $(function () { $('#id_type').on('change', function () { var k = $(this).val(); ...

Posted Jul 02, 2014 4:59 AM

JQuery ajax callback function stop after append received data and received jquery script dont work

I have two problems with jQuery ajax call back. I have following code of jQuery ajax call: <div id="newpages"></div> ...

Posted Jul 16, 2014 10:12 AM

JavaScript/Jquery - scripts dont work after calling html()

I am using ASP.NET MVC ( Razor ) and Jquery my page looks like below ( simplyfied ). When i first load my page everything works fine every script is working i can open datepicker etc. But after i choose from...

Posted Aug 13, 2014 7:50 AM

JQuery script not working with pre populated Array

I hope I am not repeating an existing question, I have tried really hard to find what I need on the site, but now feel I need to ask the question, so here goes, I hope you guys can help...

Posted Sep 04, 2014 4:16 AM

JQuery: Script is working in console but not in attached file

I'm working on a custom Wordpress site that has a lot of javascript (all developed by another developer) I'm trying to add a script to the bottom of the scripts.js file and it's not working everywhere. It works in the console....

Posted Sep 05, 2014 7:06 AM

JQuery script not working on Chrome or Safari

The following script works on IE and Firefox but I can't seem to figure out the reason why it's not working on Chrome and Safari. The purpose of the script is simply to remove the first 4 options from list...

Posted Sep 30, 2014 4:48 AM

Login jquery script not working on local machine or in jfiddle

This code work on Codepen but it will not work in JFiddle or on my local machine. Can someone please point me in the right direction to get it to work properly. I have everything that I could...

Posted Nov 05, 2014 6:20 AM

JQuery script not working for list under css menu

I am trying to open a list label under css menu, but it opens two elements in css menu. But I want only one list to display for the specific label. When I click on Dokumentart label, it should display...

Posted Dec 08, 2014 11:13 AM








Forgot Password
Reset my password!