ajax

How to debug .net error where message is masked in Ajax call

Hi, I'm currently working on a page which makes use of the MS Ajax UpdatePanel. However I've run into a strange problem. If I simply compile and view my page, one of the button click events results in an error. However, because the button affects items inside an UpdatePanel the actual exception is hidden from me: all I'm getting is a HT...

Json, Timer, Ajax, What is faster (for shared Chronometer) ?

Hi everybody, I'm developing an application using ASP.Net. For first the idea: "My WebApp needs an chronometerto be shared by users and all users will se the same value in cronometer. When a user clicks on a button, the cronometer needs to be restarted and all users will need to see that!" All right, now I'd like to know what's the ...

server side validation on ajax modal popup extender

I have a program where i use a modal popup that allows the user to add new items to a database, this is working fine but i would like to add some validation. For instance when an exception is thrown due to a duplicate entry. I have looked through a couple of examples on how to use the asp.net custom Validation control. The problem is t...

IE HTTPS Ajax request image not showing up

Hi: In IE (7 or 8) and HTTPS mode, following RESPONSE is delivered for an AJAX request. My issue is the img was NOT requested at all by IE (figured out using Fiddler), broken img is shown instead. It all works perfectly in HTTP mode in IE and other browsers no problem rendering in both mode (please don't tell me not to use IE). Any thou...

Simple ajax asp.net calendar extender not working

I've made a new project with one page and a reference to AjaxControlToolkit.dll The calendar extender below doesn't work, what have I done wrong? Thanks <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlTool...

How to make JS execute in HTML response received using Ajax ?

I have following workflow div on the page is used on users operation request is done to server side page whose html is retrived using ajax and dumped into the div With html markup some JavaScript is also dumped however that is not getting executed. Why is so ? What could be the possible fix ? Though i avoid doing things like this bu...

Safari Web Inspector is not updating when I update an element with ajax

I have a checkout page http://www.oipolloi.com/oipolloi/shop/viewbasket.php with multiple ajax calls after certain items update (EG look up postage cost when country is changed, then update discount boxes etc). I've asked for help in the past about the best method of making sure ALL calls have returned before allowing the form to be subm...

Is it possible to disable/bypass the login popup caused by mod_auth_ntlm_winbind (Single Sign On) and still get $_SERVER['REMOTE_USER']?

I have an intranet on a remote Web server. This will be integrated with Active Directory on our local server. The web server is running Apache / Linux and the AD server is running Windows 2003. This is all done with VPN. Login to the intranet is conducted in two ways: 1. Users who are logged in to AD to be logged in automatically with S...

ASP.NET AJAX performance improvement after clearing browser cache

Hi Can anyone explain why performance of an ASP.NET AJAX application would improve slightly after clearing the browser cache? Also why do javascript errors stop occuring after clearing the browser cache? The app has a lot of UpdatePanel's. One ScriptManager in the masterpage. A few model popups. Thanks. ...

JQTouch link with no animation

Hello Programmers! Im building a web app using JQTouch and have been very impressed with it so far! I'm currently having a little problem in that I now need to link between certain parts of my site with NO ANIMATION. Reason for this is that I'm adding a 'tabbar' at the bottom of my page and in keeping with the whole iPhone feel would li...

Get html that is generated via AJAX in webclient

I often go to a site to look stuff up. I thought to myself: "Hold on. I can program. Why am I going to this site manually when I can write a piece of software that does it for me?". And so I started. I'm using C#, so I found WebClient and Uri. I've managed to get the source code for the site, yet the problem occurred that the specific ...

CascadingDropDown in TabContainer and Target in other Tab

Hello, I have divised a page with a TabContainer. Before, this page worked with a CascadingDropDown that populate a DropDownList. Now this DropDownList is in another tab. So I catch an exception "Object Reference Null" when I try to see this page. How did runs to load a DropDownList in another Tab when I change a value in a different ...

Changing content on ASP.NET using AJAX

Hey, I have this asp.net code in my page : <div id="prx">ABC</div> And I want to change the value "ABC" to something when for example the user type a value in TextBox. How can I do that using Ajax ? Thanks ...

Wiring up JavaScript handlers after a Partial Postback in ASP.NET

I am trying to use LinkButtons with the DefaultButton property of the ASP.NET Panel in an UpdatePanel. I have read and used the various other answers that are around describing the wiring up of the click event so that a full postback is not done instead of a partial postback. When the page loads, I wire up the .click function of the Li...

How to do a comet long pulling with ActionScript3?

I want to load data from my web server, I want it be the AJAX/Comet way, my web-server long holds the request, response it until something happened. Thus, I wrote some as3 code like this: private function load(): void { var request:URLRequest = new URLRequest(url); var variables:URLVariables = new URLVariables(); ...

Call C# code-behind method with a <li> onclick...

Hey'all I got a li - list, one with an onclick: <ul class="tabs"> <li><a href="#tab1">Foobar_1</a></li> <li onclick="doMethod"><a href="#tab2">Foobar_2</a></li> <li><a href="#tab3">Foobar_3</a></li> <li><a href="#tab4">Foobar_4</a></li> </ul> Now, the method I want to call when clicked on a tab (the li's), updates...

jQuery modal dialog on ajaxStart event

I'm trying to use a jQuery UI modal dialog as a loading indicator via the ajaxStart, ajaxStop / ajaxComplete events. When the page fires, an Ajax handler loads some data, and the modal dialog shows just fine. However, it never hides or closes the dialog when the Ajax event is complete. It's a very small bit of code from the local server ...

jquery - loading inline javascript via AJAX

I have thrown together a quick prototype to try and establish a few very basic truths regarding what inline JavaScript can do when it is loaded with AJAX: index.html <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; </head> <body> <script type="tex...

Ajax file uploading with java back end?

I don't want to use flash. I've found multiple jquery libraries that do this. Right now I'm using this one: http://demo.webdeveloperplus.com/ajax-file-upload/ The problem is they all use PHP. I tried just pointing it at my servlet instead of the PHP file, but it never gets called. ...

How to update a table row with save button using .ajax

I have a table which has one row and only one cell will be editable. I have accomplished this with the following code. $("td#effEndDate").click(function() { if (!$(this).hasClass("edit")) { var value = jQuery.trim($(this).html()); $(this).html("<input id=\"txtEdit\" type=\"text\" value=\"" + ...