lördag 4 december 2021 kl. 05:34:14 UTC+1 skrev Jonas Thörnvall:That seem ugly need to invoke a parent function to pass it between them?
lördag 4 december 2021 kl. 05:24:11 UTC+1 skrev Jonas Thörnvall:
I have a main document with several child documents as iframes.
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also triedPassing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
parent.MultiID.document.getElementById("MVOL").value=CCvol;
But howto pass from child to child?I tried to find information but the information i find do just not apply? Must i really pipe the call/message via a function within Parent??? MultiID->parent->Synthed???
lördag 4 december 2021 kl. 05:24:11 UTC+1 skrev Jonas Thörnvall:I tried to find information but the information i find do just not apply?
I have a main document with several child documents as iframes.
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also triedPassing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
parent.MultiID.document.getElementById("MVOL").value=CCvol;
But howto pass from child to child?
I have a main document with several child documents as iframes.Passing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also tried
parent.MultiID.document.getElementById("MVOL").value=CCvol;
lördag 4 december 2021 kl. 05:46:16 UTC+1 skrev Jonas Thörnvall:Well instead of send message from child, i decided to let child call a function in parent that will send the message to the other child.
lördag 4 december 2021 kl. 05:34:14 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:24:11 UTC+1 skrev Jonas Thörnvall:
I have a main document with several child documents as iframes.
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also tried parent.MultiID.document.getElementById("MVOL").value=CCvol;Passing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent
MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
That seem ugly need to invoke a parent function to pass it between them?But howto pass from child to child?I tried to find information but the information i find do just not apply? Must i really pipe the call/message via a function within Parent??? MultiID->parent->Synthed???
lördag 4 december 2021 kl. 05:47:50 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:46:16 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:34:14 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:24:11 UTC+1 skrev Jonas Thörnvall:
I have a main document with several child documents as iframes.
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also tried parent.MultiID.document.getElementById("MVOL").value=CCvol;Passing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent
MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
Well instead of send message from child, i decided to let child call a function in parent that will send the message to the other child.That seem ugly need to invoke a parent function to pass it between them?But howto pass from child to child?I tried to find information but the information i find do just not apply?
Must i really pipe the call/message via a function within Parent??? MultiID->parent->Synthed???
On Friday, December 3, 2021 at 11:03:25 PM UTC-6, jonas.t...@gmail.com wrote:
lördag 4 december 2021 kl. 05:47:50 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:46:16 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:34:14 UTC+1 skrev Jonas Thörnvall:
lördag 4 december 2021 kl. 05:24:11 UTC+1 skrev Jonas Thörnvall:
I have a main document with several child documents as iframes.
I have had no problem passing between child and parent, but now i want to mass message between two child documents, but i get error message that the iframe document does not exist?
So how should i pass the message between the childs.
This message
MultiID.document.getElementById("MVOL").value=CCvol;
Is sent from an iframe named SYNTHED , function.
I also tried parent.MultiID.document.getElementById("MVOL").value=CCvol;Passing a message between parent and child document is easy, just. parent.document.getElementById("MVOL").value=CCvol; //From child to parent
MultiID.document.getElementById("MVOL").value=CCvol; //From parent to child
That's sounds like what I would recommend.Well instead of send message from child, i decided to let child call a function in parent that will send the message to the other child.That seem ugly need to invoke a parent function to pass it between them?But howto pass from child to child?I tried to find information but the information i find do just not apply?
Must i really pipe the call/message via a function within Parent??? MultiID->parent->Synthed???
Function! Hurray. Functions always win.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (2 / 14) |
Uptime: | 181:41:19 |
Calls: | 5,536 |
Calls today: | 2 |
Files: | 11,674 |
Messages: | 5,104,108 |