|
Objects »
Tab ObjectThe tab object is automatically created when Sandcat starts and is always connected to the active tab. MethodsGoes to the supplied url. The source parameter is optional - if supplied, the page will be loaded from it.
tab:loadrequest(method,url[,postdata]) Sends a HTTP request, loads its response and adds the request to the Live Headers list. The third parameter is optional; can be used in POST requests. This method can alternatively be called with a single table parameter (see below).
tab:loadrequest(luatable) Sends a custom HTTP request, loads its response and adds the request to the Live Headers list.
See Request for details.
Loads an extension page. The second parameter is optional - if supplied, associates the HTML elements of the page with a Lua table. See UI Manipulation for details.
tab:logerror(componenttitle,linenumber,msg) Manually adds an error item to the Script Errors screen.
tab:logrequest(json[,responsetext]) Manually logs a request from a custom HTTP client class to the Live Headers. The second parameter is optional and can contain the response text.
See Request for details.
Reloads the page. If the first parameter is supplied and is true, the cache will be ignored.
tab:runjs(jscode[,url,startline,reporterrors]) Executes a JavaScript code in the loaded page. The last three parameters are optional.
Sets a Lua script to be executed after a certain message is received through the JS console.log() method. This method should be used with caution.
tab:runtask(luacode[,json,menuhtml]) Executes a Lua code in an isolated process. The second parameter is optional and can be used to pass parameters to the task process.
tab:sendrequest(method,url[,postdata]) Sends a HTTP request and adds the request to the Live Headers list. The third parameter is optional. This method can alternatively be called with a single table parameter (see below).
tab:sendrequest(luatable) Sends a custom HTTP request and adds the request to the Live Headers list.
See Request for details.
tab:showauthdialog([username,password]) Displays the basic authentication dialog. The username and password parameters are optional. If supplied, they are used as default values in the dialog.
Properties
|
Developer Language |
© 2023 Syhunt |