ajax

Ajax implementation in sharepoint

Hi I was trying to implement ajax in my sharepoint site.I am following this blog.. http://sharepoint.microsoft.com/blogs/mike/Lists/Posts/Post.aspx?ID=3 I did changes in the default webconfig file.But when i kept script manager in my sharepoint masterpage using sharepoint designer then it is showing error as script manger is not permi...

having problem getting the posted array from jquery ...

hi im trying to post a group of array using jquery post method but , am having trouble getting the value of those array how can i get the values of the array that i have sent ? if somebody could help me i would be grateful.... here is what i have done: $(document).ready( function() { $("#submit_info").click ( function() {...

AJAX Enabled WebApplication

Hello does sy know why the Ajax Enable WebAppication in VS 2008, even if you put the target framework 3.5, target afterwards .NET 2.0 framework? (so I create the Web application with ASP.NET 2.0 Ajax Extensions 1.0 features enable (.NET framework 3.5) , then I check the Target Framework in the Application Tab of the project properties ...

The value of 'this' in a callback function

I have this code for doing an ajax request to a webservice: var MyCode = { req: new XMLHttpRequest(), // firefox only at the moment service_url: "http://url/to/Service.asmx", sayhello: function() { if (this.req.readyState == 4 || this.req.readyState == 0) { this.req.open("POST", this.service_url + '/HelloWorld', true); this...

Why don't jQuery's event handlers work with changed DOM elements?

In my application I have a drop-down form that fires up an AJAX request onchange and returns the selected user name value with a "delete" image next to it. <div id="el">User Name <img src="ico/del.gif" onclick="ajax_delete(12)" class="del" /></div> Strangely if the page was loaded for the first time, the following jQuery code is execu...

How to "push" updates to individual cells in a (ASP.NET) web page table/grid?

I'm building something similar to a price comparison site. This will be developed in ASP.NET/WebForms/C#/.NET 3.5. The site will be used by the public, so I have no control over the client side - and the application isn't so central to their lives that they'll go out of their way to make it work. I want to have a table/grid that display...

onBecomesVisible in Javascript for clickless pagination?

is there any javascript library that provides me with a custom event as soon as a certain element becomes visible in the browser canvas? the basic idea is, as soon as the last element in a list becomes visible on the screen, i want to load the next 10 elements so that the user does not need to click on the "next page" button. to achiev...

Authentication - asp.net ajax javascript call to wcf

Hello, We are loading the combobox on demand using a WCF service. This way, as the user starts typing, the ComboBox talks to the WCF service and fetches the necessary data. We have forms authentication on the ASP.NET application. The issue is that I want to only allow the authenticated users from our system to make this WCF call. I...

Session security and ASP.NET Ajax

I'm starting to use ASP.NET Ajax. Following Eric Pascarello's recommendations, I always operate under the assumption that anything can come from the client side (including fake requests). One matter which I have a hard time accounting for is user authentication. Since we use .NET's built-in session state management mechanism, I'm a ...

How can the UpdatePanel's ContentTemplate be hidden while an UpdateProgress is being used?

What is the easiest way to hide the Contents of an Update Panel when the UpdateProgress is invoked? ...

Redirect from within an Ajax form post

I have an action method that depending on some conditions needs to return a partial view via ajax, or redirect to another Controller/Action. The correct view is returned but it is placing it in the Ajax forms UpdateTargetId rather than redirecting to a completely new page. Anyone have any idea how I can accomplish this? ...

Different AJAX XML results from same PHP file with same POST parameters using JQuery

I'm using the JQuery .ajax method to get the results of a simple PHP query in XML (which I've done various times within this project without a problem). However, the XML result that I receive from within my main project is different to what I expect (as tested by simply viewing the PHP file) when viewing the results in Firebug's console...

Can Ajax HTTP and HTTPS work side by side?

Assuming a single page application accessed initially via HTTP that uses AJAX for all server interaction, is it possible to use HTTP for regular data transfers and then switch to AJAXian HTTPS requests for secure data transfers? If so, how would the browser handle the certificate and locking notification when a HTTPS AJAX request was ...

Preventing an duplicate ajax events in jquery

What is a good way to block until a previous ajax event is completed? I followed http://stackoverflow.com/questions/719194/how-can-you-make-a-vote-up-down-button-like-in-stackoverflow but if I click the button fast enough, it'll send multiple (and maybe inconsistent) events to the server. How do I make it so it'll forcethe user to wait...

Jquery $.ajax() json call to *.js file causes browser to ask 'save/open'

I'm able to issue $.ajax() requests to urls that have a '.js' extension just fine when I use {...'dataType' : 'script'...}. However, when I use {...'dataType' : 'json'...} the browser (Opera and FF, so far, but I'll bet it's universal) asks to save/open the results of the request. Note that my 'success' callback runs fine and uses the r...

Uses of AJAX

What is Ajax ? How does it work ? How to use it ? What are the performance and security concerns and how to avoid them ? ...

Are there any disadvantages to using AJAX?

Are there any disadvantages to using AJAX? ...

Why don't browsers let you open a regular connection instead of Ajax or Comet?

If you want to open a two-way connection between the browser and server, the only choice is to poll (hammer the server), or use comet (crufty and prone to disconnects). Why don't browsers just let you open up a plain TCP connection? Is there any practical benefit to not having this ability? ...

How to make SO tags autocomplete with Ajax

Can anybody tell me how can I implement something like the Stack Overflow tags autocomplete textbox, with Ajax? ...

JavaScript synchronization options.

Hi, I was wondering whenever exists a solution to perform synchronization in JavaScript code. For example I have the following case: I'm trying to cache some response values from AJAX call, the problem is, that it's possible to perform simultaneously several calls, therefore it leads to race condition in the code. So I'm very curious to ...