Skip to main content

Blog

jQuery - Empty Field Validation

One of the most used logic related to submitting a form is preventing sumbission if a field is empty.

In this example we'll provide examples with source code how to prevent form submit in case of empty field.

The main trick here is using .preventDefault() function to stop the submission.

jQuery - Key Pressed Events

In this tutorial we're providing example for determining which keyboard's key is pressed. Here is a part of HTML code we'll use for the example:

SilverStripe Syntax Highlighter

A blog dedicated to software design and development, as our company blog is, usually has many articles that contain program code examples. It would be very useful to have code highlighting enabled by default in SilverStripe CMS.

However, we can add it easyily. One of the most used JavaScript tool fo code highlighting is SyntaxHighligher created by Alex Gorbatchev (http://alexgorbatchev.com). We're going to describe the procedure for implementing SyntaxHiglighter to SilverStripe CMS in step-by-step tutorial.

jQuery - Read More.../Read Less... Link

One of very usefull tip is for creating a "Read More..." link when only a few lines of text are displayed and the rest of the text is shown after clicking the link.

Marketing Multitasking

At its most basic, when marketing multitasks, social media is used as a platform to announce the latest blog entry, press release, deal, coupon, video, podcast, and more. Taking social media marketing to the next level means online marketers create content specifically with a social media channel in mind, Twitter-only promotions, and so on.