Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 4 5 6 7 8 ... 47
In software engineering, a mediator is a behavioral design pattern that allows us to expose a unified interface through which the different parts of a system may communicate. If it appears a system may have too many direct relationships between modu...
0 355 posted 10 years ago by timsommer
The module pattern was originally defined as a way to provide both private and public encapsulation for classes in conventional software engineering. In JavaScript, the module pattern is used to further emulate the concept of classes in such a way t...
0 355 posted 10 years ago by timsommer
In object literal notation, an object is described as a set of comma-separated name/ value pairs enclosed in curly braces ({}). Names inside the object may be either strings or identifiers that are followed by a colon. There should be no comma used...
0 294 posted 10 years ago by timsommer
In conventional software engineering, the singleton pattern can be implemented by creating a class with a method that creates a new instance of the class if one doesn't In conventional software engineering, the singleton pattern can be implemented b...
1 362 posted 10 years ago by timsommer
Easy-to-use leaderboard
0 380 posted 10 years ago by chrisaiv
format numbers in javascript with group digits
0 689 posted 10 years ago by rg443
išorinio javascript failo įtraukimas į html
0 284 posted 10 years ago by ptomas
Calculates the amount of time since the date specified with yr, mon, and day. The parameter "countunit" can be "years", "months", or "days" and is the duration between the specified day and today in the selected denomination. The "decimals" parameter...
0 450 posted 10 years ago by StevenW721
Adds a method to the jQuery Validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) to return false if the field equals a specified string
0 925 posted 10 years ago by StevenW721
In javascript there is no function for printing variables like you have PHP, I use print_r and var_dump a lot in PHP for dumping variables so I wanted to create a simular function in javascript.
0 578 posted 10 years ago by satie83
How to retrieve entity StateCode (Status) in JavaScript by accessing CRM oDATA (REST) Service
0 642 posted 10 years ago by toLL
How to launch custom dialog from JavaScript (for example from custom RibbonButton)
0 386 posted 10 years ago by toLL
Remove the item from the array changing the length of the array.
0 540 posted 10 years ago by agarcim
This javascript will create a complex google javascript map with multiple locations selected marked. The map will be centered in the middle and zoomed so that all point can be seen. It also stylizes the map making it mostly desaturated with bits of o...
0 769 posted 10 years ago by FatFolderDesigner
This javascript will create a google map on the div with the ID "the_map" and centered on an address with a marker on it. In this example the address is for Jet City Improv. More information on setup and customization at the link.
0 620 posted 10 years ago by FatFolderDesigner
mini/micro javascript
0 350 posted 10 years ago by praveensewak
Both are functionally equivalent
1 293 posted 10 years ago by grasshoper
I am having an issue making the div stay opened when it gets animated
0 348 posted 10 years ago by skeletor1101
Here we have simple javascript HTML5 support.
1 438 posted 10 years ago by o0110o
Here’s a very simple script which adds numbers sequentially to an unordered list using jQuery
0 463 posted 10 years ago by satie83
I'm facing an error when i read the JS array using a JS loop
0 448 posted 10 years ago by kaushikTD
Another approach that helps saving the overhead calls of the scroll event and the subsequent code.
0 439 posted 10 years ago by Narayon
0 326 posted 10 years ago by paul0078
0 348 posted 10 years ago by paul0078
0 389 posted 10 years ago by paul0078
0 343 posted 10 years ago by paul0078
1 ... 4 5 6 7 8 ... 47