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);
})
47 comments
  1. golden goose sneakers

    I want to convey my love for your generosity for those people that must have help on this important area of interest. Your special commitment to getting the solution all around ended up being pretty interesting and has enabled workers like me to get to their objectives. Your amazing important information denotes this much to me and even further to my office workers. Thank you; from each one of us.

  2. westbrook shoes

    I would like to express my love for your generosity supporting individuals that must have help with in this niche. Your personal commitment to passing the solution throughout came to be astonishingly helpful and has truly enabled individuals just like me to attain their desired goals. Your valuable tutorial means a lot a person like me and especially to my peers. Thank you; from everyone of us.

  3. giannis shoes

    I simply desired to say thanks all over again. I am not sure what I would’ve undertaken without the actual strategies contributed by you on my question. Certainly was a very fearsome dilemma for me personally, but being able to view a new expert mode you dealt with the issue took me to cry over gladness. I’m just happy for this help and have high hopes you are aware of an amazing job you happen to be putting in educating men and women thru a web site. Most probably you haven’t come across any of us.

  4. supreme

    My wife and i got now glad when Peter managed to complete his preliminary research because of the precious recommendations he grabbed using your blog. It is now and again perplexing just to always be giving freely procedures which some people might have been trying to sell. And we also grasp we need the writer to be grateful to because of that. Those illustrations you’ve made, the easy website menu, the relationships you can make it easier to engender – it’s got all exceptional, and it’s really making our son in addition to the family feel that that subject matter is awesome, and that is rather essential. Thank you for all!

  5. bape

    I wanted to send you one very small word in order to say thank you over again for these pleasing opinions you’ve featured above. It is simply incredibly generous with you to make unhampered all that most of us would’ve offered for sale as an e book to get some bucks for their own end, most importantly considering that you might well have done it if you considered necessary. The ideas in addition served to become a good way to be sure that someone else have a similar desire much like my own to realize significantly more on the topic of this condition. I think there are a lot more enjoyable periods in the future for folks who check out your site.

  6. lebron 18

    I must show my thanks to you just for rescuing me from such a challenge. Right after surfing around through the search engines and obtaining things that were not helpful, I figured my life was over. Existing without the approaches to the difficulties you have sorted out by way of this guideline is a crucial case, as well as ones which may have badly damaged my career if I hadn’t encountered the website. Your own skills and kindness in maneuvering all the things was valuable. I don’t know what I would have done if I had not come across such a step like this. I can also now look forward to my future. Thanks for your time so much for your professional and amazing help. I will not hesitate to endorse the sites to anyone who desires guide on this topic.

  7. a bathing ape

    I am glad for commenting to let you know what a really good discovery our princess enjoyed going through your site. She noticed lots of pieces, which include how it is like to have an ideal giving mindset to have other individuals easily comprehend a variety of complex subject matter. You actually surpassed her desires. Thanks for giving the warm and friendly, healthy, revealing and as well as fun tips on this topic to Mary.

  8. yeezy

    I needed to write you the bit of observation so as to say thank you as before for your spectacular solutions you’ve shared above. This is simply unbelievably generous with you to allow unhampered what exactly numerous people could possibly have offered for an ebook to help with making some dough for their own end, notably now that you could possibly have tried it if you wanted. These guidelines likewise worked to become great way to fully grasp that most people have similar eagerness just like mine to see more and more when considering this matter. Certainly there are a lot more fun moments up front for people who scan your site.

  9. kobe shoes

    I happen to be writing to make you know of the incredible encounter my wife’s child enjoyed reading through your site. She discovered too many details, which included what it’s like to have a great helping style to have the mediocre ones quite simply master specified complex things. You undoubtedly exceeded her expected results. Many thanks for offering these great, trusted, informative and easy guidance on that topic to Gloria.

  10. curry 7 shoes

    I must get across my respect for your kind-heartedness in support of folks that have the need for assistance with your concern. Your special dedication to passing the solution all-around has been certainly effective and have continually allowed guys just like me to realize their goals. Your insightful facts signifies a great deal to me and even further to my office workers. Thanks a ton; from everyone of us.

  11. bape clothing

    I am only commenting to make you understand what a useful experience my child encountered visiting the blog. She even learned a lot of things, including what it is like to have an amazing coaching nature to let a number of people really easily grasp selected tortuous subject areas. You really did more than our expectations. I appreciate you for rendering such practical, safe, informative as well as unique tips about this topic to Tanya.

  12. kyrie 4

    I simply desired to appreciate you all over again. I am not sure what I could possibly have worked on without those creative ideas shared by you about such concern. It was actually the alarming case for me personally, however , noticing a new professional approach you dealt with it took me to cry for contentment. I’m happy for this information as well as sincerely hope you find out what a great job you were carrying out teaching other individuals with the aid of a blog. More than likely you haven’t encountered any of us.

  13. nike dunks

    I have to express my passion for your generosity giving support to women who actually need help with this important area of interest. Your special dedication to passing the solution around appears to be extraordinarily insightful and have in most cases allowed employees like me to reach their desired goals. Your entire insightful report can mean much to me and much more to my office colleagues. Thanks a lot; from each one of us.

  14. kyrie shoes

    I have to voice my gratitude for your generosity in support of men and women who actually need assistance with this one situation. Your special dedication to getting the solution all-around came to be exceedingly useful and have encouraged somebody just like me to realize their ambitions. Your amazing warm and helpful tutorial can mean this much a person like me and further more to my office workers. Thanks a ton; from each one of us.

  15. off white hoodie

    I would like to get across my respect for your generosity giving support to men who need guidance on the content. Your real commitment to getting the solution all around came to be remarkably productive and have usually allowed girls much like me to get to their ambitions. Your personal important tips and hints indicates a great deal to me and extremely more to my office workers. Many thanks; from each one of us.

  16. yeezy 350

    I have to express my thanks to you for rescuing me from this type of problem. As a result of browsing throughout the online world and obtaining thoughts which were not helpful, I figured my life was over. Existing minus the answers to the issues you’ve solved through your good report is a crucial case, and the ones which could have adversely affected my entire career if I hadn’t come across the blog. That understanding and kindness in touching almost everything was very useful. I’m not sure what I would’ve done if I had not come upon such a thing like this. I’m able to now look forward to my future. Thanks very much for the skilled and amazing help. I won’t think twice to propose your site to any individual who desires guidelines on this problem.

  17. golden goose sneakers

    I simply had to thank you so much again. I do not know the things that I would have gone through in the absence of the actual tricks shared by you concerning such field. It absolutely was a horrifying issue in my view, however , encountering a well-written avenue you dealt with the issue took me to weep with fulfillment. I’m happier for the help and thus hope that you know what a great job you were doing teaching many people through the use of your websites. I know that you’ve never come across all of us.

  18. curry 7 shoes

    I precisely had to thank you very much all over again. I do not know the things that I would’ve used without the type of creative concepts discussed by you on this subject. It was before an absolute frightful setting for me personally, nevertheless coming across a expert mode you managed the issue made me to weep over fulfillment. I will be happier for this help and even wish you comprehend what a powerful job that you’re providing training men and women using your site. Most likely you have never encountered any of us.

  19. steph curry shoes

    I must show my admiration for your kind-heartedness in support of men who have the need for help on the situation. Your very own dedication to getting the solution all over had been quite useful and have continually encouraged folks much like me to arrive at their dreams. Your warm and helpful guide denotes much to me and especially to my office colleagues. With thanks; from all of us.

  20. supreme

    I want to show my passion for your kind-heartedness supporting visitors who really need help with this topic. Your personal dedication to passing the solution up and down appeared to be remarkably helpful and have surely made guys just like me to reach their endeavors. Your personal useful help can mean a lot to me and further more to my office workers. Thank you; from everyone of us.

  21. golden goose

    I must show my passion for your kind-heartedness supporting folks that need guidance on this area. Your very own commitment to getting the message throughout appeared to be definitely functional and have in most cases helped those like me to achieve their pursuits. Your valuable guidelines entails so much to me and somewhat more to my mates. With thanks; from all of us.

  22. kd 10

    I simply needed to thank you very much once again. I do not know what I would have carried out in the absence of the actual hints discussed by you on my industry. It became a real intimidating issue in my position, however , witnessing the very skilled technique you processed it forced me to leap with contentment. I’m thankful for this service and in addition believe you really know what a great job you have been providing training the others through the use of your website. I am sure you’ve never met all of us.

  23. paul george shoes

    I want to express my respect for your kindness supporting women who require help on that study. Your special dedication to getting the solution along has been exceptionally practical and have encouraged others much like me to realize their pursuits. The warm and helpful guideline denotes a whole lot to me and even more to my mates. Best wishes; from each one of us.

  24. curry 8

    I simply desired to thank you so much again. I’m not certain the things that I might have implemented in the absence of these techniques shown by you regarding my subject. It absolutely was a very terrifying crisis for me, but spending time with this professional technique you solved the issue took me to leap for gladness. Now i am happy for this support as well as hope that you find out what an amazing job you were accomplishing instructing many people by way of your blog. Most probably you’ve never got to know any of us.

  25. supreme new york

    I want to get across my love for your kind-heartedness in support of men who should have guidance on this particular area of interest. Your very own dedication to getting the solution all through had become certainly productive and has regularly empowered associates just like me to attain their endeavors. Your amazing informative advice implies a great deal a person like me and still more to my peers. Thank you; from everyone of us.

  26. curry shoes

    I precisely desired to appreciate you all over again. I do not know the things that I could possibly have carried out in the absence of the aspects provided by you regarding my situation. It had become a real fearsome concern for me personally, but discovering your specialised strategy you solved the issue took me to weep for delight. I am just happy for your information and then sincerely hope you know what a great job you’re putting in training the rest using a blog. Most likely you haven’t met any of us.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *