Archive | JS

RSS feed for this section
Google Maps JavaScript API v3: method Polyline.getBounds

Google Maps JavaScript API v3: method Polyline.getBounds

In Google Maps JavaScript API v2, Polyline had a getBounds() method, but that doesn’t exist for v3 Polyline. I wrote some methods below: Method 1: Method 2: Method 3 is the shortest method. Image copyright: Google Maps

Read full story Comments { 0 }

PHP: convert javascript escape string to CP1251

This function can convert javascript escape string to CP1251: Example 2: result: ຈະນານຸກົມພິເສດ Read more: PHP: convert javascript escape string to UTF8

Read full story Comments { 0 }
PHP: convert javascript escape string to UTF8

PHP: convert javascript escape string to UTF8

Read first: PHP: PHP: Convert Numeric Character Reference to UTF8 Example 1: U+0621: ARABIC LETTER HAMZA Java Escape: “\u0621” Javascript Escape: “\u0621” result: ء We can create this function below: Example 2: result: สารานุกรมเสรี Alternative function:

Read full story Comments { 0 }
Simple Javascript OOP tutorial

Simple Javascript OOP tutorial

JavaScript Objects An object is a collection of Methods and properties. Javascript has predefined object types such as: Array, Boolean, Date, Function, Image, Number, Object, Option, RegExp, or String it also allows you to create your own user defined objects.

Read full story Comments { 0 }

Multilevel drop down menu horisontal with CSS/JS/HTML

Horizontal drop down menu in several levels – or as we “drop down menu multilevel horisontal” is a common element of the website. When you first decide to locate in our code seems to be a very simple task, a few lines of html, css and a pair of nearly!

Read full story Comments { 0 }