ajax

How can I find the source of rogue Ajax requests on IE?

I've rewritten my family web site using Javascript (JQuery) making ajax calls to php on the back end. It's your standard "bunch of image thumbnails and one main image, and when you click on a thumbnail image the main image changes" kind of thing. Everything is working as expected when using Firefox, but on IE, when I click on a thumbnail...

Asp.net ajax update panel sharing a database connection

I have a dropdown box and a literal tag inside an Update Panel. On the selection change event of the dropdown up requery the database and repopulate the literal tag and then call UPdatePanel.Update(). below, is there are way i can avoid having to create a new Oledbconnection each time as this seems slow. Can i reuse and store: The D...

Ajax callback UpdatePanel.Update() still reloading whole page

I have code in an Update Panel and even though on a button click i am inserting data into a db and simply calling Updatepanel.Update() the whole page is reloaded: Gifts.ASPX <table style="width:100%;"> <tr> <td> <asp:Label ID="Label2" runat="server" Text="Gift"></asp:Label> ...

jQuery ajax, Prevent callback from running

is it possible to use the ajaxComplete or ajaxStop features of jQuery to decide whether or not the callback gets called? Essentially I want to be able to take basic error checking code that is currently in most of my callbacks, and add it to a sort of global callback. ...

JavaScript implementation of Gzip

I'm writing a Web application that needs to store JSON data in a small, fixed-size server-side cache via AJAX (think: Opensocial quotas). I do not have control over the server. I need to reduce the size of the stored data to stay within a server-side quota, and was hoping to be able to gzip the stringified JSON in the browser before sen...

ASP.NET Ajax ErrorSys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server

Hi, I created an Ajax website in Visual Studio, added a simple page with a textbox and button, when I click the button once everything works, when I click it twice I get the error Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the ...

Asp.net Ajax Error

I added the ModalPopupExtender to an existing ASP.NET application. At runtime I get the following error Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Me...

The type 'System.Web.UI.ScriptManager' is ambiguous: it could come from assembly

When I run my asp.net app I get the error The type ‘System.Web.UI.ScriptManager’ is ambiguous: I am having the same problem this person is having http://forums.asp.net/t/1313257.aspx , when I change the 1.0.61025.0 to 3.5 and re-compile It resets it to 1.0.61025.0 what I can I do to resolve this. I've been trying to get my app run...

How does ASP.NET MVC communicate w/ an AJAX enabled webpage?

How does the data go from the MVC to the browser and back again? Does it use Microsoft's own technology like ASMX or WCF or something completely different? This sounds like MVC is using a ASMX Web Service they are using but I can't seem to find any documentation which gives the real answer. ...

Shared secret with API in an Ajax Adobe AIR app

I'm pretty new to developing AIR apps, so maybe this is a dumb question, but I can't seem to find any answers from google. Any help you can give me is greatly appreciated. I'm building an AIR app with Ajax using an api that is identical to flickr's Api, with a shared secret key. The problem is that the air installation package contains ...

ajax displaying code instead of result

Hello, I have a basic ajax application, which will not work, instead the php code is displayed in the browser. The javascript and html seem fine. I have copied the code verbatim from here: http://arief.aeroven.com/2008/07/30/first-ajax-script-tutorial-connecting-ajax-contain-pure-htmlphpand-javascript-to-mysql-database/ and this is th...

What is the best, light-weight JSON/ajax script?

I am creating a joomla plugin and want to load an array of images after the page has loaded. To do that, I'm currently using mootools.js to call myserver URL, obtain the JSON response and parse the response into javascript variables that represent each image url. It works great, but mootools.js is appropriately named since it is a real...

"Stop running this script?" error

I am developing a site that makes extensive use of JavaScript (jQuery). I regularly get the IE 'Stop running this script?' error dialog when I try to close the browser. I'm guessing the problem occurs because the site is a single page that uses AJAX, so there are no postbacks to reset IE's count of commands executed. Client-side regis...

Does jQuery's $.ajax() function handle ASP.NET authentication correctly?

I have a web app protected by ASP.NET Forms Authentication. The site uses jQuery's $.ajax() functionality to call a web service in the same app. Browsing to the web service .asmx does cause forms authentication to kick in and I once authenticated and make a $.ajax() call to the server I also see the ASP.NET session cookie and forms aut...

Where can I get the JSONRequestError code?

Following the JSONRequest proposal, I've found code for the JSONRequest object. However, this object depends on JSONRequestError, and the code for that is nowhere to be found. Anyone know where I can find the code? Thanks in advance! ...

Ajax based username availability check

Anyone have examples for creating a new user registration form where the web application checks for username availability via making an ajax call on the form and returning available or not on the same page without a full page post? Something similar to new user registration on Hotmail. ...

ASP.Net MVC Ajax form with jQuery validation

I have an MVC view with a form built with the Ajax.BeginForm() helper method, and I'm trying to validate user input with the jQuery Validation plugin. I get the plugin to highlight the inputs with invalid input data, but despite the invalid input the form is posted to the server. How do I stop this, and make sure that the data is only p...

How do I send a cross-domain POST request via JavaScript?

How do I send a cross-domain POST request via JavaScript? Notes - it shouldn't refresh the page, and I need to grab and parse the response afterward. Your help with some code examples will be much appreciated. ...

Make ajax get redirect main page to login when auth times out

I'm using ASP.Net MVC beta 1 and I'm using the asp.net membership provider with the standard authentication controller to restrict access to my site. I'm using ajax functionality to provide e.g. editing of values by loading partial views into a div with either jQuery $.get/$.ajax or with the Ajax.Actionlink MVC helper. This all works fi...

How to do a jquery ajax call to a subdomain?

Hi there, i could call a page inside the same domain, but its not working when i calling a page in a sub domain due to security issues. what i have to do? help me!!! ...