Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: acronym Arguments: atf Description: Looks up definitions for acronyms Page type: webl Render function: acronymRender Module: global Page source: var P = PostURL("http://www.acronymsearch.com/index.php", [. acronym=atf, act="search" .]); var definitions = []; if (Size(Pat(P, "There were no acronyms found")) > 0) then definitions = []; else var Table = Elem(P, "table") directlycontain Pat(P, "results"); var TR = Elem(P, "tr") inside Table[0]; var i = 1; while (i < Size(TR)) do definitions = definitions + [Str_Trim(Text((Elem(P, "td") inside TR[i])[1]))]; i = i + 1 end; end; [. acronym = atf, definitions = definitions .];