RcBuilder@walla.com
call centre: 054-5614020

angular tracks basic example

Posted by: RcBuilder  /   Category: $http / AngularJS / autocomplete / Controllers / CSS / Data Providers / Directives / Events / Factories / HTML / JAVASCRIPT / jQuery / jquery-ui / Model / module / OOP / Services / Views   /   No Comments
27
Jan
2016

angular tracks basic example app.js var module = angular.module('my-app', ; $scope.tracks = ); } $scope.Search = function () { tracksFactory.searchForTracks($scope.searchPhrase, function (response) { $scope.tracks = response; }); } $scope.LoadAutocomplete = function () { if ($scope.searchPhrase.lengh < 3) return; tracksFactory.getNames($scope.searchPhrase, function (response) { angular.element("#searchPhrase").autocomplete({ source: response }); }); } }); module.factory('tracksFactory', function ($http) { var server = 'http://ws.audioscrobbler.com/2.0/'; var queryBase = '?method=track.search&track={0}&api_key=0604d2c5492dc743997cabe3fd636099&format=json&limit={1}'; var foreach = function (arr, callback) { for (var i = 0; i < arr.length; i++) callback.call(arr); }; return { getNames:.

Read more

jQuery UI datepicker

Posted by: RcBuilder  /   Category: CSS / HTML / JAVASCRIPT / jQuery / Render Block   /   No Comments
17
Nov
2014

jQuery UI datepicker <link rel="stylesheet" type="text/css" href="css/jquery-ui.css" /> <script src="jquery-1.4.2.min.js" type="text/javascript"></script> <script src="jquery-ui.min.js" type="text/javascript"></script> <asp:TextBox ID="txtDate" runat="server" /> <script type="text/javascript"> $(document).ready(function(){ $("#<%=txtDate.ClientID %>").datepicker({ showOn: 'button', buttonImageOnly: true, buttonImage: 'images/calendar_trading.png', dateFormat: 'dd/mm/yy' }); $("#<%=txtDate.ClientID %>").datepicker("option", "firstDay",.

Read more

render-blocks displayed not correctly

Posted by: RcBuilder  /   Category: BUGS / HTML / meta / Render Block / SEO / SOURCE CODE   /   No Comments
16
Nov
2014

render-blocks displayed not correctly Bug: render-blocks displayed not correctly example: public string PageDescription = string.Empty; public string PageKeywords = string.Empty; <head runat="server"> <meta name="keywords" content="<%=this.PageKeywords%>" /> <meta name="description" content="<%=this.PageDescription%>" /> </head> result: <head> <meta name="keywords" content="&lt;%=this.PageKeywords%>" /> <meta name="description" content="&lt;%=this.PageDescription%>" /> </head> fix: just remove the runat="server" from the head.

Read more

disable enter key

Posted by: RcBuilder  /   Category: events / form / HTML / JAVASCRIPT / jQuery / onkeydown event   /   No Comments
16
Nov
2014

disable enter key <form onkeydown="return DisabledEnter(event);"> .... .... </form> ------------------------------------------------ function DisabledEnter(e) { var evt = e || window.event return evt.keyCode !=.

Read more

LINQ 2 SQL

Posted by: RcBuilder  /   Category: ADO.NET / button / Button / DBA / div / GridView / HTML / LINQ 2 SQL / SOURCE CODE / SQL   /   No Comments
09
Nov
2014

LINQ 2 SQL STEPS 1. add new Item -> Linq To SQL Classes (.dbml) 2. open server explorer -> create new connection to the desired dataBase 3. drag-drop the tables you want to map to objects remark: you can also drag stored Procedures, views and more ... 4. add -> associations (create the connections between the tables - foreign keys) 5. use.

Read more

option javascript class

Posted by: RcBuilder  /   Category: append / Array / HTML / JAVASCRIPT / jQuery / onchange / select   /   No Comments
09
Nov
2014

option javascript class OPTION CLASS function option(text, value) { this.text = text; this.value = value; this.toTag = toTag; function toTag() { return '<option value="' + this.value + '">' + this.text + '</option>'; } } HTML <select id="cmbMaster" onchange="LoadSlaveCombo(this.value);" style="width:130px;"> <option value="males">males</option> <option value="females">females</option> </select> <select id="cmbSlave" style="width:130px;"></select> USING // two levels selects // fill slave combo refer to master combo selection var arr_names = new Array(); arr_names = ; arr_names = ; function LoadSlaveCombo(type) { var cmb = $('#cmbSlave'); var arr.

Read more

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
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים