Kategori

Javascript

  • Jumlah Kode: 10
  • Update Kode Terbaru: Jul 10' 14
  • Jumlah Halaman : 2
  • Anda berada di halaman : 1

Only Input Number in HTML Input Element Using Javascript

  • 2014-07-10
  • 837
  • javascript,input,number,only

This code use for Input element of HTML only number insert.   Javascript :   function OnlyNumber(pasarkode) { var charCode = (pasarkode.which) ? pasarkode.which : event.keyCode; if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }   HTML Baca kanjut


Create Calculator Using Javascript

  • 2014-06-27
  • 451
  • javascript,calculator,number,operator

This is source Baca kanjut


Ajax load content

  • 2014-05-12
  • 737
  • ajax,loader

function loadMoreCategory(ctid, page, listData, a, btnMore, textFree, textButton, loadMoreUrl){ $("#a-loadMore").html('Loading...'); jQuery.ajax({ url: domain+"category/loadMore", dataType: "json", type: "POST", data: { 'cd' : ctid, 'page' : page }, success: function(data) { if(data.success){ var html = ""; for(var i=0; Baca kanjut


Change Number To Rupiah Format (Indonesian Currency)

  • 2014-04-28
  • 1102
  • rupiah,currency format,money

Example Number is 1234567, ti will be change to Rp. 1.234.567,00 syntax : function ChangeToRupiah(angka){ var rev = parseInt(angka, 10).toString().split("").reverse().join(""); var rev2 = ""; for(var i = 0; i < rev.length; i++){ rev2 += rev[i]; if((i + 1) % 3 === 0 && i !== (rev.length - 1)){ rev2 += "."; } } return "Rp. " Baca kanjut


Javascript Get Only Number and Get Only String

  • 2014-04-28
  • 1000
  • string,get number

This the function for get String type from a string var angka=data.replace(/[^0-9]+/g, "");   This for get only Number var huruf = data.replace(/(d+)/g, Baca kanjut


Chart Line Using Morris

  • 2014-02-21
  • 397
  • website,php,cart

  create a cart line using morris, this source : Morris.Line({ element: 'morris-chart-area', data: [ { y: '2006', a: 100, b: 90 }, { y: '2007', a: 75, b: 65 }, { y: '2008', a:2, b: 40 }, { y: '2009', a: 75, b: 65 }, { y: '2010', a: 50, b: 40 }, { y: '2011', a: 75, b: 65 }, { y: '2012', a: 100, b: 90 } ], xkey: 'y', ykeys: ['a', Baca kanjut


Form Validation Function

  • 2013-10-30
  • 408

Not Empty Field This function check if a field has been left empty. If the field is blank, an alert box alerts a message, the function returns false, and the form will not be submitted to action page: function validfield() { var x=document.forms["myForm"]["fieldcheck"].value; if (x==null || x=="") { alert("Field must be filled out"); return false; } } and you call the function Baca kanjut


Simple Code Javascript

  • 2013-11-13
  • 316
  • javascript,simple,code,browser,literate,example,listing,internet,San Francisco, SF State, SFSU, Cal State San Francisco, California State University, public university, Cal State, Gators, SF State Gators, SFSU Gators, the San Francisco State of Mind, research, business, humanities, arts, sciences, health professions, social sciences, ethnic studies, teacher preparation, community service learning, study abroad, international students, SF Promise, financial aid.

These are example scripts with short explanations drawn from the unpublished book "Quick and Easy Guide to Javascript" by Stephen Wilson Baca kanjut


Countable is a JavaScript function

  • 2013-11-19
  • 344
  • countable,javascript,html

Countable is a JavaScript function to add live paragraph-, word- and character-counting to an HTML element. Countable is a zero-dependency library and comes in at 1KB when minified and gzipped.Usage Countable offers easy-to-use methods you can use in your project. Countable.live() and Countable.once() accept one or more HTML elements and a callback that receives one parameter — holding Baca kanjut


JavaScript Kit Encrypted Password Generator

  • 2014-06-27
  • 959
  • password,key,encrypt

JavaScript may not be the best way to password-protect a webpage, but for those who do not have access to a CGI-BIN, it may very well be the only way. To provide these people with a decent JavaScript password protector that will keep out at least the average surfer, I've created this encrypted password generator. This program dynamically encrypts the password to a page (differently each Baca kanjut




Kategori