16 questions
1
vote
0
answers
1k
views
Getting cross Window messages by window.postMessage in NextJS wrong
I have need to communicate with a redirect page after a 3D secure Authorization is completed by Checkout Card payment provider. Because I don't want to change the Parent window location I have a ...
4
votes
2
answers
3k
views
Is there a way to reply to only the sender, after receiving a BroadcastChannel message?
Suppose I have a bunch of same-origin windows or tabs A, B, C, D, and E, that don't hold references to each other. (e.g. a user opened them independently). Suppose A sends a BroadcastChannel message ...
2
votes
2
answers
3k
views
How to create click event across MULTIPLE iframes (same domain)?
I have a main (parent) page that hosts 3 iframes that are under the same domain. The iframe's src attribute is added on a click event, so the iframe's aren't loaded until needed.
What I want is when ...
8
votes
1
answer
4k
views
How can I start an UWP application through a batch file?
I tried to open Skype using batch scripting (.bat) in Windows 10 but found that in Windows 10 Skype came as default and it is moved to Windows Apps. Is there any way to do this?
1
vote
0
answers
229
views
Cross-window synchronization (critical sections) in the browser
I'm trying to achieve the following in a web page:
Users can open multiple tabs/windows of the page.
Every few seconds, I need exactly one of those tabs/windows to execute a specific section of code (...
1
vote
0
answers
33
views
In IE, delete of non-existent property fails if object is in another window. Why?
Normally, code such as:
var x = {};
...
delete x.foo;
should not cause any errors, even if foo is never defined on x.
However, in IE (but not Chrome or Firefox), if delete x.foo; is called from code ...
0
votes
2
answers
78
views
.data() html5 cross window
I'm trying to put some data into a child windows html tag. But it doesn't seem to work. I tried putting it in with some jquery on that child window and that is working fine.
Here is the code ...
0
votes
1
answer
76
views
jQuery.data support across windows
I'm trying to update a web app that uses the jQuery.data() function to store information. The update involves refactoring the interface so that there are separate windows for different types of ...
0
votes
0
answers
586
views
localStorage cross window events ios7 does not trigger
I need to communicate data between two windows on the same domain, this question might have some resemblance to this, but I have a specific problem with ios.
I have landed on trying this localStorage ...
0
votes
1
answer
1k
views
How do you share events accross windows on same domain?
Suppose I have an iframe on my page and I have an event that can be triggered from either the parent or inside the frame but I need listeners on both pages to execute when either one is triggered. ...
0
votes
2
answers
2k
views
Chrome cross-window communication
I have a HTML5 Framework and have developed and integrated debugger/profiles/console ect. When in fullscreen mode I cannot see the debugger (obviously because the canvas is fullscreen). So, I need to ...
1
vote
1
answer
1k
views
jQuery - cross window communication (popup to pick a file, no server side)
I have an offine web page using jQuery. I would like it to read a file chosen by the user (or several files). I would like the file picker to be diplayed in another browser window, that would send the ...
1
vote
1
answer
1k
views
jQuery not working in child window?
When I write:
var x = window.open('','','width=480,height=500');
x.document.write('
<html>
<head>
<link rel="stylesheet" type="text/css" href="chat.css" / >
<script type="text/...
1
vote
3
answers
5k
views
Javascript cross window interaction
I have this very simple Javascript to write on a text area when the link is clicked:
<head>
<script language="javascript" type="text/javascript">
function addtext(text) {document.form....
0
votes
1
answer
434
views
Why would javascript code not be able to access variables in the window that opened it (window.opener) if both windows are from the same domain?
I'm trying to use the Facebook Connect Javascript API. I have a Facebook login button on subdomain.example.com/foo/bar/baz/article.html. Clicking on the button opens a login page on Facebook's domain. ...
26
votes
3
answers
21k
views
Sending a message to all open windows/tabs using JavaScript
I hear HTML5 has window.postMessage(), but it seems to require having a handle on the window (or tab, throughout this question) you're posting the message to. What if I want to broadcast to all open ...