ajax

AJAX request denied on FIREFOX but not on IE

I need to make an ajax request, IE Works OK, Firefox URI DENIED. I googled and I found the the only way is to use JSON to eliminate and restrictions. Is there some one got any example? Thanks ...

How can I maintain the checkbox state on a page that is refreshed by Ajax?

I have a html table in my application that shows the state of various jobs running in the system. Each job has a state associated with it e.g a swirly gif for running jobs. New jobs have a checkbox next to them that allows the user to select and kick off the associated job. The table is a struts2 auto refreshing div (sx:div), it refres...

AJAX problem

I seem to be having a problem with this script, it stops after alert 5. var _v = 0; var _v2 = 1; function landscapeUpdate(){ alert("1"); var wrapperId = '#gameWindow'; alert("2"); var postFile = 'game_window.php'; alert("3"); _v++; alert("4"); _v2++; alert("5"); $.post(postFile, { v2: _v2 , v...

How can an Ajax callback realize that a user's authenticated session has timed out?

I'm using django and jquery to implement authenticated sessions and Ajax requests. I have authenticated session timeouts to log authenticated users out after a long period of inactivity on my site. Some of the pages on my site have a lot of AJAX calls in them that require the user to be in an authenticated session. When a user leaves ...

Can you insert a form onto a page using jQuery's $.load() function?

I have a page where there's a drag and drop table where the order of the rows determines the value of a subtotal. However, it's more complicated than just addition and I would rather not duplicate the logic in JavaScript to update the values. A simple solution would be to reload the whole page using Ajax and then replace the table from ...

How can I keep my AJAX call from posting back to the server when using Prototype?

I am trying to keep my AJAX call from posting back to the server when using Prototype. Code: echo " <a href='my.php?action=show&amp;id=".$fid."' onclick=\"return display('".$fid."');\"> "; echo "" .$fname."</a> "; How can I do this? ...

Best ajax framework for drag and drop support

I have to build an app and the drag and drop functionality seems to be the most onerous part. What is the best Ajax framework for Drag and Drop according to one or more of the following parameters: Learning curve Code size Browser compatibility ...

Some Parameters in $.ajax not passing

Hi there, I have this function $.ajax({ url:aurl, method:'GET', beforeSend:function(req) {req.setRequestHeader('Authorization', auth);}, cache:false, dataType:"json", error:function() {...}, success:function(t) {...} }); However, the parameters: method beforeSend Cache are ignored by my browsers FF3, IE8 and Chrome. So, whatever i...

Ajax Security

We have a heavy Ajax dependent application. What are the good ways of making it sure that the request to server side scripts are not coming through standalone programs and are through an actual user sitting on a browser ...

Multiple UpdatePanelAnimationExtender Controls AjaxControlToolKit

I am having a problem with the UpdatePanelAnimationExtender and multiple update panels. What I want to happen is for the panel to fade out, update, and then fade back in. However, it fades out all the panels and only fades the one I updated back in. Apparently this is a rather common problem with UpdatePanelAnimationExtender, but I ...

uploading a file via ajax with php

I would like to know if it is possible to upload a binary file via ajax and php, and have a link to download it. I would like to avoid refreshing the entire page, as with a standard html form. So far I have been using forms to get information, such as radio and text boxes, and using javascript to override the default behavior. Is a simil...

Stack overflow error when using JQuery/ASP.NET for simple ajax chat

Hello, I am trying to create a simple ajax chat using JQuery and ASP.NET. My code works like this: When the page loads it refreshes the 'chatbox' div with a request to the messages.aspx page, which handles getting new messages from the database and kicks off an auto refresh with the setTimeout(). Whenever the user clicks the send b...

Call backing bean method through XmlHttpRequest object

Is there a way to call a backing bean method using the javascript XmlHttpRequest object or through jQuery in JSF? ...

Animating UpdatePanels

I've tried using the UpdatePanelAnimationExtender that is part of the Ajax Control Toolkit, but the biggest complaint I have with it is that it doesn't wait for your animation to finish before loading in the new content. I would like to do something like the following: Start Async request to server Fade out the content in the UpdatePa...

.net server control performance compromise

We are finding that for a large sets of data server controls (with the amount of postbacks) they do often times result in a very slow performance. While we don't want to do all the business logic in Javascript, we would like to speed things up. What were your solutions/ideas? AJAX? ...

Is it possible to preload page contents with ajax/jquery technique?

Is it possible to preload all page contents (like showing a loading bar / animated gif.. or loading text.. ) until the contents are fully loaded and then displayed to the user/visitor ? If this is possible, can you give me just directions or resources to follow to achieve this. Because I was able to find image preloaders easily, but I am...

How do I design a web interface for browsing text man pages?

I would like to design a web app that allows me to sort, browse, and display various attributes (e.g. title, tag, description) for a collection of man pages. Specifically, these are R documentation files within an R package that houses a collection of data sets, maintained by several people in an SVN repository. The format of these f...

Custom handler working on Asp.NET Development server but not on IIS 5.1??

Hi guys, ive got a stupid problem. My Custom handler is working 100% on Asp.NET Development server but when i publish the site to IIS 5.1 whenever i try to run Comment/Find (which finds a user via an AJAX call) (i know the naming of my handler sux!!! :) I get this error: The page cannot be displayed The page you are looking for canno...

Good Ajax framework for J2EE

I'm relatively new to J2EE and I'm in need of a framework that will simplify AJAX for me. At the moment I have code that uses the dojo toolkit to draw a graph, but I'd like to have the graph updatable via AJAX. is there a good framework that allows me to do Ajax call backs and insert and run javascript into a page? If so is there a goo...

Rails: link_to_remote update doesn't render the view

Hi, I have a link_to_remote to render the edit action of an object. But all it does is update the Dom Element with this response try { } catch (e) { alert('RJS error:\n\n' + e.toString()); alert(''); throw e } My link looks like this: = link_to_remote t("txt.edit"), :update => dom_id(comment), :url => edit_comment_path(comment.id) ...