You mean what I made that failed to work? my_toolstrip.html just contains:
<div class="toolstrip-button" onclick="javascript:(function() {m='http://mail.google.com/mail/? ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title) +'&body='+encodeURIComponent(document.location);w=window.open (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout (function(){w.focus();},%20250);})();"> <span>Gmail This</span> </div> I thought that since a bookmarklet is a bookmark with code in the url field, if I put that same code in the onclick (which usually points to a url) it would work. But unfortunately the button shows up in the bar but does not do anything when clicked. The overall goal is to make an extension that when clicked will open up gmail with the url of the page you're currently viewing in the body of the email. Gmail This, basically. If you can think of a different way to accomplish this other than mangling a bookmarklet, that is beyond my level of knowledge. On Jun 1, 12:22 pm, Aaron Boodman <a...@chromium.org> wrote: > bcc: chromium-dev > cc: chromium-discuss > > Can you send the code for the complete toolstrip? > > - a > > > > On Sun, May 31, 2009 at 4:57 PM, Zak <zakk...@gmail.com> wrote: > > > Hi, > > > I'm really not a coding person, but I followed the documentation > > here: > > >http://dev.chromium.org/developers/design-documents/extensions/howto > > > and set up an extension. Instead of hello-world.html I put an html > > file containing a script (a gmail-this-page bookmarklet). The code is > > below: > > > [code] > > javascript:(function(){m='http://mail.google.com/mail/? > > ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title) > > +'&body='+encodeURIComponent(document.location);w=window.open > > (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');s > > etTimeout > > (function(){w.focus();},%20250);})(); > > [/code] > > > When I click the extension on the bottom bar, it just opens up an html > > page with that code written in plain text. Obviously I'm missing some > > crucial step, and since I don't have a background in coding or > > programming of any sort, I'm pretty lost. Evidently putting the > > javascript in an html file is a wrong move - a different filetype > > maybe? > > > Thanks. And ignore me if I'm wasting your time or whatever, I realize > > I'm some newbie guy asking probably a dumb question, but I'd > > appreciate any help getting this simple thing working. --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---