There's a table in html page and you need to get the quantity of it's rows. It's easy to get it with jQuery.
There's a table in html page and you need to get the quantity of it's rows. It's easy to get it with jQuery.
In Linux OS (Debian, Ubuntu, CentOs) log files of web server can grow and grow. According to web server activity, they can grow to a very big size. To remove files is a bad solution because they won't be restored and you loose new logs.
The syntax of jQuery code how to retrieve radio button items in cycle. For example, you have radio buttons with names, first you need to get them to array. For this case I will do it manually.
You can easily copy files from one directory to another. You can easily create cmd-file with the command XCOPY and it's keys and make copies of files.
(more...)
I'm trying to remove all permissions from a list item in SharePoint 2010. There was a lot of permissions because of the "Limited access". I couldn't check all items because of the constraint of maximum selected items. This script is 100% compatible with SharePoint 2013 and SharePoint 2016.
Junior developer created some tools which packed to zip-archive some rendered files. He used for this DotNetZip (Ionic.Zip) library. Everything worked fine until today. But today, when users users tried to open zip-file, they've got the error "CRC has failed, the file is corrupt".
(more...)
There's a control <select> on your page and you want to use it's value as selected and don't want to allow user to change it. Unfortunately, there's no attribute "readonly" for select as for <input> ones. You can use only attribute "disabled", but in this case its value will not be sent. But there's a trick how to do it.
Some notes about creating visible and invisible buttons in Knockout.js.
There's an equivalent in jQuery to PHP function print_r($array). It's good when you want to see an associative array. Especially, if you get it via some function.
Useful snippet for debugging javascript. It prints out key-value pairs of associative array. In PHP your have function print_r($array), but in Javascript you still have to make your own function.