In a recent project, there was a need to make ajax calls to a remote server in a sequential manner to synchronise data. Each call would wait for the previous one to complete, before triggering the next one. See the code here.
- Home
- Posts tagged "JavaScript"
Posts tagged "JavaScript"
Cordova: Deleting a File using the File Plugin
The Apache Cordova documentation is rather good, but occasionally you encounter information that is either out-of-date or missing entirely. One such instance is the ability to delete a file when using the File plugin – the documentation for this function is missing, so to help others, I’ve included some sample code to achieve this.
Cordova, JavaScript, TutorialJavaScript: Using Moment.js to Display Dates & Times in User’s Timezone
This tutorial shows how you can use Moment.js in your website or application to display dates and times in the user’s local timezone. It’s easy to use and makes working with dates and times much easier in JavaScript.
JavaScript, Moment.js, Time ManipulationGoogle Analytics for Trigger.io
I’ve always found it frustrating that a platform like Trigger.io doesn’t support Google Analytics for tracking applications. So, I’ve decided to take things into my own hands, and have developed a very simple plugin to allow just that.
Github, JavaScript, Open Source, Plugin, Trigger.ioNodeJS: Scraping Websites Using Request and Cheerio
I’ve recently been using nodejs to build website scrapers quickly, and usually in less than 100 lines of code. This tutorial shows how you can easily create your own scraper using two nodejs modules: request and cheerio.
JavaScript, jQuery, NodeJS, ScrapingWufoo JavaScript Forms with Facebook Login
Wufoo offers a great way to create forms easily, be it for competitions, suggestions or just general contact information. With this tutorial, you can learn to extend the Wufoo forms with Facebook functionality, so you can prefill the fields.
Facebook, JavaScript, jQuery, WufooWufoo HTML Forms with Facebook Login
Wufoo offers a great way to create forms easily, be it for competitions, suggestions or just general contact information. With this tutorial, you can learn to extend the Wufoo forms you create with Facebook functionality, so you can prefill in and automatically submit forms.
Facebook, JavaScript, jQuery, WufooFacebook API: Adding Action Links to Posts
Action Links are a good way to add an extra call to action (CTA) beside the Link and Share links on Facebook Posts. This tutorial shows you how to add action links in both PHP and JavaScript.
Facebook, Facebook Graph API, JavaScript, jQuery, PHPJavaScript: Leave a Message for Snooping Developers
This handy snippet of JavaScript code lets you leave a short message (or long one) for developers using the Developer Console to inspect your website.
Developers, JavaScript, Tutorial