Javascrpt

Get login of current user in SharePoint with SPServices

SharePoint 2016 Logo

I guess SPServices is the best solution for SharePoint. We still have SharePoint 2010 and prepate to migrate to SharePoint 2016 through SharePoint 2013. But for current tasks which must be made immediately, we still use SharePoint 2010, but only without server code. Rather often we have to make custom views for other users. Read more»

SharePoint

Count rows in table with jQuery

jQuery logo

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. Read more»

React

Javascript equivalent to PHP print_r($array)

Javascript logo

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. Read more»

TypeScipt / Javascript

Chain multiple selectors in jQuery

jQuery logo

If you want to apply the same action for multiple selectors in jQuery, you should write down their identificators separated by comma. It can be as simple ID of elements, their classes or something more difficult. Read more»

TypeScipt / Javascript

JavaScript function EnableDisableChekboxes to set constraint of maximum allowed quantity checked checkboxes

There’s a common constraint in votes or surveys like “choose no more than 3 items”. And it’s not a good idead to allow user control the checked items quantity. You can easily set constraint to a quantity of checked checkbox items with JavaScript and jQuery. You can just disable unchecked checkbox items if user checked […] Read more»

TypeScipt / Javascript

Console.log() function stops JavaScript executing in Internet Explorer 10

jQuery logo

Strange behavior of console.log() I have noticed when I created a JS code for SharePoint page. My code used jQuery and SPServices library. The code used to get items from a list and render options for “select” control. Below I post a part of my function which fills a JS array and renders options for […] Read more»

TypeScipt / Javascript

Click this or that element in jQuery

jQuery logo

If you want to set the same action for several elements, you can write IDs of elements separated by comma. This way: Read more»

React

How to get index of selected option in Select control

It took me some time to get the index of selected value of <select> html control. I tried to use ‘attr’, but ‘prop’ should be used for this. Read more»

React

Popular Posts