Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] how to do this better was Re: How to do a portion of a layout?

From: bry::itnisk::com at: 25-Mar-2004 11:55

okay I have the following: search-engines: make Object! [ Google: ["http://www.google.com/search? q=" "&btnG=Google+Search"] Dogpile: ["http://www.dogpile.com/info.dogpl/search/we b/" ""] HotBot: ["http://www.hotbot.com/default.asp? query=" &ps=&loc=searchbox&tab=web&provKey=Inktomi ] Vivisimo: ["http://vivisimo.com/search? query=" "&sources=Web"] Alexa: ["http://www.alexa.com/search?q=" ""] Eurekster: ["http://www.eurekster.com/search? p=Q&ts=e&f=&w=" ""] ] swords: next first search-engines button-list: "" v: {layout [ backdrop 219.219.219 across word_to_lookup: field 120 [] return } buttons: foreach word swords[searchstring: get in search-engines word s1: pick searchstring 1 s2: pick searchstring 2 append button-list reform[ { button "} word {" [do-browser join ["} s1{" word_to_lookup/text "}s2{"]] return } ] ] append v button-list append v "]" view do v and I sort of find that whole buttons word to be really darn ugly. How would one do this in a cleaner manner, I don't mind if it's more verbose, I just want it to be a little bit more comprehensible without all that ugly escaping. By the way, why does probe start the shell. And is there any smart stuff, or dumb stuff, that one could do starting the shell from the Rebol/View dll?