This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///<summary> Sample: </summary> | |
///<code> | |
/// $.getJson("url", function(data){ | |
/// //data : [{Value:1, Text: 'value 1', Selected:false},{Value:2, Text: 'value 2', Selected: true}] | |
/// $("#mySelect").loadOptions(data); | |
/// }); | |
/// or | |
/// $.getJson("url", function(data){ | |
/// //data : [{id:1, name: 'value 1'},{id:2, name: 'value 2'}] | |
/// $("#mySelect").loadOptions(data, {value: 'id', text: 'name'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//demo: http://jsfiddle.net/uPvTm/8/ | |
;(function($) { | |
$.labelFadeInput = function () { | |
///use to set labelFadeInput in All input's with title | |
///ex: <input type='text' title='Any text here' />, use $.labelFadeinput(); | |
$('input:text[title]').each(function() { | |
setEvents.call(this); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//demo: http://jsfiddle.net/AbraaoAlves/W7j4z/18/ | |
//use this: | |
//$("input:first").tip(); | |
//$("[data-tip]").tip({tipMsgAttr: 'data-tip'}); | |
//$("p").tip('custom message'); | |
(function($){ | |
var $defaults = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
var accent_map = { | |
'á':'a', | |
'à':'a', | |
'â':'a', | |
'å':'a', | |
'ä':'a', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$.fn.carregaOptions = function(configs) { | |
var defaults = { | |
options : [], | |
template: function(val) { | |
return '<option value="{0}">{1}</option>'.format(val[0], val[1]); | |
} | |
}; | |
return this.each(function(val) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function A(){} /* constructor */ | |
A.prototype = { /* especification of prop and methods of the class A */ | |
num : 5, | |
name : 'test', | |
action : function(){ /*base implementation*/}, | |
alert | |
}; | |
function B(){ /* constructor */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import flash.display.Sprite; | |
import flash.events.*; | |
import flash.net.*; | |
public class RequestJson extends Sprite { | |
private var loader:URLLoader; | |
private var request:URLRequest; | |
private var _completeHandler:Function; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.parentN = function(n){ | |
var result = this; | |
for(var i = 0; i< n; i++) | |
result = result.parent(); | |
return result; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Com git instalado, via powershell: | |
#antes de executar o ps1: Set-ExecutionPolicy Unrestricted | responder S | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\bin")) | |
{ | |
$env:path += ";C:\Program Files (x86)\Git\bin"; | |
} | |
if(!$env:path.Contains("C:\Program Files (x86)\Git\cmd")) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.field[data-col]:not(.dlk-field) textarea': function(data, el) { | |
return { text: data[el.parentNode.getAttribute('data-col')] }; | |
} |
OlderNewer