ajax

Best practice for sending AJAX data via form - retrieving value back

I have a small form where I want the values to be updated on change for my select boxes which can be done with: $("form#updateclient select").change(function(){ // use one selector for all 3 selects $.post("inc/process-update.php",{ // data to send completed: $("select#completed").val(), hours: $("select#hours").val(), upda...

How to initiate another jQuery .ajax call based on the result from an initial .ajax call?

I have a jQuery .ajax call: $j.ajax({ type: "POST", url: "/Services/Cart.asmx/UpdateQuantity", data: data, contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { var d = msg.d; // etc. }, error: function(xhr, ...

Access denied problem in AJAX

Hi friends, I want to parse a web page into my page, so i prefer AJAX in my code. While using the AJAX it showing "Access denied" - before fetching the specified page. The page doesn't consider any login information. Even though i cant able to get the page of google too.. Please guide me to how to use the AJAX so for Thanks, Praveen ...

In Side the ajax response light box effect using prototype.js

This is the Main page where I am calling a light box link using ajax submit. But I am not getting the light box effect after ajax responce.. index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html> <head> <title>Doubt</title> <!-- CSS for Light Box --> <link rel="stylesheet"...

WebForm_InitCallback is not defined

Weird issue going on. .NET 2.0 site using the System.Web.Extensions Version 1.0.61025.0 for some little AJAX stuff. We have a Web Farm with 2 load balanced servers. The site has been up for about 2 years now with no issues. Currently the hosting company upgraded the Framework to 3.5 and now a page that is using an simple asp:Panel is...

xajax and select

I have a bit of simple created with XAJAX, which replaces the innner HTML of a select control with some options created by a php script. This is fine and dandy in Firefox, but it does not work in IE7. Looking on the XAJAX forums i found this which basically says " doesnt really work in IE, use a div and replace the inner HTML of that w...

How can I detect if an html page element exists by using RoR RJS Template code?

I tried several ways but all are failing. ...

Form submitted multiple times when using the "submit" callback and $.ajax to post it

Hi, I've been observing some strange behavior with the following code: $.fn.submit_to_remote = function() { // I use .each instead of the .submit directly so I can save // the 'submitEnabled' variable separately for each form jQuery.each($(this), function() { $(this).submit(function() { form = $(this); if (form.da...

How does Facebook keep the header and footer fixed while loading a different page?

When browsing through Facebook pages the header and fixed footer section remain visible between page loads AND the URL in the address bar changes accordingly. At least, that's the illusion I get. How does Facebook achieve that technically speaking? ...

asp.net mvc on asp.net 2.0 + ajax extensions 1.0 + iis 6 on win 2k3 server

I have a lot of problems with url rewrite and ajax extensions 1.0 on a asp.net 2.0 web application. I am considering using asp.net mvc. Does it work for me since i am using asp.net 2.0, ajax extensions 1.0 + ajax control toolkit, iis 6 on a win2k3 server? My development machine is windows vista with iis 7 Please advise. Thank you. ...

which is better? asp.net 2.0 stick with isapi rewrite or upgrade to 3.5 and use mvc?

Hi all, i have a asp.net 2.0 web app that runs with ajax 1.0 extensions and isapi rewrite. I have some bugs and i am considering whether to upgrade to 3.5 and use asp.net mvc instead. Please advise. ...

An issue with AJAX web service call: Microsoft JScript runtime error: Sys.Net.WebServiceFailedException:

I am trying to invoke an AJAX web service call from a client web site in the same machine[Win XP Home]. In doing so, I am getting the following error. Microsoft JScript runtime error: Sys.Net.WebServiceFailedException: The server method 'Greetings' failed with the following error: <html> <head> <title>Not Found</title> ...

ASP.NET MVC jQuery AJAX Calls Action Method too late?

I have some jQuery code in an external Javascript file that is making an ajax call to an action method I have in my controller. The code in the external Javascript file is below. The action method is being called eventually, however it is not being called in time. When I set a break point in the action method, it is not being called u...

How to Queue Users in a Web Application?

I have a robot that is contolled with a local UI via a 9 pin serial connection and I would like to make it controllable via a web page, but only one user should be able to interact with it at any time. I'm still thinking about how to use WCF communications between the web server and the local PC, and might ask about that at a later time...

Sorting in Web Applications

With the increasing popularity of powerful client side javascript widgets, I am curious on when is the best time to handle the sorting of data strictly on the client side, making use of widgets such as those found in YUI, and when to make a request to the backend and have it handle the sorting via a DB query or other means. ...

Modelstate with Ajax Form

I'm using an AJAX form to update an item to the database. When it gets done, it returns a partial view that re-lists all the items and displays them all in a table. The problem occurs when I have to add a modelstate error in my controller action. I don't want to return the list of items when there is a modelstate error because I want ...

jQuery Thickbox Issue

Hi, I'm a jQuery newb. I'm building a Online Shop and I'm using jQuery plugin 'Thickbox' (http://jquery.com/demo/thickbox). The Online Shop is set up to display a 'Enlarged Image' which runs the Thickbox JS script and shows an image. A problem occurs as the data is placed on the page thru a CMS system (using Ajax I believe?). When you...

Downloading CSV via AJAX

Can you use AJAX to download a generated csv file from a web application? If so does anyone have any kind of reference that I could be pointed towards? EDIT: Sorry I should have mentioned I am using Prototype's Ajax.Request and I looked in firebug's response tool and the generated CSV is the response, I just need to get it to pop up wit...

Asp.net Ajax Temporary Modal Pop-up

I m using Asp.Net 3.5 I want to display pop-up window center of the screen just 2 seconds. It will appear 2 sec. and automatically disappear. How can I do this with modal pop-up? I tried this but not hiding after 2 sec ? function showPanel() { $find('modal').show(); setTimeout("hidePanel()",2000); } ...

.NET AJAX Calls to ASMX or ASPX or ASHX?

What is the most efficient way of calling some business logic from javascript on the client side using AJAX? It looks like you can call a [WebMethod] on an aspx directly from javascript (in my case I'm using JQuery to help out) OR you can call a .asmx directly. Which call incurs less overhead? What is the best practice? Also, what does ...