Loading...
Ajax

Updater avec JQuery du contenu à jour

Voici un plugin JQuery utile pour mettre à jour du contenu périodiquement.

A télécharger ici

Step 1 –  jQuery et le plugin.

<script src="jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="jquery.periodicalupdater.js" type="text/javascript"></script>

Step 2 – le script d’appel

$(document).ready(function(){
   $.PeriodicalUpdater({
      url : 'random.php'
   },
   function(data){
      var myHtml = 'The data returned from the server was: ' + data + '';
      $('#results').append(myHtml);
   });
})

Liste des options:

url
URL appel ajax de votre fonction php

method
GET ou POST!)

sendData
Tableau des valeurs envoyées à la page

minTimeout
valeur de départ de timeout en millisecondes.

maxTimeout
durée Maximum du temps entre deux requêtes.

multiplier
coefficient multiplicateur entre deux requêtes

type
Type de la réponse : text, xml, json etc – .

Step 3 – Arrêter les requêtes!

le script

$('a#stop').click(function(e){
   e.preventDefault();
   clearTimeout(PeriodicalTimer);
})
84 comments
  1. pg shoes

    I must voice my appreciation for your generosity supporting persons that really need help on this concern. Your personal dedication to getting the message all-around had been really effective and has consistently empowered guys and women much like me to attain their goals. Your entire warm and helpful report implies a whole lot to me and additionally to my office workers. Many thanks; from everyone of us.

  2. supreme clothing

    I precisely wished to appreciate you once again. I am not sure what I could possibly have carried out without the entire tips and hints discussed by you directly on such a field. This was a real intimidating crisis in my circumstances, however , viewing the expert fashion you treated it made me to weep with delight. I’m just thankful for this support and even trust you comprehend what an amazing job you happen to be putting in teaching the rest with the aid of your webpage. I’m certain you haven’t encountered all of us.

  3. off white

    I together with my friends were actually going through the great items located on your website while quickly got a terrible feeling I never expressed respect to you for those secrets. My women were for that reason joyful to see all of them and already have in fact been tapping into those things. We appreciate you really being so kind and then for obtaining such fantastic information most people are really eager to be aware of. Our own sincere regret for not saying thanks to you sooner.

  4. jordan sneakers

    I’m just writing to make you know of the outstanding experience my cousin’s daughter experienced viewing your site. She figured out many pieces, including how it is like to have an ideal teaching mindset to have a number of people quite simply have an understanding of a variety of advanced matters. You really exceeded visitors’ expected results. Thank you for giving those important, safe, explanatory not to mention unique guidance on your topic to Jane.

  5. kyrie 7

    I wanted to write you a tiny observation to help say thank you the moment again considering the amazing tactics you have discussed above. It was so surprisingly generous of people like you to supply unreservedly all a few individuals would’ve offered for sale for an e-book to get some money for themselves, certainly since you might have tried it if you ever considered necessary. These good tips additionally served to be a great way to be aware that other people have the identical keenness similar to my very own to find out way more when considering this matter. I am sure there are some more fun sessions ahead for individuals that examine your website.

  6. off white outlet

    I simply wished to appreciate you yet again. I do not know the things that I might have created in the absence of those secrets provided by you regarding such a problem. This has been an absolute hard setting for me personally, but viewing a new specialized way you treated that forced me to weep for happiness. I’m happy for the information and then believe you realize what a powerful job you were accomplishing teaching men and women with the aid of your website. I know that you haven’t met any of us.

  7. paul george shoes

    I precisely wished to say thanks yet again. I do not know the things that I would’ve achieved without these pointers contributed by you on such subject. This was a troublesome problem for me, but being able to see a new specialized mode you dealt with the issue made me to weep over joy. I will be grateful for the assistance and even believe you really know what a powerful job you were putting in instructing men and women with the aid of your webpage. Most likely you haven’t got to know any of us.

  8. kobe

    I have to voice my passion for your kindness in support of people that actually need guidance on in this question. Your real commitment to getting the solution all-around has been unbelievably insightful and has in every case permitted ladies just like me to achieve their endeavors. The warm and helpful report can mean this much to me and far more to my mates. Many thanks; from each one of us.

  9. supreme clothing

    I would like to get across my passion for your kindness supporting all those that really want guidance on the area. Your real commitment to passing the solution throughout ended up being especially good and has continually encouraged regular people like me to achieve their endeavors. Your amazing warm and helpful tutorial denotes much to me and still more to my colleagues. Thank you; from all of us.

  10. off-white

    I simply needed to appreciate you yet again. I do not know the things I might have undertaken in the absence of the strategies shared by you relating to that subject. Certainly was a real scary dilemma for me personally, nevertheless seeing your expert mode you managed the issue made me to weep over delight. I’m happier for the service and as well , wish you really know what an amazing job you are always undertaking training men and women thru your blog. Probably you haven’t encountered all of us.

  11. cheap steph curry shoes

    I wanted to send you this little observation to help thank you very much as before with the awesome pointers you have documented above. It was simply tremendously open-handed with people like you to supply unhampered all most people would’ve distributed for an e book in order to make some money for themselves, mostly seeing that you might have tried it in case you considered necessary. The ideas in addition worked as a great way to fully grasp that many people have the same dream just as my own to know the truth a good deal more pertaining to this matter. I know there are a lot more pleasant instances up front for individuals that scan your website.

  12. yeezy wave runner 700

    I actually wanted to write a word to say thanks to you for some of the precious secrets you are sharing at this site. My time intensive internet investigation has at the end been recognized with reliable details to exchange with my partners. I ‘d claim that most of us readers are definitely fortunate to live in a remarkable network with very many lovely individuals with beneficial pointers. I feel very much blessed to have used your entire web site and look forward to some more awesome times reading here. Thanks again for everything.

  13. off white clothing

    I wish to voice my affection for your generosity supporting persons who really need help with this particular field. Your very own dedication to getting the solution throughout appeared to be particularly important and has without exception empowered associates just like me to get to their dreams. Your interesting instruction means a whole lot to me and especially to my office colleagues. Thanks a lot; from all of us.

  14. cheap kyrie 5

    I must express my passion for your kind-heartedness in support of persons who actually need guidance on in this question. Your very own commitment to passing the solution all-around came to be really advantageous and have in most cases enabled guys and women much like me to attain their ambitions. Your entire informative advice denotes a whole lot a person like me and additionally to my fellow workers. Warm regards; from everyone of us.

  15. kyrie shoes

    I precisely had to thank you so much yet again. I do not know the things that I would have worked on in the absence of the actual points discussed by you relating to my question. It previously was an absolute daunting circumstance for me personally, nevertheless being able to view the skilled tactic you solved that forced me to leap over happiness. I’m just thankful for the advice as well as sincerely hope you find out what a great job you happen to be undertaking instructing people today all through your site. I’m certain you haven’t encountered all of us.

  16. ggdb

    I precisely had to appreciate you once again. I’m not certain the things that I would’ve worked on without those tips and hints revealed by you over my problem. Certainly was a daunting scenario for me personally, nevertheless encountering this professional manner you dealt with the issue forced me to jump with contentment. Now i am happier for this help and even sincerely hope you know what a great job you happen to be accomplishing educating people today through your site. I am certain you haven’t come across all of us.

  17. jordan 6

    Thank you a lot for providing individuals with a very spectacular chance to check tips from here. It is usually very nice and full of a great time for me personally and my office colleagues to search your blog no less than thrice in a week to read through the fresh tips you have got. And lastly, I’m so always fulfilled with the striking thoughts you serve. Some two ideas on this page are really the most impressive I’ve had.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée.