Skip to main content
Participant
September 28, 2021
Question

Initialize Javascript in Frameless Layout when new page loads

  • September 28, 2021
  • 2 replies
  • 158 views

I'm Experiencing problems when  trying to add some Javascript functions to my RoboHelp Page.

Script references are ignored when deploying the project on the web server.

I found out the following connection:

If Frameless output  is hosted on the server then full page doesn't reload every time only the topic area reloads same as Responsive output. Also all scripts in header area or in other places seem to be ignored.

 

My Question: Is there a way to initialize Javascript code every time when a new page is loaded even when the Project is hosted on the server?

Adding the script to the start page does not help, because I want to initialize the class on every page.

As mentioned everything works fine in the Robohelp Preview.

Perhaps the user should be informed that there is a difference in the behaviour between the Preview in Robohelp and behaviour on the web server.

Thanks in advance for any help.

    This topic has been closed for replies.

    2 replies

    Community Expert
    September 29, 2021

    I think you'll need to ask support using the email address on the support page, which should get you to the Robohelp technical people.  https://helpx.adobe.com/contact/enterprise-support.other.html#robohelp

    Community Expert
    September 29, 2021

    Try using a master page and adding the script tag in the master page header div tag. While I haven't tried it in New UI, that was where we had to place them in Classic.

    lioxanAuthor
    Participant
    September 29, 2021

    Hi Amebr,

     

    thanks for your answer.

    Unfortunately this doesn't help.

    I added a simple <script>alert("hi");</script> to he header div tag. The code is added in the output page.

    It works on the local preview but on the server the script it is ignored.

    When the page runs on the server only parts of the page are updated . This is good for performance. But I need to know if there is a trick to start a script when a user navigates to a new page.

    In this article:Solved: Differences between Responsive and Frameless: TOC ... - Adobe Support Community - 11753857

    Vivek kumar desribes the responsive loading as a new function in RoboHlp 2020... .