JQuery :: Show A Busy Indicator During An AJAX Post?
Oct 11, 2011
I have some jQuery code working that does an AJAX post to the server and displays the data on the web page. Proud of myself! However, right at the moment, the user doesn't see anything happen when they click the button.
I would like to make it work like most modern sites do, whereby when you push the button, the previous results are greyed out, the submit button is disabled, and you get one of those nice little animations whizzing around, showing the user that something is happening. When the callback is complete, the results are displayed normally, the submit button is enabled and the animation disappears.
View 5 Replies
ADVERTISEMENT
Dec 12, 2010
modify the script to prevent showing busy indicator
[CODE]
<script type="text/javascript">
window.onload = setupFunc;
function setupFunc() {
[Code].....
above tis the script which shows up busy indicator whenever ajax request is in process. in my case I have some timer componenes which reloads after every 5 minutes through ajax .I want to prevent the above script from showing the busySign when any timer componenet is updating , what should I change in the above script to exclude some components?
View 1 Replies
View Related
Mar 4, 2009
I am also trying to achieve , displaying a loading activity indicator gif till the server (JSP) processes the validation work for my Ajax call.
Below is my code:
Code:
var httpRequest = newXMLHttpRequest();
//Show loading activity indicator gif
showLoadingImg();
[Code].....
The only thing I am not able to see the loading gif functionality.. But as I said..
If I put an alert message in function showLoadingImg() or the make the red line uncomment (making the line a error), Then I am getting the loading gif functionality work..
But, all next functions fail due to above red lined error (if its uncommented).
View 11 Replies
View Related
Aug 17, 2010
I want to run an external function outside the post.
This is what I have currently.
On success of the post I want to run the setGrandTotal(); function which will do some calculating for me.
View 1 Replies
View Related
Jul 27, 2011
Am calling Webservice in one ajax post, In the success funtion am calling another another method in same webservice through another ajax post method. First ajax post is getting called and returning the string from the webservice method but the inner ajax call is not getting called. I have placed the code here.
[Code]...
View 1 Replies
View Related
Jul 29, 2010
i am using a sliding image gallery and want to indicate the selected thumbnail by showing a dot below the thumbnail. i am new to scripting and have been trying tweak the code i found (which had the thumbnails at 50% opacity when unselected and 100% opacity when selected), using that code, i'm hoping i can instead make an image of a dot show at 100% opacity when the thumbnail above is selected and 0% opacity when the thumbnail is not selected. here is the script where i think i can achieve this:
[Code]...
View 1 Replies
View Related
Nov 3, 2011
Is there a way in Jquery to make a gif spin to use as loading/wait indicator .gif ?
I have an image I want to spin and be my loading/wait/progress indicator gif.
Can I spin it in JQuery? Is this lighter than an animated gif?
View 1 Replies
View Related
Jul 20, 2005
How can I set a busy cursor for my whole page rather than just for a link?
My page calls another page with form arguments that does some processing
then changes the values on the calling page. It takes about 4 seconds so I
would like there to be some indication that processing is going on. Thanks!
View 2 Replies
View Related
Jan 14, 2012
why to use the .post instead of .ajax?
View 2 Replies
View Related
Jan 17, 2010
I posted this problem in the old mailing list, but I thought Id try here with a larger set of eyes.
My issue seems to concern webkit browsers. I am sending information from a form with a jQuery click function. I am loading the response from one form that is a DIV called rightContent to the same DIV and passing the
[Code]...
View 2 Replies
View Related
Aug 11, 2011
IE does not seem to make the post using the following code:
$(function(){
$("#update").click(function(ev) { var target = $(ev.target); if (!target.hasClass("add_btn")) { return false ; }
var li = target.parents("li"); var _title = li.attr("data-title");
[Code]......
View 2 Replies
View Related
Aug 5, 2011
I am building a web app that uses alot a jquery including a function that reaches out to a webservice using $.ajax to grab data and return to tdata to the web app. The function that makes the call is outside the ready block but is called in the ready block to make it run on the load. After the load I use a timer to keep calling the function to keep things up to date. But after the first run the function does not seam to work. This might sound wierd, but the ajax function appears to run after the initial go, but it always returns the original request, it does not make new request to the server. I use fiddler and watch what going on and after the initial run method it doesnt make any other calls even though I see the ajax method being stepped through using debugging software and see the AJAX call being attempted and returned successfully.
var REQUESTURL = '/citizenQuestionWCF.svc/';
var prOptions = '';
$(document).ready(function () {
getQuestions();
[Code].....
View 2 Replies
View Related
Jul 14, 2009
Is there a way to post from a .net page with server form controls using the jQuery .ajax method? The .net page is expecting the server contols so I'm not sure how to handle it so when I serialize() the form it doesn't know what to do with it.
View 1 Replies
View Related
Aug 25, 2009
By writing this [code]...
we pass variables 'name' and 'location' to the file 'some.php'. How can we pass a PHP object?
View 1 Replies
View Related
Jun 17, 2009
This is very stupid but I cannot make it work. I'm trying to turn the following:
$.post("search.php", { clientID: thisChannel.tblClient_id, channelID: thisChannel.tblChannel_Id, wordsToSearch: wordsSearchedfor }, function(data){
alert("data: " + data);
});
[Code].....
The first passes the variables with no problem, but I get an error with the ajax function, it is not passing the variables.
View 1 Replies
View Related
Jul 16, 2010
I have a ajax post that is a datatype json.
So my success function looks like this:
But it is not sure name exists. How can i check this out?
View 2 Replies
View Related
Aug 23, 2011
I want to POST data to my personal website[code]...
If i run the code from my localhost it doesn't return anything
View 1 Replies
View Related
Apr 29, 2010
I'm adding is a flag to indicate that a post was sent via ajax. Is there a better way to do this so that I don't have to add the flag every time an ajax form is posted?
View 1 Replies
View Related
Oct 4, 2010
I'm using ajax to send data to another page, but in IE 'message' is emptied some times. I have an alert on 'message' in the JS-function and there is data there; for example: "I think that IE <br />is a pain in the..
[Code]...
View 5 Replies
View Related
Jun 30, 2009
Posting data from a form using this function:
[Code]..
the server doesn't detect an ajax call ('X-Requested-With' header is not sent). I tried forcing it with beforeSubmit and also with ajaxSetup, but no go.
View 10 Replies
View Related
Apr 30, 2009
Do i need to encode my data send through AJAX post? Ex.
var name = $("input#name").val();
var dataString = 'name='+ name;
///////////////////////////////////////////////
$.ajax({
[Code]....
View 2 Replies
View Related
Mar 28, 2011
I wrote a little program. When the home page loads, I added <body onload="get();"> to retrieve data from database using PHP and then display on the samehome page. The codes imported to the home page also include a simple form with Submit button: "<form name='commentform'><textarea row='5' cols='20' autofocus form='commentform'>
View 7 Replies
View Related
Aug 18, 2009
I'm new to using JQuery and I've been searching everywhere to be able to post XML to a WebMethod on an aspx page in a site. I'm sure it can be done but I just have no idea how.
View 2 Replies
View Related
Jun 3, 2010
I have a search form that uses AJAX to fetch data and populate a table. Several of the search fields are multiple selects. Problem is, only the first option is getting passed thru to the PHP file called by the AJAX function.
var fs_users = $("#users"), fs_status("#status"), fs_roles("#roles"), ...;
var fs_allFields = $([]).add(fs_users).add(fs_status).add(fs_roles)...;
$("#fsSearch").click(function() {
//alert(fs_roles.val());
[Code]....
For debugging purposes, the target PHP file ("fetch_data.php") dumps the $_POST and $_GET variables to a file. As mentioned, only the first option from the multi-selects is getting passed thru in the $_POST variable ($_GET is empty as expected). The alert (line 4) will correctly display a comma-delimited list of all the selected values (also verified via Firebug while stepping thru the code). Someone in another thread suggested using serialize() (e.g. line 9 becomes "fs_allFields.serialize()", but that caused NOTHING to get passed thru.
Maybe I've been staring at it too long and there's a simple fix is right in front of me, but I just can't see it.
P.S. I'm using the latest versions of jQuery and jQuery-UI.
View 1 Replies
View Related
Feb 7, 2011
I got this code that dealing with ajax..Basically the ajax code is to get the data from the html element and insert it to the database.
this is ajax and the html code ...
View 1 Replies
View Related
Mar 10, 2011
I used to have a post function that works but it suddenly says: aborted when I run firebug on it and I dont know how I can fix it.
I am using servlets in a netbeans IDE and would like to know how to fix it. Once it says 500 internal error and once it says aborted, what can i do?
View 9 Replies
View Related