ajax

Ajax synchronous callbacks

Hi All, I have a pageTest.html in local folder,this page call a service.ashx?i=...(that return value param passed incremented +1) with follow Ajax code: . . getIncr: function(parameters, success){ $.ajax({ async: false, type: methodType, url: getTarget, data: "n="+parameters, ...

AJAX Error Handling Recommendations and Best Practices

I would like some recommendations on the best way to handle errors in AJAX-powered applications. Specifically, the methods used to log the errors and what do you do to address them. An obvious priority is that I don't want any user input lost. I was hoping to come up with some sort of fallback mechanism so that if an AJAX post fails, ...

Is there a control out there that combines type ahead/auto suggest functionality along with a multi-select? B

Basically, I'm trying to type for something (say 'United' in a country field). I would expect the auto suggest feature to suggest 'United States of America' and 'United Kingdom' for example. On top of this, I would like to select both 'United States of America' and 'United Kingdom' by clicking on a link or button available directly on ...

can you asyncronously notify a web browser?

I'm trying to figure out if there's a way I can somehow notify a web browser of an event from a web server. I know Ajax lets you asynchronously make a request to update a section of a page. I guess I could have a timer periodically ask for updates. But, I'd prefer to avoid a polling scheme, if possible. Is there a better way to go and ...

What do the different readystates in XMLHttpRequest mean, and how can I use them?

XMLHttpRequest has 5 readystates, and I only use 1 of them (the last one, 4). What are the others for, and what practical applications can I use them in. ...

jquery get() munching data?

I am trying to retrieve an entire webpage using get() and filter() out a specific section. This works fine when the page only includes the section I want to filter but if I input the entire page then it does not work. Example: $(document).ready(function() { $.get("source.html", function(data) { $(data).filter(".spad").appendTo("...

ASP.NET server side tags vs. JavaScript-based UI and REST

Hi, I've been developing "traditional" ASP.NET applications with server side ASP.NET controls and code behind files, etc. Now I'm exploring several JavaScript libraries like: jQuery, YUI, Ext Js, Prototype. (also it's hard to pick one, but it's another post). All these libraries make client to server communication a lot easier, but they...

jQuery plug-in to hookup AJAX form - MUST provide error callback

Whats the best way to hookup AJAX functionality to an existing Form using jQuery and allow for an error handling callback. The jQuery.ajax(...) built in function has the following (useful) callback functions: beforeSend complete dataFilter error success I thought I'd found my answer with the jQuery.Form plugin...

How can I check the security of my website?

How can I check the security of my website? What are the best ways to avoid security holes? ...

Programatically prevent ASP .NET AJAX scripts from rendering

Does anyone know of a way that I can stop all the .NET AJAX scripts from rendering, even if a ScriptManager exists on the page? The ScriptManager's Visible property has been overridden and disabled so that you receive a NotImplementedException if you try to set the Visible property. The reason I would like to do this is that I don't wa...

SPRY datasets.. and the promise of disconnected datasets.. anything more?

I used SPRY about a year ago to experiment with the fact that you could essentially load a "dataset" into Javascript/browser, and act upon that to bind to form fields like textboxes, combo dropdowns etc. I really have been trying to find something really simple to allow me (a coder) to write the backend code to get the data, and my part...

NHibernate connection/reader closed from ajax context

I have run into trouble using NHibernate when I am doing ajax calls using JQuery. I get different exceptions regarding either the connection or reader being closed like: "Invalid attempt to call Read when reader is closed". Does anybody know how to fix this? ...

Scalable polling of an AppEngine application from numerous "active" clients?

I'm working on an application that will run on Google AppEngine. I plan to have the web interface of that application wait, among many other things, for notifications coming from the AppEngine server. Ideally I would have liked to use an XMLHttpRequest() to make a request to the server that would be waiting until the next notification ...

Asp.NET Webpart > Userctrl > ClientScript.RegisterStartupScript not working!?

I have a form default.aspx with a scriptmanager and webpart manager. I have 4 webpart zones. One of the zones has a basic user control for its content. The user control has a button inside an update panel and I have the following on the click event for the button: Protected Sub cmdMarkComplete_Click(ByVal sender As Object, ByVal e As S...

Is ASP.NET MVC flexible?

Can it easily be combined with jQuery, (ASP.NET) Ajax, ASP.NET webforms, other frameworks. What about pulling dynamic code from ASP.NET MVC into for example classic ASP? Does the MVC model mean that it is easy to customize code? Background: I have some experience that it can lead to problems to integrate frameworks relying on Javascr...

Rails: Ajax auto-suggest plugin?

Is there a rails (or other javascript framework) plugin that does the auto suggest like the Related Questions suggestions here in Stack Overflow where after leaving the text field a list of related items shows up? Also is there a name for this UI patterm? ...

ASP DropDownList UpdatePanel IE JS Errors

I'm getting a peculiar javascript error with IE. I have an updatepanel, and inside it a drop down list. When I change the dropdownlist's value, it gives me error "Line: 5 '__EVENTTARGET' is null or not an object'. I took a look, and this Line 5 and __EVENTTARGET are in the ASP.NET generated javascript code. I want a dropdownlist that fi...

C# WebBrowser control -- Get Document Elements After AJAX?

Hello. I'm writing an application that uses the WebBrowser control to view web content that can change with AJAX that adds new content/elements. I can't seem to get at the new elements any way I've tried. BrowserCtl.DocumentText doesn't have the up-to-date page and of course it's not in "view source" either. Is there some way to get thi...

How to build a tree control with JSON and jQuery

I have a web page on which I would like to display dynamically a tree based on a JSON array with the help of jQuery. Each node of my tree has a checkbox associated to it. When I click a node which has children, I would like all of them to be checked. I’ve already taken care of printing the tree and the checkboxes and I am now trying to s...

Evaluating ajax data forcefully as XML in jquery.

$.ajax({ type: "GET", url: "something.html", dataType: "xml", success:function(data){} , }); The content while accessing "something.html" is an XML but the above call is failed where if I use "something.xml" it is working fine. Is it possible to make jQuery to forcefully evaluate the data as XML, without worrying ab...