ajax

IE6 Table cell alignment problem with ajax

This one is weird, I have a page that consists of a html table in a div called 'rates-viewer'. If you load this page in IE (6 or 7), you will notice that the contents of the table headers is misaligned over to the left. http://tinyurl.com/666zcv If you choose a country from the dropdown, it triggers an ajax call to a script. This scri...

javascript not working, no errors

Hello, I have the following javascript code, which loads without error, however the update function does not actually seem functional, as get_Records.php is never loaded. I can not test if get_auction.php is loaded as it is loaded from within get_records.php One of my main concerns is that I am doing the wrong thing by having update() ...

Determine when an user is typing

Hi there, I am building a search box (input field) which should make a server call to filter a grid with the text being inserted on it but I need to make this in an smart way, I need to fire the server call only if the user has stopped. Right now I'm trying to implement it, but if someone knows how to do it I'll be very pleased. Anyway,...

Workaround for IE's Non-Bubbly Submit Events

I'm working on a large web application with a lot of AJAX whose event handling has gotten out of control. I'm trying to set up an event delegation system to manage all of it, but am wondering if there's a workaround for IE's non-bubbling form submits (there are a lot of forms that get inserted/updated via AJAX). The best thing I've com...

Pasting an image from clipboard to a website

I need to come up with a solution for users to be able to paste an image on to a website, then upload that image on to the web server. I'm not sure what the right solution for this - I am pretty sure javascript is out of the question because I don't think it can handle binary clipboard data (or any clipboard data?) So, I'm not sure whic...

Is there ANY way to suppress the browser's login prompt on 401 response when using XmlHttpRequest

I am using jQuert .ajax function to call a page method. The site is using FormsAuthentication. So when an authentication ticket expires a call to the page method will obviously cause a redirect to the login page. Now, the geniuses that wrote the System.Web.Handlers.ScriptModule decided that if for some reason a REST style call to a pag...

Can you send dynamic data to a processing applet?

I have an ajax page which pulls data from a database. I'd like to add a processing applet to visualize the data but i can't figure out how to update the visualization as the data changes. The idea is to be able to push new data into the visualization. I'm not tied to the processing technology, anything will work. Processing just seems t...

How to save history within UpdatePanel ?

I created an admin page for a web application, and it's mostly ajax. Almost all the events in the page update one of the UpdatePanels on the page. How can I save each UpdatePanel state in the user's history so when the user pushes the browser "back" button they wont get redirected to the login screen ? ...

ASP.NET Ajax Calendar

Hi Guys, I am using MS AJAX ASP.NET Components (Calendar Extender) and I'm finding this problem. Some weekdays are not being displayed.... I uploaded a picture so you can view exactly how it is being displayed... The one on the right (calnder) in the picture is taken from microsoft's sample. Have you got any idea what is causing thi...

Better way or reusable code to populate an HTML element or create a select after a jQuery AJAX call

I find myself doing 2 things quite often in JS, at the moment using jQuery: The first is the populating of an HTML element, which might look like: $.get('http://www.example.com/get_result.php', { id: 1 }, function (data) { $('#elementId').html(data); }); The second is populating a select element with a JSON result, such as: $.ge...

How do you handle Rail's flash with Ajax requests?

I'm pretty happy with the solution that I came up with. Basically, I have a helper method that reloads the flash inline, and then I have an after_filter that clear out the flash if the request is xhr. Does anyone have a simpler solution than that? ...

JQuery AJAX Return Link Not Working

I have a problem in integrating PHP and JQuery: My main file is MyFile.html and the AJAX call file is ajax.php. The ajax.php function returns links to myFile.html as <a href Link.php?action=Function ></a> (i.e echo " <a href Link.php?action=Delete";) When I click the returned link from MyFile.html it's performing as expected. I nee...

JSF: Reset value on failed validation

Hi, I want to to achieve the following: A page should contain two inputfields and a result field that contains a server calculated result. Each of the input fields shall immidiently be validate using a4j. The result field shall on any change be updated. Here is what I've got so far: .. <h:inputText id="first" value="#{bean.first}"> ...

ASP.NET AJAX No update of screen on partial postback

We have an issue on our page whereby the first time a button posts back (we have ASP.NET ajax to enable partial updates) nothing happens, then on every subsequent click, the information is updated as if the previous event fired. Here's the code for the page. The events are button clicks fired from within the table. Which is rerendered a...

AJAX form editing and design

I want to build into mt ASP.NET application the ability for users to fill up forms, but the forms are not something I can hard-code into my (Enterprise) software. So I need one screen that lets end users create the forms. Doing it the 2.0 way, I just love what PollDaddy did in their survey editor (great job guys!). How do I replicate th...

Sys is undefined - ajax issue in IE 7 only

I have a weird issue that only seems to be affecting IE 7. The web site is a 3.5 c# asp.net website that utilizes ajax and the ajax control toolkit deployed to a win 2003 server. Everything appears to be correct in the web.config. In fact, everything works perfectly in IE6 and Firefox 3. It is only in IE7 that I get the dreaded sys is un...

Load Balancing, AJAX, and You.

If you were an asynchronous javascript call in an Asp.Net MVC environment, and you had to work with a round-robin style of load balancer, would you be able to find your way home? edit: adding clarification ..using in-memory session state. ...

How to use jQuery

I have written jQuery Main.html, ajax.php. The ajax.php returns the link of images to Main.html Now In Main.html, I have Image1, Image2, Image3, etc. My Main.html <html> ... # ajax.php Call ... # Return Fields From Ajax.php </html> My ajax.php echo "<a href='src1'><img src='src_path1' id='fid1' alt='Name1' /></a>Click To View i...

How Load a PHP page in Same Window in JQuery

Dear All, I have Test.php and it has two functions: <?php echo displayInfo(); echo displayDetails(); ?> Javascript: <html> ... <script type="text/javascript"> $.ajax({ type:'POST', url: 'display.php', data:'id='+id , success: function(data){ $("#response").html(data); } ...

javascript problem - including php

Hello, I have the code pasted below, which servers as the core of a small ajax application. This was working fine previously, with makewindows actually displaying a popup containing the rsult of artcile_desc. I seem to have an error before that function however, as now only the actual php code is outputted. This is not a problem with my...