Project

General

Profile

FAQ » History » Version 1

Luke Murphey, 08/10/2014 05:55 AM

1 1 Luke Murphey
h1. FAQ
2 1 Luke Murphey
3 1 Luke Murphey
h2. Can I specify more than one selector (to match different things on a single page)
4 1 Luke Murphey
5 1 Luke Murphey
Yes, enter multiple selectors separated by commas. To match both span and div tags, you would enter a selector of "span,div".
6 1 Luke Murphey
7 1 Luke Murphey
h2. Can I use attributes to set the field names?
8 1 Luke Murphey
9 1 Luke Murphey
You can use the "Name Attributes" option on the Output section to tell the app to use attribute values as the field name.
10 1 Luke Murphey
11 1 Luke Murphey
For example, consider the following HTML:
12 1 Luke Murphey
13 1 Luke Murphey
<pre>
14 1 Luke Murphey
<div id="model">Focus</div>
15 1 Luke Murphey
<div name="submodel">ST</div>
16 1 Luke Murphey
<div name="make" id="car">Ford</div>
17 1 Luke Murphey
</pre>
18 1 Luke Murphey
19 1 Luke Murphey
If the setting the name attributes is "name,id", then the app would look for the "name" attribute or the "id" attribute and use this as the value of the field (it uses the first match it finds). This would cause the following output with the example above:
20 1 Luke Murphey
21 1 Luke Murphey
<pre>
22 1 Luke Murphey
model=Focus submodel=ST make=Ford
23 1 Luke Murphey
</pre>