10 comments found.
Good morning, If I understand correctly i CAN add many requests and functions I want in order to make it work in the order I want ?
For example :
- Connection to the server w - Zip the folder - Send it to the ftp remote server 2 - Success finished ?
The script can follow those steps ?
(ps : I already developed the program but every function is in 4 different files) With your script, i can put it all together in one click. correct ?
I don’t fully understand your requirement, but I can tell you what the script does effectively; it can help you create sequenced requests (one after the other). You may also cancel any pending request, or you may create nested requests within an existing one. So, if you were to hit an endpoint, say, on your server to zip a file, you could wait for a response (there might be a timeout though), then once that returns you can create the secondary request and in the success of that you can monitor if it finished. Hope that helps!
@jpapan Actually at the time of writing, I didn’t quite test it with post data type, it may require adding 2 lines of code. Send me an email, and I’ll send you the updated code.
I have the same issue.
url: ‘requests.php’, dataType:’json’, data: { requestData: true, message: “please print me!” },
This never posts. Any way you can send me the same updated lines of code.
sure, send me an email via the profile page. and then after my reply you can zip everything and send it over to me and i’ll have a look at it.
Hello Does it supports post calls or only get?
It supports both; after instantiating the ajax queue object, simply set the ‘type’ property on the object like so:
var q = new Queue(...);
q.type = 'POST';
...
q.start();
So with every post I send url and data as usual?
@jpapan Actually at the time of writing, I didn’t quite test it with post data type, it may require adding 2 lines of code. Send me an email, and I’ll send you the updated code.
Did you received my message? I didn’t received anything. Thanks in advance and sorry for the hurry…
I replied to you the same day, sorry you didn’t receive it. will send it again.
It was sent to your email @isites.gr could you please check that first?
Thanks I received it!! Thanks for the great support! I will check it and tell you!!
Alright let me know if you need any further help.
Can you send me an actual link to where I can see a demo of this animation working?
Thanks, Josh
What animation? This script only queues ajax requests, and demos are in the live preview.
What do you mean? I want to see this visually working….
it is working. See: http://codecanyon.net/item/ajax-queue-jquery/full_screen_preview/4903957
What size is the uncompressed javascript file? Pl advise. Thanks.
16.9 KB
i need a script for load an external url in my div ( cross domain )
and other for load especific divs in a single html ( in my own hosting, not external urls )
can someone help me?
Sorry, I’m not sure what exactly you want but if you’re requesting for help then that’s done in the forums. Off the little bit I understood from what you wrote, I think you’d be good just using the jQuery AJAX method.
Is there a difference between your script and [link removed]
I’ve never used that particular script, but of course there ought to be differences in implementation, coding and features. You can do a benchmark on both of them to compare speed, or run them side-by-side, to see the differences. Since I’ve never used it (or ever heard of that script for that matter) I can’t possibly give you a good comparison, sorry.
Hello,
I know it is not possible with the current code to perform more than one request at once, bit is it easy to change the code and make it for example doing 5 request at one ?
Thanks, Sabri
You can process as many requests parallel to one another as you want as long as they belong to different queues.
Hello,
Can I execute it in a page in backgrund like a form’s field validator?.
Suppose a form with several fields where I need it to check or test the data insert by an user in that fileds. But my validation need to will process on server. So, I need to load an ajax process to send data to server, the server check it and send back a good o bad answer.
So, I want to know, if I can create a queue of ajax validation and execute it when the user submit the form and also know if the queue can be interrupt if some code error or bad answer happens.
My second question is know if you have some implementario of a control error included in your script, I mean: page not found, timeout, etc.
Thank in advanced Jorge
Of what I understand, you wish to run an ajax request periodically; this can be done without the ajax queue as well.
As far as stopping all requests in an ajax queue is concerned, then yes, that’s totally possible. You can even cancel unprocessed requests.
There are examples and detailed documentation included in the script that demonstrate and explain how error handling can be done using the script. If all that fails or if there’s something that’s not covered, then you can always send me an email and I’ll work with you and try and help you achieve what you wish to do.
That being said, and of what you’ve told me, I don’t see any real need for queuing requests in this case, unless of course there’s bunch of other stuff you need to do in a sequence when the user submits the form.
That’s it: “there’s bunch of other stuff you need to do in a sequence when the user submits the form.”
Thank you very much!
Yes, then this would help you achieve that.
Hi,
Is it possible to use the script on a autoLoader or auto start (not on button action) ?
Thanks!
Mick
Of course, just put queue.start() anywhere in the onload or document ready event.
I have a problem.
Currently I have : image.php?id=1628&callback=queueProxy1370791600966&_=1370791600978
And I must obtain image.php?callback=queueProxy1370791600966&_=1370791600978&id=1628
The id must be the last parameter of my URL.
That is possible ?
Thanks!
Mick
If the id must always be at the end use ajaxQueue.alwaysSend = {id: 1628} and write id at the end if there are multiple key/value pairs in the list but even if you do so, the callback query, since it’s handled by jQuery, would appear at the end by default. I’m afraid that’s how jQuery’s AJAX method works and though a workaround may be possible, I don’t think it’s worth fiddling with because the order in which the key/value pairs are sent doesn’t really matter.
May I ask why must id be the last parameter in your case?
I wished to use your script with my database.
The idea was to call the URLs which correspond to the ID of each data.
// instantiate the queue
var q = new Queue([
{url: 'image.php?id=1628', success: successHandler, error: errorHandler},
{url: 'image.php?id=1646', success: successHandler, error: errorHandler},
{url: 'image.php?id=1647', success: successHandler, error: errorHandler}
]);
That does not seem possible. 
Mick
If you explain a bit more (preferably in detail) maybe I can tell you or guide you better with the script.
Also, I replied to your email. Kindly zip the files you’re working on and email them to me so I can have a look.
Thank you very much for your great product and professional support! 
Glad to be of assistance
good luck with your site.