ajax

Why can't I delete this cookie?!

Okay, here is the 411 - I have the following event handler in my Global.asax.cs file: private void Global_PostRequestHandlerExecute(object sender, EventArgs e) { if (/* logic that determines that this is an ajax call */) { // we want to set a cookie Response.Cookies.Add(new HttpCookie("MyCookie", "true")); } } Tha...

asp.net mvc, ajax and progressive enhancement

I am looking for a reliable technique for adding Ajax to a working ASP.NET MVC application. I want to use jQuery, and understand how to use the ajax functionality from jQuery. What I need to know is how I should write my controller so that I can run the site without javascript, but at the same time make ajax calls possible without the ne...

Ajax and a restricted uri

I would like to make an ajax call to a different server (same domain and box, just a different port.) e.g. My page is http://localhost/index.html I would like to make a ajax get request to: http://localhost:7076/?word=foo I am getting this error: Access to restricted URI denied (NS_ERROR_DOM_BAD_URI) I know that you can not...

AJAX Dropdowns (HTML Select) in Firefox with JQuery

Help! I am using JQuery to make an AJAX call to fill in a drop-down dynamically given the user's previous input (from another drop-down, that is filled server-side). In all other browsers aside from Firefox (IE6/7, Opera, Safari), my append call actually appends the information below my existing option - "Select An ". But in Firefox, it ...

jQuery ajax $.post successfull ?

I'm trying to figure the result of this call if it was successful or not. The successFunction doesn't get called so i'm assuming it was not. How do i know what went wrong? xmlRequest = $.post("/url/file/", { 'id' : object.id }, successFunction, 'json'); Do i use the xmlRequest object? ...

Something special about Safari for Windows and AJAX?

Some common pitfalls I should keep in mind? ...

AJAX Partial Page Load?

I have a page results page (you get there after submitting your search query elsewhere) whit a whole bunch of gridviews for different type of data objects. Obviously, some of the queries take longer than the others. How can I make each gridview render as soon as it has the data it needs? This has been tricky for me because it must work...

How to create multiple records at once with ActiveScaffold in ROR

I am wanting to use ActiveScaffold to create assignment records for several students in a single step. The records will all contain identical data, with the exception of the student_id. I was able to override the default form and replace the dropdown box for selecting the student name with a multi-select box - which is what I want. Th...

What are the best strategies for using multiple AJAX libraries?

What experience can you share about using multiple AJAX libraries? There are useful features in Prototype, some in jQuery, the Yahoo library, etc. Is it possible to include all libraries and use what you want from each, do they generally all play nicely together with name spaces, etc. For the sake of speed is there a practical limit to ...

How can I create a loop in an onClick event?

I want to write an onClick event which submits a form several times, iterating through selected items in a multi-select field, submitting once for each. How do I code the loop? I'm working in Ruby on Rails and using remote_function() to generate the javascript for the ajax call. ...

Is there a way to asynchronously filter an IList?

Ok, so there has to be a way to do this... no? If not I'd love some ideas. I have two repeaters and an image inside an update panel along with some AJAX dropdowns with link buttons to the left. I want to update the data inside the update panel as fast as possible as values are selected from the dropdowns. What do you think would be t...

How to prevent IE6 from refetching already-fetched images added via DOM manipulation

If you add a image to your browser's DOM, IE6 will not check its cache to see if it already downloaded the image but will, instead, re-retrieve it from the server. I have not found any combination of HTTP response headers (of the ensuing image request) to convince IE6 that it can cache the image: Cache-control, Expires, Last-modified. ...

ASP.NET WebService Returns Gibberish Characters When Throwing Exceptions

Greetings! I have a web service (ASMX) and in it, a web method that does some work and throws an exception if the input wasn't valid. [ScriptMethod] [WebMethod] public string MyWebMethod(string input) { string l_returnVal; if (!ValidInput(input)) { string l_errMsg = System.Web.HttpUtility.HtmlEncode(GetErrorMessage...

Best Way to Organize an ExtJS Project

I've just started developing an ExtJS application that I plan to support with a very lightweight JSON PHP service. Other than that, it will be standalone. My question is, what is the best way to organize the files and classes that will inevitably come into existence? Anyone have any experience with large ExtJS projects (several thousa...

What is the best online javascript/css/html/xhtml/dom reference?

I'm a front-end developer and I was looking for opinions about the best all-round online documentation for javascript/css/html/xhtml/dom/browser quirks and support. I've tried Sitepoint, Quirksmode, W3Schools but all of these seem to be lacking in certain aspects and have been using them in combination. ...

Google maps style scrolling anyone?

I am looking for some javascript plugin (preferably jquery) to be able to scroll through an image, in the same way that google maps works. I can make the image draggable but then i see the whole image while dragging even if the parent div is overflow:hidden. Any help would be greatly appreciated! ...

How to Call a method via AJAX without causing the page to render at all?

I am working with ASP.net. I am trying to call a method that exists on the base class for the page I am using. I want to call this method via Javascript and do not require any rendering to be handled by ASP.net. What would be the easiest way to accomplish this. I have looked at PageMethods which for some reason are not working and found...

How to conduct blackbox testing on an AJAX application?

What's the best, crossplatform way to perform blackbox tests on AJAX web applications? Ideally, the solution should have the following attributes: Able to integrate into a continuous integration build loop Cross platform so I you can run it on Windows laptops and Linux continuous integration servers Easy way to script the interactions...

Extracting text from a PDF using JBoss Richfaces

I am trying to write a web-app to manage references for my PhD thesis. I used to manage this information inside a personal Confluence (fantastic tool! - http://www.atlassian.com/software/confluence/) instance however I'm fed-up with the opening of PDF's and cutting and pasting values into fields that I wish to record. I have exposed a ...

How to display the progress of a server script in jQuery?

With this code I can show an animated gif while the server script is running: function calculateTotals() { $('#results').load('getResults.php', null, showStatusFinished); showLoadStatus(); } function showLoadStatus() { $('#status').html(''); } function showStatusFinished() { $('#status').html('Finished.'); } However...