|
Objects »
OSRMethodsosr:loadrequest(method,url[,postdata]) Sends a HTTP request and loads its response. The third parameter is optional; can be used in POST requests. This method can alternatively be called with a single table parameter (see below)
osr:loadrequest(luatable) Sends a custom HTTP request and loads its response
See Request for details
Reloads the page. If the first parameter is supplied and is true, the cache will be ignored
osr:runjs(jscode[,url,startline,reporterrors]) Executes a JavaScript code in the loaded page. The last three parameters are optional
See Request for details
osr: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
Events
Receives a string containing the new URL
Receives a table parameter containing the keys: url
Receives a table parameter containing the keys: message, source and line
Receives a table parameter containing the keys: id, suggestedname
Receives a table parameter containing the keys: statuscode
Receives a table parameter containing the keys: errorcode, errortext and failedurl
Receives a table parameter containing the keys: isloading, cangoback and cangoforward
Receives a table as first parameter and a JSON string as second parameter. They contain request details in the form of keys
Receives a string containing the resource URL
Receives a string containing the page source code
|
Developer Language |
© 2023 Syhunt |