Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts

Google Crome bug: related positioning & rounded corners. Simple solution.

A couple of days ago I had to solve/handle the Google Chrome issue with the rounded corners in a scrolled area. First I have not even believed that something like that is possible with such a popular browser, but however had to find a solution. So, in my artile I am describibg such a solution in hope that this will save somebody little time and expecting a feedback if I have made something stupid.

Read complete article: Google Crome bug: related positioning & rounded corners. Simple solution.

Javascript: How to check dependencies and load missed libraries. JQuery example.

Today I want to provide quite simple code that helps to check and load required libraries. I have met this problem while creating some code that should be delivered to different sites and I am not sure what libraries are loaded there and what are not. So, I decided to check and load dependencies from the script.

Read complete article: Javascript: How to check dependencies and load missed libraries. JQuery example.

Random value selection from array based on weight

Today I decided to publish small article and code describing weighted random values generation or better to say selects values from the array randobly based on weight values. actaully algorithms are widely known and I am just publishing javascript implementation of one of them, I think one of the best ones.

Read complete article: Random value selection from array based on weight

Javascript hash functions to convert string into integer hash.

A collection of hash functions implemented in Javascript. Functions are useful for browser-side string processing, but as far as server side scripting in Javascript becoming more and more popular, these functions may be helpful for server side scripting too. if you just want to have a good hash function, and cannot wait, djb2 is one of the best string hash functions i know.