I want to test a my fields in a table over night. I have a table that takes input with a button, and I want to pass all the variables using JSON. Here is the sample of what I have. I Googled but wasn't getting what I was looking for.
<table style="border-style:solid;display: inline-block; " >
<tr>
<td>Person First Name</td><td><input type="text" id="searchPersonFName"/></td>
</tr>
<tr>
<td>Person Last Name</td><td><input type="text" id="searchPersonLName"/></td>
</tr>
<tr>
<td>Person Telephone Number</td><td><input type="text" id="searchPersonNumber"/></td>
</tr>
<tr>
<td>Person Company Name</td><td><input type="text" id="searchPersonCompName"/></td>
</tr>
<tr>
<td>Person Fax</td><td><input type="text" id="searchPersonFax"/></td>
</tr>
<tr>
<td>Email Address</td><td><input type="text" id="searchPersonEmail"/></td>
</tr>
<tr>
<td>Prov/State</td><td><input type="text" id="searchPersonProvState"/></td>
</tr>
<tr>
<td>Postal Code</td><td><input type="text" id="searchPersonPostalCode"/></td>
</tr>
<tr>
<td>City</td><td><input type="text" id="searchPersonCity"/></td>
</tr>
<tr>
<td>Country</td><td><input type="text" id="searchPersonCountry"/></td>
</tr>
</table>
<input type="button" id="btnSearchPerson" onclick="searchPerson();" value="Search Person" />
I basically want this button to be pushed the for a long time, and fill up all those filled using this:
var filterList = new Array();
var company1Filter = {
PersonFName : ''
PersonLName : '',
etc..
}
filterList.push(company1Filter);
I'm pretty new to this, if I am missing any information, please let me know as I can explain further.