Author Archives: Andrei

jQuery effects tutorial

jquery_logo

jQuery effects tutorial In this tutorial we will talk about jquery effects. For building interactive web applications you need to be able to show, hide, animate elements on your page. For this, jquery comes with a great set of methods for easing your work. This tutorial covers all the important jQuery methods to create visual effects.

Programming jokes

comic

Programming jokes A few months ago I wrote an article about funny comments encountered in different applications taken from the web. The holidays are coming so it is time to have more fun and relax a bit. Let’s spend some time on an article about programming jokes. These are all found over the internet, and

How to explode a string on upper case characters

snippets

How to explode a string on upper case characters Problem You have a string with the following value “thisStringMustBeSplittedAfterUpperCase” and you want to obtain every word separately in an array, splitted after upper case. Solution

Output The output of the $chunks array obtained with a var_dump($chunks) will be:

Solution in a function

How to strip all spaces out of a string in php

snippets

How to strip all spaces out of a string in php You have a string stored in a PHP variable, and you want to eliminate all whitespaces or spaces from that string with PHP, not only from the beginning or the end of the string. Scenario

Solution for spaces

Solution for whitespaces

jQuery ajax tutorial example

jquery_logo

jQuery ajax tutorial example This is probably the most interesting and yet complicated thing from our tutorial series. This is the magic that modern websites are using in order to update in real time their content, database, etc. What is AJAX ? Ajax stands for Asynchronous JavaScript and XML. From Wikipedia, it is a group of interrelated web development techniques used on

jQuery events handling

jquery_logo

jQuery events handling Here we are with our next tutorial about events handling in jQuery. We arrived pretty far. By now you should know how to select elements from the DOM, use them further from traversing and all kinds of manipulations. What are events? Events are actions that can be detected by your Web Application

jQuery DOM manipulation methods

jquery_logo

jQuery DOM manipulation methods In today’s tutorial we will learn how to manipulate DOM elements. We can add elements one after another, replace one element with another one, get properties such as width or height or remove completely elements from the DOM. A few of these methods — such as .attr(), .html(), and .val() — also act as “getters”,

jQuery css methods

jquery_logo

The jQuery library supports almost all of the selectors included in CSS 1, 2 and 3. When using jQuery, the developers can built websites without carring too much about the browser, because jQuery supports also older versions of Internet Explorer (Be careful, because jQuery 2.0 doesn’t support anymore IE 6, 7 or 8.  This can

jQuery DOM Traversing

jquery_logo

jQuery DOM Traversing Once you have made an initial selection with jQuery as we learned in the past tutorial about jquery selectors, you can traverse deeper into what was just selected. In order to master the DOM traversal you have to  be familiar with three basic parts: parents, children, and siblings. jQuery has lots of

jQuery DOM Attributes tutorial

jquery_logo

jQuery DOM Attributes In the previous chapters we talked about jquery selectors and we learned that they are coming from css world. We selected elements that were available in the DOM that can be manipulated in all kinds of ways. In this tutorial we will go further and we will talk about DOM attributes. We can manipulate

Request an article ←