RcBuilder@walla.com
call centre: 054-5614020

javascript CLOCK

Posted by: RcBuilder  /   Category: CSS / HTML / HTML 5 / JAVASCRIPT / jQuery / setTimeout / span   /   No Comments
09
Nov
2014

javascript CLOCK CLOCK CLASS function CLOCK(targetName, options) { var that = this; var time = new Date(); var target = $('#' + targetName); var intervalInSeconds = options.interval || 1; var autoStart = options.autoStart || true; if (options.startTime) SetTime(options.startTime); var timer = null; this.Start = Start; this.Stop = Stop; if (autoStart) Start(); function SetTime(startTime) { try{ var time_parts = startTime.split(':'); var hh = parseInt(time_parts); var mm = parseInt(time_parts); var ss = parseInt(time_parts); if (isNaN(hh) || isNaN(mm).

Read more

AngularJS Modules (Apps)

Posted by: RcBuilder  /   Category: $http / AngularJS / Config / Controllers / Data Bind / Data Providers / Directives / Events / Factories / Filters / HTML / HTML 5 / JAVASCRIPT / Model / module / Services / Views   /   No Comments
26
Oct
2014

AngularJS Modules (Apps) you can refer to module as a container or a namespace it's recommended to bind a module to your page and turn it to some sort of an application you can add config to each module and then add a routes mechanism to it bind a page to specific module * to bind a page to a.

Read more

AngularJS General

Posted by: RcBuilder  /   Category: AngularJS / Controllers / HTML / HTML 5 / JAVASCRIPT / Model / Views   /   No Comments
26
Oct
2014

AngularJS General What is AngularJS? angularJS is a javascript MVC framework developed by Google corp. a modular structure with a two-way data binding so any update on the model will reflected in the view official site https://angularjs.org/ api reference https://docs.angularjs.org/api download you can download the angular.js at the official site its recommended to download the laterst minified stable version remark: you can also use the CDN.

Read more

AngularJS Custom Filters

Posted by: RcBuilder  /   Category: AngularJS / Controllers / Data Bind / Filters / HTML / HTML 5 / JAVASCRIPT / Model / module   /   No Comments
26
Oct
2014

AngularJS Custom Filters same rules as the built-in filters (see 'built-in filters') notice! don't forget to add your custom filter to the application steps to implement custom filter you can add custom filter for single item or for collection with or without params 1.create custom function (see structures below) 2.in the app.js - add your created function to the application(see 'bind.

Read more

AngularJS built-in Filters

Posted by: RcBuilder  /   Category: AngularJS / Controllers / Data Bind / Filters / HTML / HTML 5 / JAVASCRIPT / Model / module   /   No Comments
26
Oct
2014

AngularJS built-in Filters use the '|' pipe to apply filter on data binding or repeater clause (see filters list at the api reference) types * static filter - works on data binding single value (not on collection) * collection filter - works on repeater items collection * collection filter + parameters * controller filter - only for the current scope using structure | : built-in.

Read more

AngularJS Custom Directives

Posted by: RcBuilder  /   Category: AngularJS / Controllers / createElement / Data Bind / Directives / HTML / HTML 5 / JAVASCRIPT / Model / module   /   No Comments
26
Oct
2014

AngularJS Custom Directives same rules as the built-in directives (see 'built-in directives') you can add your custom directive which can be any of the 4 directive types (see 'types' under built-in directives) notice! don't forget to add your custom directive to the application types - Element (E) <ng-my-directive></ng-my-directive> - Attribute (A) <span ng-my-directive></span> - CSS class (C) <span class="ng-my-directive: expression;"></span> - Comment (M) <!-- directive: ng-my-directive expression.

Read more

AngularJS built-in directives

Posted by: RcBuilder  /   Category: AngularJS / Directives / HTML / HTML 5 / JAVASCRIPT / Model / module   /   No Comments
26
Oct
2014

AngularJS built-in directives notice! 'ng-' or 'data-ng-' prefix indicates of angular directive (see directives list at the api reference) types - Element (E) <ng-my-directive></ng-my-directive> - Attribute (A) <span ng-my-directive></span> - CSS class (C) <span class="ng-my-directive: expression;"></span> - Comment (M) <!-- directive: ng-my-directive expression --> ng-app init the angular. wherever this directive will be defined - it would be the application scope. its recommended to add this directive within the html tag.

Read more

AngularJS $http

Posted by: RcBuilder  /   Category: $http / AngularJS / Controllers / Data Providers / Factories / HTML / HTML 5 / JAVASCRIPT / Services   /   No Comments
26
Oct
2014

AngularJS $http * use $http to perform a server calls - you need to add it as argument to the factory/service function types 1.get(url); 2.head(url); 3.post(url, data); 4.put(url, data); 5.delete(url); 6.jsonp(url); 7.patch(url, data); structure $http.get() .success(function (data, status, headers, config) { }) .error(function (data, status, headers, config) { }); example $http.get('http://myserver.com/api/getjson.ashx') .success(function (data, status, headers, config) { }) .error(function (data, status, headers, config) { }); usage as a factory you'll find below two options.

Read more

AngularJS Factory

Posted by: RcBuilder  /   Category: AngularJS / Controllers / Data Providers / Factories / HTML / HTML 5 / JAVASCRIPT   /   No Comments
26
Oct
2014

AngularJS Factory * the factory definition performed via the module.factory built-in faction * when working with factory, you create your custom object and return it * serve as data supplier in order to seperate the data from the logic layer (the controller) the controller will get the data from the factory * after you create your factory object, use the.

Read more
12
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים