Re: [xul-interop] Toolbar to change background colour of web pages
"Christine Bone" <[email protected]> Sun, 13 Apr 2008 14:53:30 +0100
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============2049584787== Content-Type: multipart/alternative; boundary="----=_Part_10812_10779028.1208094810391" ------=_Part_10812_10779028.1208094810391 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I've that function fixed now. Thanks On Sat, Apr 12, 2008 at 2:31 PM, newbeee <[email protected]> wrote: > > whenever i insert the following code into my js file referenced by the > toolbar, and install the toolbar none of the toolbar functions(just pop up > messages to check event handlers) accessed by any of the buttons > work(these > worked previously), any ideas what's going wrong? or what i could try?? i > can't see what i'm doing wrong > > [CODE] > function BGColour(event) > { > var currentDocument = getBrowser().getBrowserForTab( getBrowser > ).selectedTab ).contentDocument; > currentDocument.body.style.backgroundColor = "magenta"; > BrowserReload(); > } > [/CODE] > > :-/ > -- > View this message in context: > http://www.nabble.com/Toolbar-to-change-background-colour-of-web-pages-tp16447325p16648703.html > Sent from the XUL - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > 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 > ------=_Part_10812_10779028.1208094810391 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I've that function fixed now. Thanks<br><br> <div class="gmail_quote">On Sat, Apr 12, 2008 at 2:31 PM, newbeee <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>whenever i insert the following code into my js file referenced by the<br>toolbar, and install the toolbar none of the toolbar functions(just pop up<br> messages to check event handlers) accessed by any of the buttons work(these<br>worked previously), any ideas what's going wrong? or what i could try?? i<br>can't see what i'm doing wrong<br><br>[CODE]<br>function BGColour(event)<br> {<br>var currentDocument = getBrowser().getBrowserForTab( getBrowser<br>).selectedTab ).contentDocument;<br>currentDocument.body.style.backgroundColor = "magenta";<br>BrowserReload();<br>}<br>[/CODE]<br><br>:-/<br> --<br>View this message in context: <a href="http://www.nabble.com/Toolbar-to-change-background-colour-of-web-pages-tp16447325p16648703.html" target="_blank">http://www.nabble.com/Toolbar-to-change-background-colour-of-web-pages-tp16447325p16648703.html</a><br> <div class="Ih2E3d">Sent from the XUL - User mailing list archive at Nabble.com.<br><br><br>-------------------------------------------------------------------------<br></div>This SF.net email is sponsored by the 2008 JavaOne(SM) Conference<br> Don't miss this year's exciting event. There's still time to save $100.<br>Use priority code J8TL2D2.<br><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target="_blank">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a><br> <div> <div></div> <div class="Wj3C7c">_______________________________________________<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></div></div></blockquote></div><br> ------=_Part_10812_10779028.1208094810391-- --===============2049584787== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone --===============2049584787== 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 --===============2049584787==--