MarkiMarta.com
Blog of Mark and Marta parent – IT-solution, best practices with code and applications and other useful things

Escape curly brackets in ID in jQuery

I have a table in SharePoint list view which ID contains curly brackets '{9C48B48F-AA4E-4B34-8CE6-37E4C0EBAD8B}-{9B1EEE61-5E3C-4CA1-96CD-DB15199EDC83}'. I tried to select the table using jQuery but on the brackets I've got a Javascript error about a sequence of characters.

(more...)

Create and fill hash of arrays in Powershell

You can initialize and fill multidimension hashes (arrays) in powershell this way:

(more...)

Array in PowerShell – create and read

powershell

This is an manual how to work with arrays in PowerShell - how to create them, fill and read.

You can initialize array this way:

(more...)

C# WebClient return an error (401) Unauthorized. Easy fix

c-sharp-img

My code in C# console application used to download an image from web service and store it in SharePoint library. But some why the code always returned an error "(401) Unauthorized". The requested URL has been successfully opened in browser on the same machine.

(more...)

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:

(more...)

Set multiple CSS attributes for HTML element with jQuery

jQuery logo

You can set multiple attributes for HTML element with jQuery.

(more...)

Element and CSS class to highlight the required field in SharePoint form

SharePoint 2016 Logo

The red star in SharePoint form for required fields can be written as <span> control with class "ms-formvalidation":

<span class="ms-formvalidation"> *</span>

(more...)

Prepare to install Microsoft SharePoint 2016

SharePoint 2016 Logo

I'm preparing to install Microsoft SharePoint Server 2016 to machines in the VLAN without access to Internet. All the distibutives of SharePoint ask for prerequisites which must be downloaded and installed. Unfortunately, you should get them by yourself. If you have internet access, than it's not a problem. But if you don't have it?

(more...)

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.

(more...)

How to reset MySQL root password in Linux console (SSH)

To reset MySQL root password you should log in as root to your Linux server, stop MySQL service, start it without password and permission checks, log in as root without authorization, update password and restart MySQL server. Now more info.

(more...)


MarkiMarta.com. Notes of web-specialist
Since 2009