<?xml version="1.0" encoding="iso-8859-1"?>
 <rss version="2.0">
   <channel>
     <title>cogdogblog: Bonus Feature for MT Bookmarklet Comments and Trackbacks</title>
     <link>http://cogdogblog.com/alan/archives/2003/07/16/bonus_feature_for_mt.php</link>
     <description>Scott Leslie recently posted some well deserved praise for Bookmarklets (little Javascripts to perform tasks), citing them as vastly under-used but powerful tools in your web browser. The MovableType Bookmarklet makes blogging any website a snap, see our Blogging with...</description>
     <language>en-us</language>
     <lastBuildDate>Fri, 07 Apr 2006 11:51:20 -0700</lastBuildDate>
     <generator>Movable Type v2.661</generator>
     <ttl>60</ttl>
    <item>
      <title>CDB Entry: Bonus Feature for MT Bookmarklet</title>
      <description>Scott Leslie recently posted some well deserved praise for Bookmarklets (little Javascripts to perform tasks), citing them as vastly under-used but powerful tools in your web browser. The MovableType Bookmarklet makes blogging any website a snap, see our Blogging with...</description>
      <link>http://cogdogblog.com/alan/archives/2003/07/16/bonus_feature_for_mt.php</link>
       <pubDate>Wed, 16 Jul 2003 14:42:31 -0700</pubDate>
    </item>
        <item>
     <title>comment by: Scott Leslie</title>
     <description>&lt;p&gt;Hey Alan, the ability to copy out text and place prepopulate it onto a form as part of a bookmarklet is very cool. I'm not sure how the MT one does it - the Radio Express one uses &lt;/p&gt;

&lt;p&gt;javascript:Q='';if(top.frames.length==0){if(document.selection)Q=document.selection.createRange().text;else if(document.getSelection)Q=document.getSelection()};void(location.href='htp://127.0.0.1:5335/system/pages/radioExpress?t='+escape(Q)+'&amp;u='+escape(location.href)+'&amp;n='+escape(document.title));&lt;/p&gt;

&lt;p&gt;The main idea being to use document.selection object and then pass it as part of the form posting parameters. Once one understands this principle, it's amazing the uses one can see - e.g. wouldn't it make sense to build a bookmarklet to help with adding a learning object record to a repository, and be able to select some of the relevant text from a page as the starting text for a description field &lt;/p&gt;

&lt;p&gt;(I'll bet you've already built this and that's tomorrow's post, you sly devil!) &lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2003/07/16/bonus_feature_for_mt.php#75</link>
      <pubDate>Wed, 16 Jul 2003 15:52:53 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Alan</title>
     <description>&lt;p&gt;The MT one is fairliy similar, it is also passing some paramters used to set up the form options:&lt;/p&gt;

&lt;p&gt;javascript:d=document;t=d.selection?d.selection.createRange().text:d.getSelection();void(window.open('&lt;a href=&quot;http://jade.mcli.dist.maricopa.edu/cgi-bin/mt/mt.cgi?is_bm=1&amp;bm_show=trackback,category,allow_comments,allow_pings,convert_breaks,excerpt,text_more&amp;__mode=view&amp;_type=entry&amp;link_title='+escape(d.title)+'&amp;link_href='+escape(d.location.href)+'&amp;text='+escape(t),'_blank','scrollbars=yes,width=400,height=800,status=yes,resizable=yes,scrollbars=yes'))&quot;&gt;http://jade.mcli.dist.maricopa.edu/cgi-bin/mt/mt.cgi?is_bm=1&amp;bm_show=trackback,category,allow_comments,allow_pings,convert_breaks,excerpt,text_more&amp;__mode=view&amp;_type=entry&amp;link_title='+escape(d.title)+'&amp;link_href='+escape(d.location.href)+'&amp;text='+escape(t),'_blank','scrollbars=yes,width=400,height=800,status=yes,resizable=yes,scrollbars=yes'))&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It sends you through a CGI script to verify that one is logged in (if not you get the login screen, and then it moves the info into the form).&lt;/p&gt;

&lt;p&gt;The one I use most is a Google one that does a search ona  selected chunk of text:&lt;/p&gt;

&lt;p&gt;javascript:q=document.getSelection();for(i=0;i&lt;frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Enter%20text%20to%20search%20using%20Google.%20You%20can%20also%20highlight%20a%20word%20on%20this%20web%20page%20before%20clicking%20Google%20Search.',''));if(q)location.href='&lt;a href=&quot;http://www.google.com/search?client=googlet&amp;q='+escape(q)&quot;&gt;http://www.google.com/search?client=googlet&amp;q='+escape(q)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And no, I am not as sly as you think. The approach you describe would work only for objects that are themselves web pages, but I guess could concievably be built.&lt;/p&gt;

&lt;p&gt;But what I could see is a bookmarklet that would call a server script that could scavenge a page for RDF tags (auto-discovery) and pull up a form for creating a TrackBack ping- this would allow anyone to create TrackBack, not just an MT user (all of our MLX packing slips now have this as a feature).&lt;/p&gt;

&lt;p&gt;Then again, no one really understands Trackback....&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2003/07/16/bonus_feature_for_mt.php#76</link>
      <pubDate>Wed, 16 Jul 2003 16:21:37 -0700</pubDate>
     </item>
    

 
  </channel>
</rss>