Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1024064 // agiBlue_server_postSearchResult

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2461L/16K).

// returns a success message
sS agiBlue_server_postSearchResult(S q, LS results) {
  O bot = eleu_getBot(#1013835);
  if (bot == null) ret print("agiBlue_server_postSearchResult: no node manager");
  print("Sending " + n2(results, "search result") + " to " + quote(q));
  ret print((S) call(bot, 'sendEval, litmap(flag := "agi.blue: " + q, code :=
    [[document.getElementById("extraStuff").innerHTML = ]] + jsQuote(
      h3("Search results (" + l(results) + ")")
      + p_nemptyLines(map agiBlue_linkForPhrase(results))
    ) + [[;]])));
}

Author comment

Began life as a copy of #1024059

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024064
Snippet name: agiBlue_server_postSearchResult
Eternal ID of this version: #1024064/13
Text MD5: 5c452e57ca533f8f29247b03d9f6dab2
Transpilation MD5: ac9ebf418e9f78217b1ce350984e6a88
Author: stefan
Category: javax / agi.blue
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 15:15:39
Source code size: 553 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 223 / 342
Version history: 12 change(s)
Referenced in: [show references]