Weblink works in the Project, but not in the .chm
Also in the .chm outer template the website button does not work - how do I check this in the project ?
.chm error below;
'Script Error'
'Expected identifier, string or number'
Weblinks
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23156
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Weblinks
jamesdietcheckcouk wrote: ↑Sun Mar 19, 2023 11:18 pm Weblink works in the Project, but not in the .chm
You probably just forgot to add the http:// or https:// prefix to the URL. Browsers will add that automatically if you type in the address: field, but you need to write a fully-qualified URL when you are creating links yourself. Also make sure that the Target Window: setting in the link dialog is set to New Window.
What do you mean by the ".chm outer template"? If you mean the configurable buttons in Configuration > Publishing > Microsoft HTML Help > Help Windows, you also need to add the https:// prefix to any URLs you enter there as well.jamesdietcheckcouk wrote: ↑Sun Mar 19, 2023 11:18 pm Also in the .chm outer template the website button does not work - how do I check this in the project ?
IMPORTANT: With Help+Manual 9, don't use old CHM skins. Start with one of the updated skin versions with the word "CHM" in their name, otherwise you will get a number of script errors.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 4
- Joined: Tue Dec 14, 2021 1:04 pm
Re: Weblinks
Many thanks Tim
First problem fixed thank you
Second problem - I've done as you suggested and used the same link that fixed the first problem, but I still get the Script Error ??
First problem fixed thank you
Second problem - I've done as you suggested and used the same link that fixed the first problem, but I still get the Script Error ??
- Tim Green
- Site Admin
- Posts: 23156
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Weblinks
Hi James,
Well, you haven't provided information on what you are doing and where, so it's not really possible to provide an answer on that. Questions:jamesdietcheckcouk wrote: ↑Mon Mar 20, 2023 5:17 pm Second problem - I've done as you suggested and used the same link that fixed the first problem, but I still get the Script Error ??
- Where are you inserting the link, specifically?
- What is the link -- please paste it here, using the </> code formatting button above the editor to prevent it from being active.
- Which CHM skin are you using? Is it an old skin or one provided with Help+Manual 9?
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 4
- Joined: Tue Dec 14, 2021 1:04 pm
Re: Weblinks
Sorry Tim for the lack of detail / info ...
I've attached a picture answering your first two points (I'm using 'Jump1')
I am using a skin provided with H&M 9; CHM Skin, Dark Blue Header, Feature Images.hmskin
I've attached a picture answering your first two points (I'm using 'Jump1')
I am using a skin provided with H&M 9; CHM Skin, Dark Blue Header, Feature Images.hmskin
You do not have the required permissions to view the files attached to this post.
- Tim Green
- Site Admin
- Posts: 23156
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Weblinks
Thanks for the information. You're running up against a bug in Microsoft's ancient CHM system, which hasn't been updated since 1998 when it was introduced. Since you are entering the URL there directly, the CHM is trying to open it in its internal window, and it doesn't understand double top-level domains with two dots in them like ".co.uk". That is causing the error. To get around it, you need to enter the URL using JavaScript, like this:
Be very careful to enter it exactly as shown above, using single quotes and not double quotes. The link will then open in an external browser window without an error. I would also recommend using a shorter caption under the Icon, as a longer one will break the CHM viewer toolbar layout.
IMPORTANT: Don't https:// instead of http://. Even with the JavaScript workaround, the CHM system won't understand the https:// prefix and will claim that the link can't be opened.
Code: Select all
javascript:window.open('http://www.dietcheck.co.uk/','_blank');history.back(0)
IMPORTANT: Don't https:// instead of http://. Even with the JavaScript workaround, the CHM system won't understand the https:// prefix and will claim that the link can't be opened.
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.