Searches for multiple elements by tag-name and/or attribute names. Either of tagName or attributeName can be null. If tagName is null, searches all elements, otherwise searches elements with that tag. If attributeName is not-null, searches for elements that have that attribute defined. Upon completion of search, notifies via the callback mechanism. If attributeName is not-null, also returns an array of values found for that attribute.

For best performance, this method can be called in the constructor. The resulting array of HtmlElement's should be processed with batch-updates set to true.

Namespace: Jaxcent.Web.Html
Assembly: Jaxcent (in Jaxcent.dll) Version: 2.3.1.0 (2.3.1.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void SearchForElements(
	JaxcentPage page,
	string tagName,
	string attributeName,
	OnMultipleElementSearch onSearch
)
Public Shared Sub SearchForElements ( _
	page As JaxcentPage, _
	tagName As String, _
	attributeName As String, _
	onSearch As OnMultipleElementSearch _
)
public:
static void SearchForElements(
	JaxcentPage^ page, 
	String^ tagName, 
	String^ attributeName, 
	OnMultipleElementSearch^ onSearch
)

Parameters

page
JaxcentPage
tagName
String
attributeName
String
onSearch
OnMultipleElementSearch

See Also