Posts

Showing posts with the label click

First click in SharePoint List WebPart on wiki pages

Lets say you have a SharePoint wiki page with some content and you added a list WebPart underneath the text. You open the page and want to go into the list settings or add an item or do another operation you can do inside the ribbon. You will realize the ribbon is not there. First of all you need to click into the list to make the ribbon visible. There is a simple JavaScript solution.

jQuery set the click event the right way

Everybody should know multiple ways how to set click events in JavaScript and jQuery. But if there are multiple different ways which one is the right one? First of all what ways do we have? There are the declaratively ways: 1 2 3 4 5 <!-- declaratively example one --> <a href= "javascript:myFunction()" > click me </a> <!-- declaratively example two --> <button onclick= "myFunction()" > Click me </button>