SlideShare a Scribd company logo
ALTCTRL Extensie firefox ca si greasemonkey , shiftspace, extensiile firefox dau putere utilizatorului asupra modului de interactionare cu webul Altctrl il ajuta la cumparaturile online
Scurta descriere Dupa instalare, veti vedea textul altctrl pe status-bar in coltul din dreapta. Navigati in magazinul online preferat, ajungeti pe pagina de detalii a produsului , apoi click pe altctrl din status si veti obtine preturile de la celelate magazine.
 
 
 
 
 
 
Declararea/interpretarea unei  functii anonime (function(){ // your code here })();
Obiecte in javascript pentru organizarea codului si usurarea mentenantei lui Simplu: var myObj = {}; varianta aleasa de mine: function _altctrl_PriceListManager(){ this.divLista = createNode('div'); this.storesTable = createNode('table'); this.orderedStoreRows = []; .... } adaugarea unei metode acestui obiect: _altctrl_PriceListManager.prototype.sortRows = function(){ this.orderedStoreRows.sort(sortByPrice); for(var i=0;i<this.orderedStoreRows.length;i++){ this.orderedStoreRows[i].insertIntoTable(this.storesTBody); } } ----------------------------------- var manager = new _altctrl_PriceListManager(); manager.sortRows();
Apelarea unei functii in scopuri/contexte diferite var tickTack = function(){ if(typeof this.idx == 'undefined'){ this.idx=0; } else{ this.idx++; if(this.idx==4) this.idx=0; } this.ctx++; if(_altctrl_TICK_INTERVAL*this.ctx>_altctrl_TIMEOUT_REQUEST){ _altctrl_list.priceRequesters[this.name].cancelWorkState(); } else this.priceCell.innerHTML=_altctrl_ticks[this.idx]; } ----------------------------------------------------- var obj = this.priceListManager.storeRows[this.storeName]; this.tickFlag = setInterval(function(){tickTack.apply(obj);},_altctrl_TICK_INTERVAL);
Apelarea unei functii in scopuri/contexte diferite cu pasarea unor argumente function _altctrl_PriceRequester(storeName){ this.storeName=storeName; this.storeBrowser = getStoreBrowser(storeName); var obj = this; this.storeBrowser.addEventListener(&quot;load&quot;, function (event) { obj.processLoad.apply(obj,[event]); }, true); }

More Related Content

PDF
PDF
Peek inside the fantastical Ukrainian Village home and studio of artists Jare...
PDF
Pantalla acceso al sistema
PDF
PDF
Codnuita IAB
PPT
Web Stock09 Viorel Spinu
PDF
The Canonically Bad (Digital) Humanities Proposal (and how to avoid it)
PPT
Din Cascada, Prin Spirala, Inspre Programari
Peek inside the fantastical Ukrainian Village home and studio of artists Jare...
Pantalla acceso al sistema
Codnuita IAB
Web Stock09 Viorel Spinu
The Canonically Bad (Digital) Humanities Proposal (and how to avoid it)
Din Cascada, Prin Spirala, Inspre Programari

Viewers also liked (20)

PPT
Social Networks And Private Life
PPT
Webstock Bob Rapp
PDF
Escaping the Red Queen's Race with Open Access
PDF
Databases, Markup, and Regular Expressions
PDF
MARC and BIBFRAME; Linking libraries and archives
PDF
Canoe the Open Content Rapids
PDF
Le IR, c'est mort. Vive le IR!
PDF
Research Data and Scholarly Communication
PDF
Privacy and libraries
PDF
Taming the Monster: Digital Preservation Planning and Implementation Tools
PDF
Open Content
PDF
Canoe the Open Content Rapids
PDF
Avoiding the Heron's Way
PDF
Who owns our work? (notes)
PDF
Is this BIG DATA which I see before me?
PDF
Risk management and auditing
PDF
Save the Cows! Cyberinfrastructure for the Rest of Us
PDF
So you think you know libraries
PPT
Bannerul Pe Tel Mobil
PPT
Prezentare Webstock Daedalus
Social Networks And Private Life
Webstock Bob Rapp
Escaping the Red Queen's Race with Open Access
Databases, Markup, and Regular Expressions
MARC and BIBFRAME; Linking libraries and archives
Canoe the Open Content Rapids
Le IR, c'est mort. Vive le IR!
Research Data and Scholarly Communication
Privacy and libraries
Taming the Monster: Digital Preservation Planning and Implementation Tools
Open Content
Canoe the Open Content Rapids
Avoiding the Heron's Way
Who owns our work? (notes)
Is this BIG DATA which I see before me?
Risk management and auditing
Save the Cows! Cyberinfrastructure for the Rest of Us
So you think you know libraries
Bannerul Pe Tel Mobil
Prezentare Webstock Daedalus
Ad

Altctrl Presentation Geek

  • 1. ALTCTRL Extensie firefox ca si greasemonkey , shiftspace, extensiile firefox dau putere utilizatorului asupra modului de interactionare cu webul Altctrl il ajuta la cumparaturile online
  • 2. Scurta descriere Dupa instalare, veti vedea textul altctrl pe status-bar in coltul din dreapta. Navigati in magazinul online preferat, ajungeti pe pagina de detalii a produsului , apoi click pe altctrl din status si veti obtine preturile de la celelate magazine.
  • 3.  
  • 4.  
  • 5.  
  • 6.  
  • 7.  
  • 8.  
  • 9. Declararea/interpretarea unei functii anonime (function(){ // your code here })();
  • 10. Obiecte in javascript pentru organizarea codului si usurarea mentenantei lui Simplu: var myObj = {}; varianta aleasa de mine: function _altctrl_PriceListManager(){ this.divLista = createNode('div'); this.storesTable = createNode('table'); this.orderedStoreRows = []; .... } adaugarea unei metode acestui obiect: _altctrl_PriceListManager.prototype.sortRows = function(){ this.orderedStoreRows.sort(sortByPrice); for(var i=0;i<this.orderedStoreRows.length;i++){ this.orderedStoreRows[i].insertIntoTable(this.storesTBody); } } ----------------------------------- var manager = new _altctrl_PriceListManager(); manager.sortRows();
  • 11. Apelarea unei functii in scopuri/contexte diferite var tickTack = function(){ if(typeof this.idx == 'undefined'){ this.idx=0; } else{ this.idx++; if(this.idx==4) this.idx=0; } this.ctx++; if(_altctrl_TICK_INTERVAL*this.ctx>_altctrl_TIMEOUT_REQUEST){ _altctrl_list.priceRequesters[this.name].cancelWorkState(); } else this.priceCell.innerHTML=_altctrl_ticks[this.idx]; } ----------------------------------------------------- var obj = this.priceListManager.storeRows[this.storeName]; this.tickFlag = setInterval(function(){tickTack.apply(obj);},_altctrl_TICK_INTERVAL);
  • 12. Apelarea unei functii in scopuri/contexte diferite cu pasarea unor argumente function _altctrl_PriceRequester(storeName){ this.storeName=storeName; this.storeBrowser = getStoreBrowser(storeName); var obj = this; this.storeBrowser.addEventListener(&quot;load&quot;, function (event) { obj.processLoad.apply(obj,[event]); }, true); }