1.1.3 • Published 11 years ago

get-all-view-states v1.1.3

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

Get All View States

Extract all view-state related values from an html string parsed by cheerio. On some ASP webpages, there is a 1 or more view state values. There is a hidden form element with id __VIEWSTATECOUNT. This module extracts this view state count, and then extracts each individual view state value

Usage

var getAllViewStates = require('get-all-view-states')
var html = 'some html string with view state values'
var $ = cheerio(html)
var viewStates = getAllViewStates($)

In the example above, viewStates is an object that looks like

{
    viewStateFieldCount: 4,
    viewState: 'sdofijdsofje',
    viewState1: '1dsfsdf',
    viewState2: '20dk2md9',
    viewState3: '93ms923msd923nbdsvas'
}
1.1.3

11 years ago

1.1.2

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.1

11 years ago