Script to Access URL(www.google.com)

107 views
Skip to first unread message

DrummanBr

unread,
Aug 27, 2018, 10:15:32 AM8/27/18
to mementodatabase
Hi everyone!
How can I access a URL(www.google.com) after press the script Button?

Bill Crews

unread,
Aug 27, 2018, 11:06:28 AM8/27/18
to DrummanBr, mementodatabase

Script button? Maybe that's the Play button, either in the entries list screen, for a library action, or in the entry view card, for an entry action? Or maybe you mean the Scripts option in the 3-dot menu in the entries list screen?


Anyway, the choices are probably limited to the following. First, the Http object for use by an action script or a trigger script: http://wiki.mementodatabase.com/index.php/Memento_JavaScript_Library#Processing_an_HTTP_request

Second, the recently-added features in release 4.5.5...

Release 4.5.5, 2018-08-02

  • New field type — Color.
  • Added mobygames.com as a data source for Autofill. This source contains information about computer games.
  • Scripts: Added the global function email(), which sends an email message via SMTP in the background.
  • Scripts: Added the method post() in object Http to send POST (HTTP) requests.
  • Scripts: Added methods for access to HTTP headers. The Http object has the method headers() to set up headers for a request. The HttpResult object has the method headers(name) to read the result headers by name.
  • Added the ability to choose the location of the image cache folder.

Message has been deleted

DrummanBr

unread,
Aug 27, 2018, 11:14:30 AM8/27/18
to mementodatabase

Sorry,  that's the Play button, either  for a library action

Tomasz K.

unread,
Aug 30, 2018, 12:07:33 PM8/30/18
to mementodatabase
var url = ("URL");
var i = intent("android.intent.action.VIEW"); i.data(url);
i.send();

DrummanBr

unread,
Sep 5, 2018, 6:05:46 PM9/5/18
to mementodatabase
Thank you, It worked!!!
Reply all
Reply to author
Forward
0 new messages