Copy link to clipboard
Copied
Hi,
I'm working with the latest RoboHelp (actually TCS) with all the updates.
My project is now in WebHelp and want to display the Help part only. I don't want the Address Bar, Menu Bar displayed in the browsers, and the ability to create tabs. Just the Help.
I know this can be done because I have seen it. I think is by using jscript. Does anybody have such a script. Sorry, I'm not a scripter.
Thanks a priori!
Copy link to clipboard
Copied
Hi there
Indeed you will have to use JavaScript in order to do it. If you use Google, search for some scripts that are used to remove browser chrome.
Here is a link to get you started:
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
Thanks, Rick.
I will still need back and forward buttons which I want in the topics. I know this is jscript too. Any pointers/advice there?
I will try the scripts for the address bar etc tomorrow. On UK time 🙂
Ta!
Copy link to clipboard
Copied
Are you referring to the Browse Sequence? Or are you wanting to just add some Headers or Footers to all topics that sport Back and Forward buttons?
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
Forward and Backwards in the Header - maybe the footer too, but mainly the header.
Copy link to clipboard
Copied
Ahhh, okay. Those should be pretty simple to achieve. Just use some JavaScript to perform a history.go. Again, that code will be found by using our dear friend Google.
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
Hi Rick,
Managed to get part of the history working. Have the following script:
history.back(1);
}
That works fine. So I duplicated this and replaced history.back with
history.forward.
The result was that neither button worked.
I tested forward on it's own and that didn't work.
Any ideas?
Jac
Copy link to clipboard
Copied
The following script - providing you can see it this time 🙂
" <script language="JavaScript" type="text/javascript">function function1(){
history.back(1);
}</script>
<input type="image" onclick="function1()" src="but2b.gif" style="width: 11px;
height: 11px;" /> "
Copy link to clipboard
Copied
Hi,
Hope Rick doesn't mind me interfering.
Try history.go(-1) for going back and history.go(1) for going forward.
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.
Copy link to clipboard
Copied
Well I never!
I cannot believe the pure and unadulterated gall of it! Trying to help someone with a problem. Hmph!
For anyone reading that last sentence and thinking I'm being harsh, it's a feeble attempt at humor.
Willam, I never mind any attempts to get someone the help they need. Most appreciated! That's what the forums are all about!
Now, does anyone have a good means to locate their soul? I think mine has become misplaced. I vaguely recall that it may have had something to do with a strange incantation I once uttered that seemed to end in the words "I Do".
Cheers... Rick
Helpful and Handy Links RoboHelp Wish Form/Bug Reporting Form Begin learning RoboHelp HTML 7 or 8 within the day - $24.95! |
Copy link to clipboard
Copied
Unfortunately the History.go (1) and (-1) did not work. Initially it did but didn't seem to have any logic where the back and forward were going. Now
it doesn't work at all.
Jac
Copy link to clipboard
Copied
Hi,
Thath's very strange. History.go(x) does the same thing as history.back() and history.foward()... See also http://www.w3schools.com/jsref/met_his_go.asp
The if you use 1 and -1, you simply go back or forward one page in your browsing history. (You need to have a browsing history for it to work. I you clear you history, the buttons won't work.) I can imagine things going awkward if you try to load a page you viewed before loading the help. The javascripts the help sometimes reload pages, effectively breaking the history.go method. What happens if you replace 1 and -1 with 2 and -2?
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.
Copy link to clipboard
Copied
Nothing.
So here is my script:
<script language="JavaScript" type="text/javascript">function function1(){
history.go(-2);
}</script>
<input type="image" onclick="function1()" src="but2b.gif" style="width: 11px;
height: 11px;" /><script language="JavaScript" type="text/javascript">function function1(){
history.go(2);
}</script>
<input type="image" onclick="function1()" src="but1b.gif" style="width: 11px;
height: 11px;" />
Weird that I originally had one button working (the back) but not both together.
Jac
Copy link to clipboard
Copied
Hi,
You inserted two functions with the same name. The browser won’t know which one to use. Try the following code:
(If it doesn’t work, replace ‘1’ with ‘2’.)
Does that do the trick?
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.
Copy link to clipboard
Copied
The code doesn't display for me. Can you enclose it in " "? That seemed to work for me in my previous post.
Copy link to clipboard
Copied
<input type="image" onclick="history.go(-1)" src="but2b.gif" style="width: 11px; height: 11px;" />
<input type="image" onclick="history.go(1)" src="but1b.gif" style="width: 11px; height: 11px;" />
Greet,
Willam
Copy link to clipboard
Copied
Thanks ten million, William! I finally have my buttons.
Jac the Jscript novice 🙂
Copy link to clipboard
Copied
Thanks for posting the script.....
Can you tell me what file this script should be added to...?
.....and any other minor details about this script one should know about......
Thanks again!
Copy link to clipboard
Copied
Hi,
I put the script into the master page I have - in the HTML view. Not the design view. Works fine for me. Just replace my PNGs with yours.
Jac
Copy link to clipboard
Copied
Thank you! no problems....