Subdomain Posts
JavaScript | 556 days ago
JavaScript | 560 days ago
JavaScript | 560 days ago
JavaScript | 568 days ago
Recent Posts
None | 29 sec ago
None | 2 min ago
Bash | 2 min ago
None | 2 min ago
PHP | 2 min ago
None | 2 min ago
None | 2 min ago
Prolog | 3 min ago
None | 3 min ago
None | 3 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By David on the 4th of Sep 2008 07:04:44 PM Download | Raw | Embed | Report
  1. CmdUtils.CreateCommand({
  2.     name: "syno",
  3.     takes: {"input": noun_arb_text},
  4.  
  5.     preview: function(pblock, input) {
  6.    
  7.        jQuery.get( 'http://thesaurus.reference.com/browse/' + input.text, null, function( page ) {
  8.  
  9.        var results = "";
  10.        var beginPos = page.indexOf("Main Entry:",0);
  11.        var endPos = 0;    
  12.    
  13.        while( beginPos != -1 )
  14.        {
  15.           //stringObject.indexOf(searchvalue,fromindex)
  16.           endPos = page.indexOf( "<\/table>", beginPos );
  17.  
  18.           //stringObject.substring(start,stop)    
  19.           results = results + "<br> <br>" + page.substring(beginPos,endPos);
  20.  
  21.           beginPos = page.indexOf( "Main Entry:", endPos );
  22.        }
  23.  
  24.        pblock.innerHTML = results;
  25.  
  26.        });
  27.     }
  28. })
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: