How can we help you today?

Execute JavaScript After ShortPoint Elements Render Event

If you were trying to write some JavaScript code into SharePoint, and want to your JavaScript code to interact with ShortPoint elements (perhaps processing some dates using JavaScript), then this article is for you.


Step 1:

Add a Script Editor Web Part into the page, by clicking on the Insert Ribbon tab > then Web Part under Parts Category



Choose the Category Media and Content > then Script Editor and click the Add button




Step 2:

Edit the Web Part, 

Activate the Web Part by clicking on it, then a new tab Web Part in the ribbon will appear



Then next, click on the Web Part Properties button



The page will refresh, and the Script Editor Web Part will appear now in edit mode, click on Edit Snippet, to bring up the dialog that will allow you to paste some JavaScript code into the page.




Step 3:

Add the JavaScript that will execute after render, and modify it to fit your needs


Now once you clicked on the Edit Snippet button, a dialog will appear



Open the following link in another browser tab


It is a JavaScript snippet that has a function called ShortPointReady,



This function will be called after ShortPoint started to render the page, 

Copy it into your text editor, put whatever you like into the ShortPointReady function, 

then paste the whole snippet back into the Embed code dialog, and click Insert



Finally, Save the page, and you are done!

Happy Scripting with ShortPoint :)


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 1 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more