I am very new to JS and have a few tasks I would like to accomplish. I understand the basics, but that is about all.
-I want to be able to track when a user clicks an imagebutton and save that to a column in a database with the value of “true”
<script type=text/javascript>
var conn
conn=new ActiveXObject(“ADODB.Connection”);
var rst
rst=new ActiveXObject(“ADODB.recordset”);
sql=”UPDATE LinkCLick1 WHERE URL= URL”
conn.Open(“Connection string”);
rst.Open (sql, conn);
-Another task is enabling an imagebutton based off of two parameters, if a form is valid and depending on which radio button(s) are selected.
If (page.isvalid and rad1.checked) {
window.open(pdf1.pdf);
}
Else If (page.isvalid and rad1.checked and rad2.checked) {
window.open(pdf1.pdf) and window.open(pdf2.pdf);
}
The radio button are not in a group, so more than one can be selected. The use will make their selections, fill out the form, and then click the submit button. Upon submitting, I would like the selected values to automatically download.