Difference between revisions of "lure.load"

(Arguments)
(Syntax/Usage)
Line 2: Line 2:
  
 
==== Syntax/Usage ====
 
==== Syntax/Usage ====
 +
 +
<source lang="lua">
 +
require("lure.lua")
 +
 +
htmlDoc = lure.load("test.html")
 +
 +
print(htmlDoc)
 +
--OUTPUT: [object]:DOCUMENT_NODE
 +
</source>
  
 
==== Arguments ====
 
==== Arguments ====

Revision as of 08:36, 6 November 2011

Desc

Syntax/Usage

require("lure.lua")

htmlDoc = lure.load("test.html")

print(htmlDoc)
--OUTPUT: [object]:DOCUMENT_NODE

Arguments

Name Type Decription Required
pObj Any The object to load into the lure.document scope. Can be a file/DOM Object/or xml/html text. If no arguments are specified, the function will return an empty DOM Object No

Return value

Return Type Description
[Table] DOM Object On successful completion of the the load function, it will return a valid DOM Object, or nil on failure