Webhelp window in Robohelp doesn't get focused - javascript

I am using trail version of RoboHelp 2015, I have few issues when I open web-help popups from the links in webpage.
I click on help on page, which opens a web-help as a popup or new tab with focus on it. In the a scenario I keep that window open and navigate back to main website and do some work and in some other page I click help which loads respective content to that window but doesn't get focused.
Help would be appreciated.

I am not sure how you have integrated webhelp in your web pages.
If you are using RoboHelp_CSH.js then you may need to modify
window.open(... , "__webCshStub", sParam);
to
window.open(... , "__webCshStub", sParam).focus();
or something like as suggested in set the focus of a popup window everytime
You can also log a case # https://helpx.adobe.com/tech-comm-suite/customer-support.html
Thanks
Amit Jha

Related

How can I remove the moz-extension:// in the popup window Firefox extension created?

Currently, I'm developing an Firefox extension app. It will open a html file in a new popup window. When the poup window opened, it shows the title as format: "moz-extensions://", does anyone know how can I remove the prefix, the "moz-extension://"?
Thank you very much!
Answer
According to this bug report you can't currently do anything about it. It is present to prevent spoofing/phishing attacks against the user (acting like the popup is part of a UI).
Statement (Quote):
We've been trying to make it clear that when something happens, the
reason for it is clear to the end user. The ability to create a popup
with no URL bar means that there could be absolutely no info to the
user.
Custom Solution
If you want to have a popup with a custom title you would be better off creating your own HTML/CSS solution!

Website open in single window

Is it possible to make my website url always open in single window where if user even try to run url in tab then my website automatically redirect and open in single popup wimdow.?
Please share your idea and help how I do this if it is possible thank u all.
Simple answer is no.
It's not logical or reasonable.
You can't control browser but you can control another page in your website to have fixed height and width in a new pop up browser control.
onClick="window.open('yourpage.htm',' pagename','resizable,height=260,width=370'); return false;"

Show popup and redirect to the link

I have been looking in too many links but I am not getting the desired results, although it is a very basic question to ask but i am unable to find some useful help.
I have a hyperlink pointing to the external link like google,
Now I want to show a popup when somone clicks on this link, I can fire up a jquery modal or fancybox on onclick event, thats not the problem.
I assume that it is not possible to show my own window on external link?
I need to fire up a modal and after closing of modal, the external link should be opened in new tab.Thanks for help.
I don't know what code to share here as i have only hyperlink
If I am getting you right, solution
in your home page add the link to the popup window
Open
in the popup window add the following link
<a href='http://google.com' onclick='window.close();' target='_blank'>LINK</a>
if it is not what you want, I hope it is a starting point to the solution

Bookmarklet on blank page

I've written a simple bookmarklet that opens multiple web pages with a single click:
javascript:(function(){window.open("http://www.w3schools.com");window.open("http://www.google.com");window.open("http://www.yahoo.com");})();
I wan't to be able to open the browser and click this immediately, but the bookmarklet won't work unless a page is already loaded in the window. I prefer to have my browser home page set to "Blank" for speed. Is there a way to make this bookmarklet execute without a page already loaded?
Also, I'd like the bookmarklet to replace whatever page is loaded in the window, if something is indeed loaded. At present, it opens 3 new tabs. I've tried the "_self" and "_parent" values for the "name" attribute on the first window.open, but it doesn't seem to work. I may not be formatting it correctly.
Any help is appreciated! Thanks!
It isn't possible to open bookmarklet in no page.
Instead, you can try to set your homepage to something like data:text/html,Welcome! (yes, it IS a working URL).
To open a page in the same tab, type:
location.href='http://www.w3schools.com'
I was having the same problem, and learned from the internet that if you go to your about:config, search for browser.newtab.url and change it to about:blank instead of the default about:newtab your javascript bookmarklets should work (just tried, and it's working!). This should be cleaner than doing a data:text/html message (in any case even if you set the homepage it doesn't work for every new tab, only once for a new window)

Javascript for removing menu and scroll bars

I have this script on my html page:
<script language='javascript'>parent.resizeTo(550,510);</script>
I'd like to add to it so it positions the window in the middle of the screen. Also, I want to remove the address and tool bars (I've managed to hide the scrollbars by using body{overflow:hidden;}).
I know how to do this using JS upon opening a new window from the browser but this needs to work from clicking a link on a PDF.
Does anyone have any suggestions? Thank you!
You can't remove address bars, etc. from the user's browser window (even if the user is only you) unless you create a new window object. And the trend is toward removing more and more of your ability to "customize" such popup windows, for security reasons.
This is actually a feature, not a bug. Think about it.
If you're opening a browser window from a separate application, the page starts off its life with a completely-decorated browser window. There's no way to make those decorations go away after the page is loaded.
While I seriously doubt the justification of your desires the way to do it is to somehow open a window. That means that your pdf links to a page that as its action will open a window with an url that has the actual content. The pdf links to a page that is basically a redirector. You give the final URL as a parameter and launch it. Of course you need to disable the popup blocker for this to work, but you should not even consider doing this on a public (no browser control) website anyway. You also might want to add to the redirector page a button that the user can click to open the page if it was blocked by the popup blocker.

Categories