microsoft-ajax

Hosted Microsoft Ajax on CDN?

Google hosts popular ajax libraries for free at : http://code.google.com/apis/ajaxlibs/ You get to take advantage of their bandwidth, their CDN and most importantly that users may already have it cached from another site that is retrieving their JS files from google. Was just wondering if the same is true for Microsoft AJAX anywhere?...

CompositeScript without Microsoft Ajax JavaScript

I'm currently using the CompositeScript feature of System.Web.Extensions in order to combine my JavaScript files to reduce download time. However, by including any script manager, the MicrosoftAjax JavaScript code is included in my pages. I do not want this to happen as it adds a lot of unneeded code and it complicates event handling. ...

Help me re-center a ModalPopup within an iframe when the iframe's parent window scrolls

I have a web page with an iframe in it (I don't like it, but that's the way it has to be). It's not a cross-domain iframe so there's nothing to worry about there. I have written a jQuery extension that does the centering of a ModalPopup (which is called from an overridden AjaxControlToolkit.ModalPopupBehavior._layout method) based on t...

Javascript error in Firefox when using ASP.NET AJAX Control Toolkit

I have recently been building a website that utilizes the .NET Framework 3.5 SP1 and the AJAX Control Toolkit. The standard AJAX controls such as UpdatePanel work without problem. As soon as I add a CollapsiblePanelExtender control from the AJAXControlToolkit to the page I receive a Javascript error. (NOTE: this problem occurs on Firef...

Double loading issue in Javascript / jQuery/Microsoft-ajax hybrid

Hey StackOverflow. I Have an odd issue with some JavaScript code (again, I hate debugging JS code). I am working on a regular table - which I fill up from a JSON call, and have added in support for some paging (sort of 2x paging I guess you could call it), sorting and some selecting of rows. Everything is working nicely - BUT when a row...

Equivalent of String.format in JQuery

I'm trying to move some javascript code from MicrosoftAjax to JQuery. I use the javascript equivalents in MicrosoftAjax of the popular .net methods, e.g. String.format(), String.startsWith() .. etc, are there equivalents to them in JQuery? Thanks ...

Problem with Sys.UI.DataView and javascript

I'm using Microsoft Ajax to dynamically populate a list of contacts, given a json packet. My code is as follows: function fillContactsFromData(contacts) { // this is just for debug to let me know that the data is correct if (contacts.length > 0) { alert('ID: ' + contacts[0].ID + ', Name: ' + contacts[0].Name); } ...

Clicking A tag in IE6 and FF using jQuery

I have a div that is returned from an ajax call which contains an a. I need to click it in javascript, however I cannot find a way that works in both IE6 and FF. This works in FF but generates an object required error in IE6: $('#mylink').click(); This works in IE6 but generates a $("#mylink").get(0).click is not a function error in ...

When will a minified version of MicrosoftMvcAjax.js be available?

I have been running YSlow against my site and the Microsoft Ajax files are quite hefty: http://ajax.microsoft.com/ajax/3.5/MicrosoftAjax.js = 99.3k and http://ajax.microsoft.com/ajax/mvc/MicrosoftMvcAjax.js = 136.7k Is there likely to be a minified version of these files on the Microsoft CDN soon? ...

Setting a timeout for Ajax.BeginForm() in MVC

I have a query that takes a while to return results on our staging box and it has been wired to the front-end using an ASP.NET MVC Ajax.BeginForm(). I have searched the help and the internet but can't seem to find a way to extend the timeout for this operation. ...

UpdatePanel not refreshing in Accordion

Hi, I'm using MS AJAX's accordion control. It works fine normally, but I can't seem to get it to work with an UpdatePanel. My layout is like this: <div id="accordion"> <div><a href="#">Header1</a></div> <div class="acc_content"> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" > ...

What does the MS Ajax Framework use location.hash for?

I've noticed that the MS ajax framework touches the action of the default form during Sys.Application.initialize, appending location.hash to it. This is interfering with other code in my app that expects different behaviour. What does the framework do with that? It refers to the values it puts on the hash as 'state', but how do I find ...

.NET MVC Ajax Form - How do you hide it?

Ok, everything is 'functionally' working with what I am attempting to accomplish and once again, I am sure this is something dumb, but I cannot figure out how to do this one thing. I have an edit form for an entity, lets say a car. This 'car' can have 0 - many passengers. So on my edit form, I have all the fields for the car, then a l...

MicrosoftAjax date.format function not working in Chrome

There is a bug in MicrosoftAjax.js String.format function when using Chrome 5.0.375. The function randomly returns 'undefined' for some dates. I went around that by using jquery date formatter that comes with datepicker. ...

MS Ajax IE window load event not firing

I've read countless articles on ways to implement a window load event handler and tried everyone. I can get this to work perfectly in every browser except IE (7 & 8). Can anyone see what might be the problem here? 1. $addHandlers(window, { "load": this._StandardsMasterWindowLoadHandler, "resize": this._StandardsMasterWi...

Is there any real benefit to using the MicrosoftAjax library?

I have been using jQuery for the past couple of years now, and I'm comfortable with it. In every MVC project that I start, the first thing I do is delete the MicrosoftAjax files from the solution. I'm wondering now if there's any value in them though? What can I do with them that I can't easily do with jQuery? Also, why do Microsoft incl...

Ajax.Beginform : Error: 'id' is null or not an object on form submit

I have a popup where a user is asked to act on something (accept or decline). My goal is that in this case they can have more than one of these pending items, so after they act on one, it refreshes the popup data with the next pending item. It works, except there is one error. Error: 'id' is null or not an object on form submit. The ...

ASP.NET ScriptManager output not included in ASP.NET partial cache (ascx)

Hello, I wrote a Simple Control, that implements ScriptControl. This is holder for JQuery framework: /// <summary> /// Generic control with client behavior handled via jQuery /// </summary> public abstract partial class JQControl : ScriptControl, INamingContainer { /// <summary> /// Client method to be called after jQuery init...