Json Script needs to be updated with latest version 3.6

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
Sanjeev123
Posts: 1
Joined: Tue Jan 11, 2022 10:24 am

Json Script needs to be updated with latest version 3.6

Unread post by Sanjeev123 »

We are getting errors in the testing while generating the WebHelp output. The script in the jquery.js shows an old version of JQuery being used.
When will you update H&M with latest version of JQuery? This seems to have security vulnerabilities.
User avatar
Tim Green
Site Admin
Posts: 7818
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Json Script needs to be updated with latest version 3.6

Unread post by Tim Green »

Hi Sanjeev,

We don't update jQuery all that often to ensure compatibility with older browsers. However, you can easily add the current version of jQuery to your WebHelp yourself. Download the latest minimized version of jQuery from the official site here:

https://jquery.com/download/

Then change the filename to jquery.js and add it to the baggage files section of the .hmskin file you are using to generate your WebHelp. It will then overwrite the official version automatically, because the baggage is always written last. You can use this method to replace any WebHelp component file with your own version.

PS: I've moved this to the Help+Manual 8 forum because you accidentally posted to the Forum Issues section, which has nothing to do with Help+Manual.

PPS: jQuery and JSON are not the same thing. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
miselainis
Posts: 7
Joined: Wed May 15, 2024 4:37 pm

Re: Json Script needs to be updated with latest version 3.6

Unread post by miselainis »

Hi Tim-

We're having this issue too. I did this procedure, and updated the jquery.js baggage file in the skin, but it is NOT updating automatically. When I generate the files, the older jquery is overwriting this new one somehow. Can anyone help with other tips?
miselainis
Posts: 7
Joined: Wed May 15, 2024 4:37 pm

Re: Json Script needs to be updated with latest version 3.6

Unread post by miselainis »

miselainis wrote: Wed Jun 12, 2024 7:05 pm Hi Tim-

We're having this issue too. I did this procedure, and updated the jquery.js baggage file in the skin, but it is NOT updating automatically. When I generate the files, the older jquery is overwriting this new one somehow. Can anyone help with other tips?
I figured it out. For anyone else who might be experiencing the file not updating, check your gitignore file and make sure that the .js file is not included in it. Otherwise, it won't update.
User avatar
Tim Green
Site Admin
Posts: 7818
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Json Script needs to be updated with latest version 3.6

Unread post by Tim Green »

miselainis wrote: Wed Jun 12, 2024 9:17 pm I figured it out. For anyone else who might be experiencing the file not updating, check your gitignore file and make sure that the .js file is not included in it. Otherwise, it won't update.
Yes, version control can introduce a lot of new gotchas that seem puzzling until you realize what's going on. In this connection it's particularly important to communicate in the team when working on anything that changes the main project file (.hmxp) or the TOC files (the XML files in the \Maps folder), because those are global files that are changed by anyone working on the project. So it's advisable to communicate in the team when you add, move or rename topics (changes the TOC files) or change any settings in the Configuration section (all saved in the .hmxp). A special case is adding context number IDs with the Context Tool, or in the Topic Options section: Those are also saved in a special node in the .hmxp file, and not locally in the topic file.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply