ajax

JQuery UI Tabs widget error handling

When an ajax request fails, the JQuery UI Tabs widget stops responding and the "Loading..." spinner remains on the tab that caused the error. I can get the ajax callback to give me some sort of alert message like so: $('#localtabs > ul').tabs({ ajaxOptions: { success: tabLoadSuccessCallback, error: tabLoadFailureCallback} }); function...

How to create igoogle layout(drag & drop & store) using PHP and AJAX?

In igoogle, we can drag & drop the modules and then if we quit the browser and open it again, the position of each module still the same. I have tested couple of things: When not logged in, igoogle store the modules position in my cookies(cache). Because if I clear cache, it goes back to original position. When I logged in, after posit...

Multiple responses from one AJAX request

Not really looking for code examples here, just concepts. I have three sections on a page now that are being updated via three separate AJAX calls to PHP scripts, which return JSON. What would be the easiest way to condense these three calls into one larger call and receive the responses back on the client in JSON? How would I separate...

Web RAD tool suggestion?

I'm currently looking for good (and free if possible) Web RAD (Rapid Application Development) tool or Visual Ajax IDE, something like Morfik or Delphi for PHP with more usual deployment method (both create standalone application or web server modules). What i mean was IDE that support drag-n-drop component for building web application an...

Mulitple call ajax on the same page

Hello, I'm trying to create a chat application with jQuery without having to using setTimeout in order to minify the number of ajax request : function checkChat(){ new jQuery.ajax({ 'url' : './chat/check.php', 'cache' : false, 'success' : function(messages) { if( messages.length...

rails jquery ajax form validation

I'm looking to do some ajax form validation with jquery. Everything is in place and I can return my errors in a json object that looks something like this: errors => { "first_name": "cannot be blank", "password": "cannot be blank", "last_name": "cannot be blank", "email": "cannot be blank"} This works fine if I just want to display t...

Interaction with a database: JQuery Ajax, Web Services

Hi, I am trying to retrieve values from a database by using JQuery Ajax to call a web service routine. The web service routine is set up properly and returns the value I require, however I'm confused about how the jquery ajax works... I don't know how to retrieve the value $.ajax({ type: 'POST', url: 'myservices.asmx/ge...

Problem waiting til function has finished executing before it tries to execute again...

Hi, I'm using the $(window).scroll(); to specify a function to be call for when the user scrolls too close to the top or bottom. The function takes a second to execute, and if they continue scrolling, it executes multiple times before the first one has even finished. Is there any way I can let the function start executing and then te...

How can i load a picture with jquery?

Hi, i am currently working on a class that generates diagramm's as pictures with php. I want to load these pictures dynamically with jquery. How can i do that?? I wont have a real picture file, just the content of the file when i call it with ajax... And i cant simply define the phpscript as the src because i need to pass Post Parameter...

How to suppress client-side validation when field in bind to dojo's ajax call

Using Struts 2 and Dojo Given a Form with validate="true" for client-side validation, I have a form textfield that is bind to an Ajax action. When the field is changed the Ajax call should be executed (achieved by events="onkeyup"). Only the bound field is added to the Ajax call (using formFilter attribute). But, the validation is exec...

How can I use Ajax, perl and JSON easy together?

I am trying to make a webpage with Ajax. Example: I create a Perl/CGU file that triggers a simple post; File: ..test.cgi?name=Thomas Text back: Your name is Thomas! I create a html file that can use the post, but then the page have to reload. I use text input and a button. How can I use Ajax, Perl and JSON easy together? This is h...

Some form of Progress bar when something is loading in ASP.NET?

Is there a easy way to show some form of progress bar on your form in ASP.NET that the code is busy running in the background (meaning thinking)? Like the default I.E have the small little window on the top that moves when its thinking.......... I have done this before with Ajax but its alot of work and my site is not a Ajax enabled sit...

CalendarExtender Change date with Javascript

I have a CalendarExtender control on my page and sometimes have to change the date to the next occuring Sunday. I'm currently using the OnClientDateSelectionChanged property of the control to call a function that will add some days to the date until its Sunday. The problem I'm having is that if I select a Tuesday in my calendar, the tex...

Problem with textbox inside updatepanel - not causing OnTextChanged event

I have the following situation: I have a textbox inside an ajax updatepanel. Wherever the user types in the textbox I must display a message (different message that depends on the user typed data). <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"> <ContentTemplate> <asp:TextBox ID="txtMyTe...

Collapsible Panel in ASP.NET

Hi all, I am using the ASP.NET AJAX Control Kit and I am having a problem using a collapsible panel in my code. I have the following code: <table><tr> <td class="bg"> <a class="bg" href="javascript:void(0);"> <asp:CheckBox runat="server" ID="chkSMSGrossRevenue" Text="Gross Revenue (Daily, Monthly, Yearly)" /></a> <asp:Panel...

Provide feedback to view from controller in ruby on rails

I am using multiple file field in a view to upload multiple files. I would like to update the user of progress while uploading. I tried using something like this def create params[:upload_data].each do |file| unless (file =="" or file== nil) @photo = Photo.create({:approved => false, :user_id => @current_user.id}) ...

Implementing AJAX in Sharepoint

Hi I am trying to implement Ajax in SharePoint. I have installed AJAX extensions 1.0 in MOSS2007 but I am not able to find the extensions in my SharePoint Designer. Can anyone help me in this issue? ...

PHP AJAX File Uploader

Does anyone know of a good PHP based file uploader using AJAX? The demo below look promising, but it's for ASP.Net http://mattberseth2.com/demo/Default.aspx?Name=ASP.NET+File+Upload+with+Real-Time+Progress+Bar&amp;Filter=All ...

How do I detect if a user has got to a page using the back button?

This question is similar to http://stackoverflow.com/questions/55871/track-when-user-hits-back-button-on-the-browser, but not the same... I have a solution and am posting it here for reference and feedback. If anyone has any better options, I'm all ears! The situation is that I have a page with an "in place edit", a la flickr. I.e. t...

Proper way to load ASP.NET MVC partial views with AJAX?

Hey all. Okay here is the situation. I would like to be able to load a series of similar partial views onto a parent page; much in the same way as is being done in this article (simulating AJAX panels). In the article, it appears to be working fine, as it is calling the corresponding action method asynchronously on the controller. Bu...