I have a project that pops up a window with a message for the user. It is displayed for 10 seconds and then is sent to the background using the javascript self.blur() command. I dont want to close it as it has information that the user might need to see agian.
This currently works for IE7/IE8/FF2/FF3 on windows XP, but on Vista it does not work for IE8. I have found that if I disable 'Protected Mode' for IE8 on Vista, the blur() command works and the window correctly returns focus to the parent window.
Does anyone know exactly why this is happening and what can be done to get around it?
Any help would be greatly appreciated!
How are you writing to the window? What is the initial source of the window -- about:blank? This may make a difference. Also, if you're loading the web page from localhost, try running it from a "real" domain.
And a suggestion: try a lightbox or some other form of DHTML "layer". They've very easy to create with the various libraries available today; not only will this tactic get around the problem you're having, it improves the experience. Probably a bigger change than you'd really like, but oh so much better in the long run.
Related
I need to handle site's popups window in nightmarejs. I mean things like windows open list, close, scrape those created popups and maybe suscribe to popup creation event
Thank you
I got the same problem in the 2 mouth ago.
I think the nightmarejs cant do the popups.
I used the spookyjs to slove this problem.
Depends on what kind of popups you're talking about. For external windows, we're currently out of luck until Electron #2605 is fixed. For HTML flyovers, Nightmare should work fine. For native popups - confirm, alert, etc - you'll need to take a look at defining your own preload.
I'm trying to development an applet (https://github.com/lestcape/Global-AppMenu) to be used in the Cinnamon desktop. My intention is not modify or create any other code than not be cjs (javascript code). All that i do is:
Connect my applet to the com.canonical.AppMenu.Registrar and the Gtk
Dbus API.
Get all object path from the muffin windows manager (a fork of
mutter).
Read and ask things over Dbus and then show the result of
that. I used all patches of Unity desktop, as I'm a user of Ubuntu 14.04.
Nemo, Nautilus, File-Roller, gnome-terminal, VLC, SMPlayer, Evince, are examples of applications that currently are working. At the moment, I only have a problem with one application, and this application is Firefox.
I'm pretty sure that i do something wrong, just i don't have any idea of what could be.
Firefox called the com.canonical.AppMenu.Registrar service perfectly, i also can trigger the Alt key and firefox don't try to show the menubar inside the window, but after some time (a minute), he emit a layout change signal without menu items, and will show the menubar to the user inside the main window, as is "normally".
My idea is that: this could be, because i'm missing to call some aboutToShow, or because firefox require a confirmation that i receive the menubar, and he required really that this will be done for the same GDBus Connection where he exported the menu bar, but i can not be sure who internally will be handled in that way, as i'm on javascript.
Any way the firefox behavior, apparently is a behavior with an know cause, and what i try to find is the cause of that behavior, to then I will try to find a solution.
Thanks and regards.
Firefox and thunderbird require a returned confirmation value from the Dbus connection, as i say in the question. This value is not returned in the default cinnamon code, i force to return the value and now the problem is resolved. Thanks anyway.
Try to look at the about:config page and search for the "ui.use_unity_menubar" entry. As I know, this setting toggle between using unity global menu or normal menu. Maybe this could help you.
Good luck with your applet, I'm waiting for more stable release and then I will give it a try.
I have a few Facebook groups and pages and they all work fine with sharing whatever I want. But on my main page (last 24 hrs), whenever I try to share something, all that happens is the share box pops up for a millisecond (no text) and simply vanishes.
I’ve tried it in both Chrome and Firefox, and on different computers, cleared caches, the lot; same result. It’s a fully public page too, so it’s not a security issue, I would think.
At the moment, the only way I’m able to get a rough idea what’s going on, is using Chrome’s right click → inspect element, or Firefox’es similar function. I’m not sure what I am looking for though, and I presume there is better software to debug things like this.
What software or plugins do you need to see what the code is actually doing as it executes? And hopefully highlight hangup points or show me where the issue likely is.
If this is an issue with Facebook products and not an issue with platform, the best way to highlight this issue is to file a bug report using Facebook's Report form (https://www.facebook.com/help/326603310765065/). It is highly likely that this is a known issue that engineers are working on, but it doesn't hurt to report the bug.
I made a html5 video gallery that is going to be used as a kiosk. I now need it to be viewed in complete full screen mode with no tool bars, similar to when a flash site is in full screen. Is there a way to do this with javascript or jQuery? I was also thinking of calling it from a iframe inside a full screen flash site but dont know if this is possible. Any suggestions will help.
Thanks in advance.
At this time no there is not without having the user press f11. But there is an API in the works that is supposed to make this happen. https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI
Edit (Other options):
If you are wanting to work in kiosk mode then possibly John Kurlak's comment will help if you want to work in IE. Also, you can use add-ons such as https://addons.mozilla.org/en-US/firefox/addon/r-kiosk/?src=search. This way you can turn the browser into a kiosk and not worry about users getting back out.
I do not believe a website can force a page to go fullscreen. You can however have the browser start fullscreened and as long as you do not open a separate window it will remain fullscreened.
Could you not create it in a new window using window.open(), passing in fullscreen=true?
I have written a word game using HTML5 canvas tag and a little bit of audio. I developed the application on the chrome web browser on a linux system. Recently during the testing phase it was tried on safari 5.0.3 on Mac and the webpage froze. Not just the canvas element, but interactive element on the page froze. I have at some times experienced this problem on google chrome when I was developing but since the console did not throw any error before this happened, I did not give it much credence. Now as per requirements I am supposed to support both chrome and safari but this dismal performance on safari has left me shocked and I cannot see what error can be thrown which might lead to such a situation. Worse yet the CPU usage on using this application peaks to 70-80percent on my 2yr old macbook running ubuntu... I can only but pity the person who uses mac to operate this app, which undoubtedly is a heavier OS. Could someone help me out with a place I can start with to find out what exactly is causing this issue.
I have run profiles on this webapp on google chromes console and noticed that in the heap spanshot value increases steadily with the playing of the game, specifically (root) value which jumps up by 900 counts. Any help would be very appreciated!
Thanks
EDIT: I don't know if this helps, but I have noticed that even on refreshing the page after the app becomes unresponsive the page reloads and I am still not able to interact with the page elements but the tab scroll bar continues to work and I can see my application window completely. So to summaries the tab stops accepting any sort of user interaction inside the page.
Edit2: Nop. It doesn't work still... The app crashes on double click on the canvas element. The console is not throwing any errors either! =/ I have noticed this problem is isolated only to safari!
Edit3: Okay, so I performed some other tests today. I isolated the HTML5 widget and its HTML data only and ran it on safari locally to reproduce the error. Alas it works well! So I tried playing the game from my server without Facebook integration, and it works fine again! So The issue crops up only on safari on MAC OSX, while the widget is on Facebook canvas as a Facebook application. I am very hard-pressed to come up with a reduced test case scenario for this app... =/ It gets weirder, the game works well on safari for windows. Also after the tab freezes the other tabs continue to be responsive and well working. This tab too closes on clicking the close button and stuff, but if I load another page on this same tab after its frozen the page loads in the tab canvas, but I cannot interact with it. Not even google.com! So I am sure there is no bug with my game but its a safari bug... Will soon file a bug report, thanks for all the help people... :)
What you should do, in one sentence: Reproduce the problem with as little code as possible.
Start removing parts of your app until you find nothing that can be removed while still preserving the error. Start by throwing out external resources (css, images, etc) and leave just the html and javascript. Try removing the audio. Try removing as much gaming logic as possible. Try removing all user input code.
If this truly is a bug in Safari itself and not in your code, it should be possible to create a very small code example. Until you have that, saying "my web app doesn't work in safari", without any details or examples, will get you nowhere.