Category Archives for Javascript/AJAX

Cookiechoices cookie only set for specific page not whole website

When I first downloaded the cookiechoices.js file from the link suggested by Google and then installed it onto my site it didn’t really work correctly. It would display the message but when the

Continue reading

Remove and Add HTML element using Javascript

When creating your SAP BSP using HTML you may want to add and remove elements dynamically using JavaScript and sometimes simply setting the element to visible or not isn’t the solution you are

Continue reading

Hide and display HTML element using Javascript

Within the JavaScript of your SAP BSP application or standard web page it is very simple to toggle a HTML element between hidden and display mode using the visibility attribute. You would just reference

Continue reading

Javascript to split a field value at a certain character

When implementing JavaScript within your SAP BSP you may want to capture an on screen field value, ID or name  and then split this value at a certain character. I.e. if you have

Continue reading