jquery-ajax

Reloading jquery events issue after updation in UpdatePanel

I have got an issue after updation in UpdatePanel. The issue is the jquery events are not working/firing after the updation in UpdatePanel. At first time, the jquery events work, but not after the updation in UpdatePanel. If I remove the UpdatePanel, the problem is solved. But I have to use the UpdatePanel. Can you give me a solution fo...

Facebook jQuery Plugins

What are the most Facebook like jQuery plug-ins, I would love to have a solid list of them. ...

Rails AJAX request also calling entire original page

I'm using jQuery getScript in Rails to load an AJAX search on a dashboard page. I just noticed, though, that in addition to properly making the call it's ALSO reloading the entire page (in the background). I have no idea why this happening. I checked all my before_filters, all my authentication logic, I tried using different jQuery a...

The most strange error in the world (PHP $_GET, $_POST, $_REQUEST and ajax)

I hope you'll able to help me. I'm fed up of trying things without any solution and php it's just driving me crazy. I'm looking for help because I have a html document where I use ajax thanks to jquery api. Inside this file, in a js function I have: $.ajax({ type: "GET", url: "c.php", data: "dia="+matriz[0]+"&mes="+matriz[1]+"...

ASP.NET Update Panel vs. jQuery AJAX

Is there a significant difference in performance between the two for relatively small post-backs? I'm taking in user input on a website, calculating some values from it and the returning it. Adding AJAX with update panel was really really quick obviously, but I'm wondering if I should just use jQuery instead. Also, how to the two metho...

jQuery .ajax call shows success when computer disconnects. How to induce ajax error state?

I have the following bog standard jQuery ajax request. I've been trying to induce an error state by disconnecting my computer from the network mid-request (the server takes 10 seconds to reply so this is simple). When I disconnect alert('Success: '+ json); is called, with null for the response json. I would expect the error part to be ...

jQuery DoubleSelect/Cascade/Dependent/WalkRight Select Menus w/ Ajax Support?

Where you can pick an item from a <select> menu and then it populates a second <select> menu. It goes by too many names and they're are too many implementations. I'm looking for an up-to-date one (works well with the latest version of jQuery) that can pull the data using Ajax. Can anyone recommend a good plugin? ...

Any good RADAR (RESTful Application, Dumb-Ass Recipient) applications?

I would like to study the client code of a RADAR web application. (RADAR stands for RESTful Application, Dumb-Ass Recipient). This means that there are only a rellatively small handful of HTML pages, the application backend spends most of its time sending out data in JSON or XML format in response to AJAX requests from the browser clien...

PHP has encountered an Access Violation at 77FCAFF8

I am running a PHP site that uses Ajax and jQuery as well. The site will run fine for quite some time, and suddently my pages (and ajax-retrieved sub-pages) comes back with the message PHP has encountered an Access Violation at 77FCAFF8 It seems that rebooting the server corrects the issue. Running PHP Version 5.1.6 (Windows NT 5....

onUnload event doesn't fire on refresh

I have an onUnload event handler in the body tag of my page. It calls a function which sends an Ajax request to the server. Everything functions when I navigate away from the page, but refreshing the page never sends a request to the server. One possible reason is that a refresh doesn't allow Ajax requests? does that make sense? Heres ...

Django/jQuery Cascading Select Boxes?

I want to build a Country/State selector. First you choose a country, and the States for that country are displayed in the 2nd select box. Doing that in PHP and jQuery is fairly easy, but I find Django forms to be a bit restrictive in that sense. I could set the State field to be empty on page load, and then populate it with some jQuery...

jQuery $.post() and full URL's

Hello, I am working on a site and have 3 different branches. Typical dev->stage->production situation. All 3 run on 3 different urls: prod: http://www.domain.com stage: http://www.domain.com/stage dev: http://www.domain.com/dev So i am trying to have universal code that runs on all 3 without any modification to file p...

Send only few properties of objects within an Array in ajax call with jQuery

// Initialize the object, before adding data to it. var NewPerson = new Object(); NewPerson.FirstName = $("#FirstName").val(); NewPerson.LastName = $("#LastName").val(); NewPerson.Address = $("#Address").val(); NewPerson.City = $("#City").val(); NewPerson.State = $("#State").val(); NewPerson.Zip = $("#Zip").val(); In actual I'm p...

JSON Self referencing loop explanation

Hi people. I am doing some work with C#, AJAX and JSON and am getting a Self referencing loop error. I am managing to get around this using the JsonIgnore attribute, but I was wondering if someone can give me a proper explanation as to what is actually happening here. Many thanks. Dave ...

Jquery ajax call within an each loop

Hi, I'm having a problem when using the jquery .each() and .ajax() functions together. I'm using .each() to loop through 5 elements and am performing the .ajax() call for each one. My problem is that I only want the loop to continue when a response has been received from each ajax request. Currently, all 5 elements are being looped, 5 ...

Problems with UTF-8 accent Characters in JQuery form submission using Internet Explorer

Hi, I am using JQuery to submit a form with $.ajax() and then get the params in a php page to store them in a Database. My Pages are UTF8 encoded. Everything works well when I use Firefox. However, with Internet Explorer, when the data has accent characters in it, it discards these completely. I am using : $.ajaxSetup({ scriptCharset:...

JSON not loading with jQuery.ajax()

Hello everyone, I am using a web service that returns JSON data. test.com/incident.do?JSON&sysparm_action=getRecords Loading this URL in a browser prompts me to open incident.do, which opened in Notepad displays the valid JSON data. Then, in a web page in the same domain, I use this: $.ajax({ beforeSend: function(xhr) { xhr.setRe...

JSON decoding without each function

Hi All i have a json formatted out put as {"baseUrl":"\/","success":true} how get the value of success ?? ...

$.getJSON to get JSONP data

I was playing with $.getJSON in the following way to receive an alert but without luck. Here is the code, <script type="text/javascript"> $(document).ready(function() { var url = "ticker.js?callback=?"; $.getJSON(url, function(data) { alert(data.price); }); }); </script> And the ticker.js ...

jQuery filtering AJAX data and then replaceWith data

I am calling pages via AJAX in jQuery. The content of these pages needs to be filtered so that i only grab a certain DIV class. In this instance 'Section1'. This filtered data needs to replace the same data on the current page in the DIV of the same class. I currently have this but it is not really working for me: $("#dialog_select"...