Re: [xul-interop] Querry element from different window
Tomas Trescak <[email protected]> Wed, 25 May 2011 09:50:00 +1000
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0190747599963665478== Content-Type: multipart/alternative; boundary=Apple-Mail-1--591197714 --Apple-Mail-1--591197714 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Wow ... that link is one exhaustive answer!=20 I tried to search for something like that with no result. Thank you! On 25/05/2011, at 06:16, Wellington Carvalho wrote: > Maybe this can help: > = https://developer.mozilla.org/en/Working_with_windows_in_chrome_code#Passi= ng_data_between_windows >=20 >=20 > Wellington B. de Carvalho >=20 >=20 >=20 > On Tue, May 24, 2011 at 7:32 AM, Tomas Trescak = <[email protected]> wrote: > Hello >=20 > I'm a bit desperate to solve, in my opinion a trivial thing. > I have a toolbar and a sidebar. >=20 > I want buttons from the toolbar affecting content of a sidebar. > My problem is that for example document.getElementById('id') does not = retreive elements from other XUL files (it is logical). But how can I = access such elements? It has to through "window" .. I just don't know = how. >=20 > Imagine having following defined in the sidebar: > <command id=3D"cmd_openhelp" oncommand=3D"alert('Help!');"/> >=20 > And I want following button from the toolbar to call it: > <button label=3D"do" oncommand=3D"goDoAction(....... cmd_openhelp)" /> >=20 > Any help is greatly appreciated! >=20 > Thank You and have a greatest day! >=20 > Tomas > = --------------------------------------------------------------------------= ---- > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > _______________________________________________ > XUL News Wire - http://xulnews.com > XUL Job Postings - http://xuljobs.com > Open XUL Alliance - http://xulalliance.org > _______________________________________________ > xul-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xul-talk >=20 > = --------------------------------------------------------------------------= ---- > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery,=20 > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now.=20 > = http://p.sf.net/sfu/quest-d2dcopy1________________________________________= _______ > XUL News Wire - http://xulnews.com > XUL Job Postings - http://xuljobs.com > Open XUL Alliance - http://xulalliance.org =20 > _______________________________________________ > xul-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/xul-talk --Apple-Mail-1--591197714 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Wow ... that link is one exhaustive answer! <div>I tried to search for something like that with no result.</div><div><br></div><div>Thank you!</div><div><br><div><div>On 25/05/2011, at 06:16, Wellington Carvalho wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Maybe this can help:<div><a href="https://developer.mozilla.org/en/Working_with_windows_in_chrome_code#Passing_data_between_windows">https://developer.mozilla.org/en/Working_with_windows_in_chrome_code#Passing_data_between_windows</a><br clear="all"> <div><br></div><div><br></div><i><div style="text-align:left"><span style="font-style:normal"><i>Wellington B. de Carvalho</i></span></div></i><br> <br><br><div class="gmail_quote">On Tue, May 24, 2011 at 7:32 AM, Tomas Trescak <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hello<br> <br> I'm a bit desperate to solve, in my opinion a trivial thing.<br> I have a toolbar and a sidebar.<br> <br> I want buttons from the toolbar affecting content of a sidebar.<br> My problem is that for example document.getElementById('id') does not retreive elements from other XUL files (it is logical). But how can I access such elements? It has to through "window" .. I just don't know how.<br> <br> Imagine having following defined in the sidebar:<br> <command id="cmd_openhelp" oncommand="alert('Help!');"/><br> <br> And I want following button from the toolbar to call it:<br> <button label="do" oncommand="goDoAction(....... cmd_openhelp)" /><br> <br> Any help is greatly appreciated!<br> <br> Thank You and have a greatest day!<br> <br> Tomas<br> ------------------------------------------------------------------------------<br> vRanger cuts backup time in half-while increasing security.<br> With the market-leading solution for virtual backup and recovery,<br> you get blazing-fast, flexible, and affordable data protection.<br> Download your free trial now.<br> <a href="http://p.sf.net/sfu/quest-d2dcopy1" target="_blank">http://p.sf.net/sfu/quest-d2dcopy1</a><br> _______________________________________________<br> XUL News Wire - <a href="http://xulnews.com/" target="_blank">http://xulnews.com</a><br> XUL Job Postings - <a href="http://xuljobs.com/" target="_blank">http://xuljobs.com</a><br> Open XUL Alliance - <a href="http://xulalliance.org/" target="_blank">http://xulalliance.org</a><br> _______________________________________________<br> xul-talk mailing list<br> <a href="mailto:[email protected]">[email protected]</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/xul-talk" target="_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br> </blockquote></div><br></div> ------------------------------------------------------------------------------<br>vRanger cuts backup time in half-while increasing security.<br>With the market-leading solution for virtual backup and recovery, <br>you get blazing-fast, flexible, and affordable data protection.<br>Download your free trial now. <br><a href="http://p.sf.net/sfu/quest-d2dcopy1_______________________________________________">http://p.sf.net/sfu/quest-d2dcopy1_______________________________________________</a><br>XUL News Wire - http://xulnews.com<br>XUL Job Postings - http://xuljobs.com<br>Open XUL Alliance - http://xulalliance.org <br>_______________________________________________<br>xul-talk mailing list<br>[email protected]<br>https://lists.sourc eforge.net/lists/listinfo/xul-talk<br></blockquote></div><br></div></body></html> --Apple-Mail-1--591197714-- --===============0190747599963665478== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 --===============0190747599963665478== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XUL News Wire - http://xulnews.com XUL Job Postings - http://xuljobs.com Open XUL Alliance - http://xulalliance.org _______________________________________________ xul-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xul-talk --===============0190747599963665478==--