cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript/Jquery in Hosted Pages

Eldhos
Participant
0 Kudos
518

Hi All,

I would like to use HOSTED PAGES for the centralized Login feature.

Can anyone help me on how to add Jquery or javascript in hosted pages?

We need Jquery, because, We need to have an ajax call from the profile completion page to our child site.

Regards,

Eldhos Kurian

Accepted Solutions (1)

Accepted Solutions (1)

olehi941
Active Participant

Hi Eldhos,

Firstly I would like to share with you a link to the blog, where you can useful information as well as on SAP CDC official one.

Secondly, not sure that you are capable to use Javascript on hosted pages itself(only to use predefined configurations and define CSS styles).

But, once ScreenSets/Screens are inherited and ingested into Hosted Pages, you can include your library to Web SDK Configuration and then use it in Javascript Events(screenshots attached).
Here you can see how to use the widget Datapicker jQuery UI in CDC.

Hope it helped.

===========

Eldhos
Participant

Thanks Buddy

Answers (2)

Answers (2)

sanky1
Explorer

Yes. You can write JavaScript inside hosted pages. You can use JavaScript fetch request to make ajax calls. Attached is the example

shemma
Advisor
Advisor

Hi eldhos,

We are not using JQuery as part of our sdk solution so you will not be able to use that.

What you can do is a fetch request thourgh javascript.

The javsscript can be configured from the screen set itself.