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

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

clearfix

Posted by: RcBuilder  /   Category: CSS / div / HTML   /   No Comments
22
Oct
2014

clearfix CSS .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } html .clearfix { display: block; } * html .clearfix { height: 1%; }   HTML <div class="clearfix"> <div style="float:left;">A</div> <div style="float:left;">B</div> <div style="float:left;">C</div> <div style="float:left;">D</div> <div style="float:left;">E</div> <div style="float:left;">F</div> </div> <div>G</div> <div class="clearfix"> <div style="float:left;">H</div> <div style="float:left;">I</div> <div style="float:left;">J</div> <div style="float:left;">K</div> </div> <div>L</div> <div>M</div> <div class="clearfix"> <div style="float:left;">N</div> <div style="float:left;">O</div> <div style="float:left;">P</div> <div style="float:left;">Q</div> <div style="float:left;">R</div> <div style="float:left;">S</div> <div style="float:left;">T</div> <div style="float:left;">U</div> <div style="float:left;">V</div> </div> <div>W</div> <div class="clearfix"> <div style="float:left;">X</div> <div style="float:left;">Y</div> <div.

Read more

jquery custom attributes

Posted by: RcBuilder  /   Category: a / body / CSS / css / HTML / JAVASCRIPT / jQuery / span   /   No Comments
20
Oct
2014

jquery custom attributes jquery script <script type="text/javascript" src="jquery-1.5.2.min.js"></script> HTML <a limited="1">LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a>LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a limited="1">LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a>LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a limited="1">LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a limited="0">LINK</a>&nbsp;&nbsp;|&nbsp;&nbsp; <a limited="1">LINK</a> <br /><br /> <span>SPAN</span>&nbsp;&nbsp;|&nbsp;&nbsp; <span limited="1">SPAN</span>&nbsp;&nbsp;|&nbsp;&nbsp; <span limited="1">SPAN</span>&nbsp;&nbsp;|&nbsp;&nbsp; <span>SPAN</span> script // all elements in the document have the attribute limited set to value 1 $('').css('color', 'blue'); // all elements in the document have the attribute limited set to value 1 $('body > ').css('color',.

Read more

custom input file

Posted by: RcBuilder  /   Category: button / CSS / file / getElementById / HTML / image / JAVASCRIPT   /   No Comments
05
Oct
2014

custom input file - css trick logic : due to security issues, the client MUST perform the actual click on the input file, so we located our custom button/image at the very exact position as the actual input file at the same sizes and decrease the opacity to 0 in order to hide the actual input file. concern to.

Read more

Div As Table

Posted by: RcBuilder  /   Category: CSS / div / HTML / table   /   No Comments
23
Sep
2014

Div As Table CSS <style type="text/css"> #table { display: table; } #row { display: table-row; border:dotted 1px #333; } #left, #right, #middle { display: table-cell; padding:10px; } #left{background-color:yellow;} #right{background-color:Purple;} #middle{background-color:Aqua;} </style> HTML <div id="table"> <div id="row"> <div id="left"> <h4>Left Col</h4> <p>text text text text</p> </div> <div id="middle"> <h4>Middle Col</h4> <p> text text text text text text text text text text text text<br /> text text text text text text text text text text text text<br /> text text text text text text text text text.

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