Posts Tagged:AJAX

rfp-robotRFP ROBOT: Website Request for Proposal Generator

The time has come for a new website (or website redesign), which means you need to write a website request for proposal or web RFP. A Google search produces a few examples, but they vary wildly and don’t seem to speak really to your goals for developing or redesigning a new website. You need to write a website RFP that will clearly articulate your needs and generate responses from the best website designers and developers out there. But how?

Have no fear, RFP Robot is here. He will walk you through a step-by-step process to help you work through the details of your project and create a PDF formatted website design RFP that will provide the information vendors need to write an accurate bid. RFP Robot will tell you what info you should include, point out pitfalls, and give examples.


(Now More Than Ever) You Might Not Need jQuery

The DOM and native browser API’s have improved by leaps and bounds since jQuery’s release all the way back in 2006. People have been writing “You Might Not Need jQuery” articles since 2013 (see this classic site and this classic repo). I don’t want to rehash old territory, but a good bit has changed in browser land since the last You Might Not Need jQuery article you might have stumbled upon. Browsers continue to implement new APIs that take the pain away from library-free development, many of them directly copied from jQuery. Let’s go through some new vanilla alternatives to jQuery methods. Remove an element from the page Remember the maddeningly roundabout way you had to remove an element from the page with vanilla DOM? el.parentNode.removeChild(el);? Here’s a comparison of the jQuery way and the new improved vanilla way. jQuery: var $elem = $(“.someClass”) //select the element $elem.remove(); //remove the…

Read More →

Introducing Microcosm: Our Data Layer For React

One of my favorite things about working in client-services is the interval with which we start new work. As a React shop, this means we build a lot of new apps from the ground up. Along the way, we’ve distilled what we’ve learned and baked it into a tool that I, finally, want to talk about. Microcosm is our general purpose tool for keeping React apps organized. We use it to work with application state, split large projects into manageable chunks, and as the guiding star for our application architecture. Before I go too much further: check it out the project on Github! In this post, I’ll provide a high level overview of Microcosm and some of the features I find particularly valuable. At a glance Microcosm was born out of the Flux mindset. From there it draws similar pieces: Actions Actions are a general abstraction for performing a job.…

Read More →

Form Validation – Part 4: Validating the MailChimp Subscribe Form

Over the last few articles in this series, we’ve learned how to use a handful of input types and validation attributes to natively validate forms. We’ve learned how to use the Constraint Validation API to enhance the native browser validation process for a better overall user experience. And we wrote a polyfill to extend support all the way back to IE9 (and plug a few feature holes in some newer versions). Now, let’s take what we’ve learned and apply it to a real example: the MailChimp signup form. Article Series: Constraint Validation in HTML The Constraint Validation API in JavaScript A Validity State API Polyfill Validating the MailChimp Subscribe Form (You are here!) A simple form with a large footprint When you embed a MailChimp signup form on your site, it comes with a JavaScript validation script named `mc-validate.js`. This file is 140kb (minified), and includes the entire jQuery library,…

Read More →

Form Validation Part 2: The Constraint Validation API (JavaScript)

