ajax

jquery plugin local variables between methods

I'm with trouble with a jquery plugin i've quickly playing around. Its fades in when a start handle event of ajax is called and stops with complete handle. Exemple: start : function (e,o) { target.mask(); target.showMaskAjax(); }, complete : function (e,o) { target.hideMaskAjax();.... }, The question is..when I fire 2 ...

Submit ajax onblur

I'm still new to ajax and javascript, so my apologies for missing something probably very basic and upfront. I'm trying to submit an form onblur. I'm calling the function correctly, but I'm not sure how to reference the variables from the form. When I move from the form, I see in Firebug that it's calling the addNotes.php file, but no ...

jQuery/AJAX: each, if, post, .html: Runs but randomly deletes data

I've got a PHP page, with FedEx & UPS tracking numbers in a MySQL database echoing into ID's of DIVs with the class "trackingnumber". My JS each's through those divs and grabs the ID to then post to a PHP page that polls Fedex/UPS and echos the result from them. That works great, except for one thing. It randomly deletes the data after i...

PHP + Ajax Progress Indicator?

I'm coding something in PHP, I'm just using Ajax for the styling. basically I am creating a form of searching for something on a site that isn't mine. I'm not sure if the steps I'm using is going to take long or if it will be instant, but in any case I would love a step/progress indicator. Is there a tutorial or link someone can give me ...

Browser Back Button Handling in Ajax Based Application

Hi All, Similar questions have been asked on SO, but I am still looking for a solution and not a workaround. I am working on an Ajax based application and when the user clicks on the Browser Back Button it takes the user to the login page(every page after the login page is ajax loaded). Apparently, this is not what the user expected. ...

PHP server "stuttering", freezes server

Hello All, We have a particular problem here on one of our production machine, which is running a PHP application. We have an AJAX call that is only called at one location in the code. However, at any given time, when I have a look at the PHP activity file in Linux (suphp_log), I see that when the server freezes (for a couple of minu...

Progress icon while POST request is processing

There are next initial conditions: Backend: servlet for file uploading; UI: form, that submits servlet for file upload: <iframe id="uploadFrame" name="uploadFrame"></iframe> <form enctype="multipart/form-data" method="post" target="uploadFrame" action="<%= request.getContextPath() %>/uploadFile? portletId=${portletId}&rem...

Ajax AutoCompleteExtender showing multiple columns

Hi there, I have a asp.net web page using a autocompleteextender: <ajaxToolkit:AutoCompleteExtender runat="server" ID="ctrl_masch_kdnr_extender" TargetControlID="ctrl_masch_kdnr_v" ServiceMethod="GetData_CustomerNo" MinimumPrefixLength="2" CompletionInterval="200" EnableCaching="true" Com...

Does the use of AJAX increase memory usage of PHP??

Hello all, I think the answer to this question is no but I do not have anymore leads of the problem I am trying to figure out. I initially had a single script that did some database queries via SQLCMD. I have now decided to initiate this script via AJAX and wait for the response. But I get a fatal error of: Fatal error: Allowed memory...

Inline jQuery script not working within AJAX call

Hi. I have a issue: while i call a inline script (wich uses jQuery too) from another page with ajax - it seems, that jQuery is no more defined (?), and I cannot use any of jQuery functions, that should be applied (according to inline script) to content. It's basically a news list, which holds links to particular news items. I prefer us...

Interdependent Callbacks in webOS Programming

This is a conceptual question. Many of the operations that happen in webOS are asynchronous. I have done Ajax programming before, but it feels like webOS takes it to a new level. Take the following example of an application that retrieves a list of news articles from the web, and also caches articles locally in an HTML5 storage database...

Great difficulty setting up Ajax Push Engine(APE) in my Virtual Box

Is there any kind fellow windows user who had faced similar problems that can provide me some concrete ways in setting up the APE? ...

Can you use $_GET variables when including a file in PHP? Is it possible, even from an AJAX call?

I have a PHP file that handles sending out confirmation emails. I also have a calendar that I use AJAX to do various updates. When AJAX calls the update file, it updates the database with the new information, and I want confirmation emails to be sent out. So from inside the php file that the AJAX calls, I figured I should include("email...

How can I load values into an HTML form with jQuery?

I'm trying to create an ajax form with jQuery. I'd like to load existing values into the different form fields (text boxes, dropdown menus). Would I use JSON for this? And how would I load the values? Iterate through the JSON and for each entry load the corresponding value? How would this be done? Thanks in advance. ...

BlazeDS Flex-AJAX Bridge load doesn't work with Ext.JS

The FDMSLib for the Flex-AJAX bridge has a load function that renders a flash object to the page where ever it is called. This causes problems when using Ext.JS as the inserted object can either be discarded by another render function or cause conflicts during the rendering of the page, so I'm trying to rewrite the load function so that...

If you flush the content (ob_flush) of an AJAX request, the content will get loaded?

I mean... Let's that we just make an AJAX request and inser the result inside a div#result.. In the backend the script use ob_flush() to send the header but not terminate the request until it's terminated (with exit or ob_flush_end) The content will be loaded into the #result only when the request terminate (exit or ob_flush_end) or it...

Ajax request during a file upload takes a long time to complete.

I'm using a Webphere server. I am performing a file upload through a servlet using the Apache FileUpload methods. I attach a listener to this FileUpload which updates a "percentage" field denoting what percentage of the request has been processed. The request gets directed to an iframe (form's target is an iframe) so that the page that...

preventing effects to be applied to the same object twice when adding objects with ajax

I'm having a little issue with an application I'm making. I have a page where the user edits a document via dragging modules into the page or "canvas" area. When the page is loaded, javascript haves the modules collapsible (like above). However after the user drags in a new module the effect is applied again some new modules can col...

[jQuery UI Tabs] : How to cache AJAX responses (to be displayed the next time the user selects a tab) ?

I populate my tabs contents using AJAX calls with the tabs widget from jQuery UI library. My code loks like that : <script type="text/javascript"> $(function() { $("#tabs").tabs({ load: function(event, ui) { afterLoadProcessing(); } }); }); </script> ... <div id="tabs"> <ul> <li><a href="url1">tab1...

Keeping an ajax web page functioning after hours of being idle

I have a one page web app so there is no page refreshing. Sometimes I leave the page open overnight and I come back in the morning and start interacting with it again. Usually I find I have to refresh. Javascript performs incorrectly - edit-in-place loads weird data, ajax calls don't fire... It's nothing to do with the backend, it seems ...