ajax

How to Disable ASP.net AJAX Framework in ASP.net 3.5

I'm working on an ASP.net 3.5 website with MooTools as the AJAX framework. So, I want to disable ASP.net's AJAX framework so it behaves more like ASP.net 2.0. This is to decrease page loading times and to reduce incompatibilities. Thanks! ...

How do I convert an ASP.NET page using Ajax webmethods to an Ajax-enabled servercontrol?

In this tutorial I am reading, Dave Ward creates a page that shows the server date in a label without using the update panel. I am trying to learn how to create servercontrols that use ajax for partial postbacks where methods within the control are called from clientscript generated by the same control, and I think that learning how to...

How to call a client side javascript function after a specific UpdatePanel has been loaded

How is is possible to call client side javascript method after a specific update panel has been loaded? Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler) does not work for me because this will fire after ANY update panel finishes loading, and I can find no client side way to find which is the one ScriptMan...

How do I insert a DOM element in an ordered list (in Dojo)?

I'm trying to make an AJAXy submission and have the resulting partial be inserted into my list at the proper place. I can think of a few options, but none is terribly good: Option 1: Return JSON, do rendering in Javascript. That seems like the wrong place to render this, especially since the list itself is rendered in my application s...

Javascript memory leak cleanup in window.unload

Javascript client side application. Trying to eliminate memory leaks leads to ugly (to say the least) code. I am trying to clean up in window.unload instead on messing up all the code trying to avoid them. We use mostly element.onevent=function(){..}; pattern, that results in closure (mostly wanted) and memory leak. We do not use jav...

Does IE6 support XMLHttpRequest.abort()?

Am I correct to understand that the abort() method for XMLHttpRequest objects is only available starting from MSIE 7? If so, what equivalent option do I have for aborting an XMLHttpRequest object on timeout in MSIE 6? Using a JS framework to abstract the problem away is not an option at this time I'm afraid :(. I'm on a legacy system th...

phpcode generating broken javascript and html code

Hello, I have the following PHP code pasted here: http://www.nomorepasting.com/getpaste.php?pasteid=22461 Which produces the following html code: http://www.nomorepasting.com/getpaste.php?pasteid=22462 My problem is that the popup window is not created, or if it is created that it is empty. I have used JSON encode as previously sugg...

How to retrieve values after # in a URL using c#

I am trying to implement ajax back/forward button support and therefore writing variables after a # in my url. I would also like the user to be able to copy the url and then link back to it. Does anyone know how can I parse the url and grab my "querystrings" even though they are behind a #? ...

ASP.NET MVC Ajax.ActionLink with Image

Hi Everyone, is there anyway to have an image act as an ajax actionlink? I can only get it to work using text. Thanks for your help! ...

how do widgets like "http://sharethis.com/" make what seem to be XSS calls

How is it that tools like this one can make an ajax style call back to a central site? basically they give you a " tag to put on your site where ever it is. So in this widget you have the ability to ask for an email to be sent to you for the page you're currently on. I assume this makes an ajax style call back to share this who sends out...

streaming binary data over http

I am looking into streaming binary data into a browser (through http). I am looking for opinions as to good ways to go about doing this. Ultimately I will have a real time data source and I would like to manipulate this data and display it (in real-ish time) in a browser. Firefox comes first, IE would be nice... but I'm not that picky. I...

How do I get a PHP script to send and receive data from an already running process?

I'm trying to create a simple AJAX to Telnet client for the web. I may be re-inventing the wheel by doing this, but it is a learning project for myself. At the moment I haven't written anything, I'm just trying to get the idea wrapped around my brain. It doesn't necessarily have to be PHP. If I have a telnet client that supports multipl...

How do I Get the Autcomplete Control script side with a Script control (ASP.Net)

Problem How do I capture and assign the events on an Ajax Toolkit autoomplete control using a script control on the script file? Explanation I basically created a script control to combine a textbox and an autocoplete control so that I could have a working generic control for an autocomplete. The next step was to add things like a pro...

Not Detecting Flash 10: World's Most Widespread Web Video Bug?

Here's the Question: What is the best way to make sure that your requirement for Flash Version "x" on a site will properly detect presence of later-version Adobe Flash Player Version "10" (or "1y" for that matter)? Now here's the mystery: Why are so many sites that require Flash Player versions 8 and 9 or better failing to detect Flash ...

Javascript / Flex communication use case [need advice]

Hello everyone, I have a web page with a flex component, the flex component is responsible for creating an image from user inputs. Once an image is ready the user enter some more information in the HTML form and click on the send form button. When this button is clicked, javascript calls a function on the flex components which returns...

How do I reduce view duplication between client and server?

I'm working on an AJAXy project (Dojo and Rails, if the particulars matter). There are several places where the user should be able to sort, group, and filter results. There are also places where a user fills out a short form and the resulting item gets added to a list on the same page. The non-AJAXy implementation works fine -- the v...

Jquery AJAX with ASP.NET WebMethod Returning Entire Page

I'm doing some simple tests (in preparation for a larger project) to call an ASP.NET WebMethod using JQuery AJAX. In my example, my WebMethod returns a simple string. However, when I attempt to call it using JQuery, I get the entire HTML page content returned instead of just my string. What am I missing? Client Side : $(document).ready...

Javascript AJAX function not loading

Hello, I had a realtivley simple ajax application, which I have broken up to be more modular. The code is at the link below, and what I have mainly done is add the GetRecordSet function and allowed fetchcompelte to take a variable for which layer to put data in. It should work fine in thery. When I put alert()s in, the code seems to exe...

javascript function not working

i have the following javascript code: http://www.nomorepasting.com/getpaste.php?pasteid=22561 in which the function makewindows does not seem to be working. it does actuall create a window, however the html either contains what is quotes, or if I change it to child1.document.write(json_encode($row2["ARTICLE_DESC"])); creats a blank...

AJAX, PHP Sessions and simultaneous requests

I'll get straight to the point! My javascript sends about 20 AJAX requests to my PHP file to respond to (via an external web API) when the user submits their search. The results are stored in an array in the session array. I've read that browsers will only allow 2 simultaneous requests to a server. My first problem is that while there...