In my last article, I showed you how to use native browser form validation through a combination of semantic input types (for example, <input type=”email”>) and validation attributes (such as required and pattern). While incredibly easy and super lightweight, this approach does have a few shortcomings. You can style fields that have errors on them with the :invalid pseudo-selector, but you can’t style the error messages themselves. Behavior is also inconsistent across browsers. User studies from Christian Holst and Luke Wroblewski (separately) found that displaying an error when the user leaves a field, and keeping that error persistent until the issue is fixed, provided the best and fastest user experience. Unfortunately, none of the browsers natively behave this way. However, there is a way to get this behavior without depending on a large JavaScript form validation library. Article Series: Constraint Validation in HTML The Constraint Validation API in JavaScript (You…

Read More →

A Pretty Good SVG Icon System

I’ve long advocated SVG icon systems. Still do. To name a few benefits: vector-based icons look great in a high pixel density world, SVG offers lots of design control, and they are predictable and performant. I’ve also often advocated for a SVG icon system that is based on <symbol>s (an “SVG sprite”) and the <use> element for placing them. I’ve changed my mind a little. I don’t think that is a bad way to go, really, but there is certainly a simpler (and perhaps a little better) way to go. Just include the icons inline. That’s it. Sorry if you were hoping for something fancier. Like this: <button> <svg class=”icon icon-cart” viewBox=”0 0 100 100″ aria-hidden=”true”> <!– all your hot svg action, like: –> <path d=” … ” /> </svg> Add to Cart </button> Or perhaps more practically, with your server-side include of choice: <button> <?php include(“/icons/icon-cart.svg”); ?> Add to…

Read More →

How to Deal with the AJAX Loading Error: Not Found Error

Did you ever face the dreaded “AJAX Loading Error: Not Found” error message when trying to update your Joomla site using the “Joomla! Update” core component?    In this tutorial, you will learn a few tips helping your to get rid of this error and smoothly run your Joomla update.   [[ This is a content summary only. Visit http://OSTraining.com for full links, other content, and more! ]] Source: https://www.ostraining.com/

Using Fetch

Whenever we send or retrieve information with JavaScript, we initiate a thing known as an Ajax call. Ajax is a technique to send and retrieve information behind the scenes without needing to refresh the page. It allows browsers to send and retrieve information, then do things with what it gets back, like add or change HTML on the page. Let’s take a look at the history of that and then bring ourselves up-to-date. Another note here, we’re going to be using ES6 syntax for all the demos in this article. A few years ago, the easiest way to initiate an Ajax call was through the use of jQuery’s ajax method: $.ajax(‘some-url’, { success: (data) => { /* do something with the data */ }, error: (err) => { /* do something when an error happens */} }); We could do Ajax without jQuery, but we had to write an XMLHttpRequest,…

Read More →

Senior Java Developer – Loginsoft Consulting LLC – Rockville, MD

Senior Java Developer. Knowledge in other technologies such as Drupal, HTML, HTML5, CSS (Cascading Style Sheets) JQuery and AJAX may also be necessary….From Loginsoft Consulting LLC – Sat, 29 Apr 2017 01:43:34 GMT – View all Rockville jobs Source: http://rss.indeed.com/rss?q=Drupal+Developer

When Does a Project Need React?

You know when a project needs HTML and CSS, because it’s all of them. When you reach for JavaScript is fairly clear: when you need interactivity or some functionality that only JavaScript can provide. It used to be fairly clear when we reached for libraries. We reached for jQuery to help us simplify working with the DOM, Ajax, and handle cross-browser issues with JavaScript. We reached for underscore to give us helper functions that the JavaScript alone didn’t have. As the need for these libraries fades, and we see a massive rise in new frameworks, I’d argue it’s not as clear when to reach for them. At what point do we need React? I’m just going to use React as a placeholder here for kinda large JavaScript framework thingies. Vue, Ember, Svelte… whatever. I understand they aren’t all the same, but when to reach for them I find equally nebulous.…

Read More →

Say You Need a Persistent Data Store Entirely on the Client-Side

You got your localStorage. You got your IndexedDB. Those are both client side and capable of storing data, but they are limited to a single browser. I can’t store data there from my laptop then come back later on my phone and have the same data. That’s the kind of thing websites have back-end databases for. The data is stored elsewhere, so you have access everywhere. But what if you don’t want to deal with a back end? There are third-party solutions for this. Firebase Firebase has a “Realtime Database” feature, so not only can you gather, store, and send data from the client side, that data is synced across any other device currently connected to the same database (if you care to do that). Instead of typical HTTP requests, the Firebase Realtime Database uses data synchronization—every time data changes, any connected device receives that update within milliseconds. That’s just…

Read More →

ES6 for Drupal Developers: ES6 Modules, Classes, and Promises

Some of the most important new features in ES6 originate from existing solutions for problems shared by a large swath of JavaScript applications. This is particularly true of ES6 modules, a new system of class-based inheritance, and promises. Prototypal inheritance can be difficult for those new to JavaScript. And at some point, modules and promises have both been present in various JavaScript libraries, but until now, they were impossible to implement natively. In the previous installment of this blog series, we looked at some of the most conspicuous aspects of ES6, such as arrow functions and concise methods, in addition to smaller syntactic features like template literals and computed property names. In this final installment of the “ES6 for Drupal Developers” series, we’ll dig into ES6 modules, classes, and promises, all essential elements that are emblematic of the new way to write JavaScript. ES6 modules and named exports The most…

Read More →

Animate in Ajax’d Content to its Natural Height

Let’s combine three things we just learned here on CSS-Tricks: One, transitioning to auto dimensions. Two, Ajaxing for stuff in a modern way. Three, waiting for images to be loaded to measure them. With all these three things in our toolbox, we can Ajax for some arbitrary content and insert it onto the page with a revealing height animation. Tricky tricky! Here’s the final demo: See the Pen Slide in Ajax Content by Chris Coyier (@chriscoyier) on CodePen. The thinking here is that since we’re guaranteed to be using JavaScript anyway, since we’re Ajaxing for some content, we might as well keep using JavaScript to help us make a smooth transition. In the grand tradition of “writing a script”, here’s ours: Ajax for the stuff Make a dummy element that is exactly as wide as where you plan to inject the stuff Inject your stuff into the dummy element Measure…

Read More →

Associate Director, Software Development & Project Management – Columbia University – New York, NY

Django, NodeJS, AWS, Hugo, MySQL, RSS, Ajax, Drupal, Linux administration, Apache Administration. The Associate Director will also design and engineer software…From Columbia University – Thu, 16 Mar 2017 22:44:59 GMT – View all New York jobs Source: http://rss.indeed.com/rss?q=Drupal+Developer

Need to do Dependency-Free Ajax?

One of the big reasons to use jQuery, for a long time, was how easy it made Ajax. It has a super clean, flexible, and cross-browser compatible API for all the Ajax methods. jQuery is still mega popular, but it’s becoming more and more common to ditch it, especially as older browser share drops and new browsers have a lot of powerful stuff we used to learn on jQuery for. Even just querySelectorAll is often cited as a reason to lose the jQuery dependency. How’s Ajax doing? Let’s say we needed to do a GET request to get some HTML from a URL endpoint. We aren’t going to do any error handling to keep this brief. jQuery would have been like this: $.ajax({ type: “GET”, url: “/url/endpoint/”, }).done(function(data) { // We got the `data`! }); If we wanted to ditch the jQuery and go with browser-native Ajax, we could do…

Read More →

Build a Custom Serverless CMS: Part 2

In our previous proof-of-concept demo, we built a bare bones admin for generating a web page with the ability to edit some text on the page and set the site title and description. For this next demo, we build on our example and add rich text editing and image upload capabilities. Article Series: Build a Custom CMS for a Serverless Static Site Generator + Repo Build a Custom Serverless CMS: Part 2 (you are here!) + Repo Rich Text Editing TinyMCE is the most widely used web-based Rich Text Editor around, so let’s use it. We can add it to our admin form pretty easily. There are many configuration options available for TinyMCE. For this demo, we only need a few. tinymce.init({ selector: ‘#calloutText’, menubar: false, statusbar: false, toolbar: ‘undo redo | styleselect | bold italic | link’, plugins: ‘autolink link’ }); The rich text editor will encode its content…

Read More →

“Write a script”

Jeremy Keith, on teaching people JavaScript for the first time: blockquote> A lot of that boils down to this pattern: When (some event happens), then (take this action). We brainstormed some examples of this e.g. “When the user submits a form, then show a modal dialogue with an acknowledgment.” I then encouraged them to write a script …but I don’t mean a script in the JavaScript sense; I mean a script in the screenwriting or theater sense. Line by line, write out each step that you want to accomplish. Once you’ve done that, translate each line of your English (or Portuguese) script into JavaScript. Pseudo code. I’m a big fan. Writing a code flow out in plain English works great for beginners, and in my experience remains useful forever. I find myself regularly writing pseudo code in Slack and in bug/idea tickets, although I’ve perhaps graduated from plain English to…

Read More →

Senior Drupal Developer – Comtech LLC – Keyser, WV

Experience with Drupal AJAX. The team is seeking a Drupal Back End / Module developer who will produce best-in-class products and work in tandem with our…From Comtech LLC – Sat, 21 Jan 2017 04:08:27 GMT – View all Keyser jobs Source: http://rss.indeed.com/rss?q=Drupal+Developer

Drupal Developer – Back End – The Aspen Group – Keyser, WV

Back end Drupal Developer:. Back End Developer:. Experience with Drupal AJAX. Seeking a Drupal Back End / Module developer who will produce best-in-class…From Indeed – Fri, 20 Jan 2017 15:22:12 GMT – View all Keyser jobs Source: http://rss.indeed.com/rss?q=Drupal+Developer

Drupal Developer – Marathon TS – Rockville, MD

Experience with Drupal AJAX. Marathon TS is seeking an experienced Drupal Developers, for a long term contract opportunity supporting a large government…From Marathon TS – Fri, 20 Jan 2017 04:08:49 GMT – View all Rockville jobs Source: http://rss.indeed.com/rss?q=Drupal+Developer

Back to Top