Having a troubles grabbing a dynamic input name object when calling the onClick="" event. How do I apply the parameter "row" to the primaryFile object so that when a user clicks on the button, the function only uses that row?
function uploadFileWindow(row){
document.upLoadBy.primaryFile+row.value;
if(document.upLoadBy.primaryFile+row.value == null || document.upLoadBy.primaryFile.value == ""){
return;
}
document.upLoadBy.submit();
this is some dynamic row built, just take into account that this is a row incrementor <$rowCount$>
<input type="file" name="primaryFile<$rowCount$>" value="Browse" size=15>
<input type="button" value="upload" name="uploadFileSelected" onClick="JavaScript:uploadFileWindow('<$rowCount$>');">
Dano
What's your major malfunction
function uploadFileWindow(row){
document.upLoadBy.primaryFile+row.value;
if(document.upLoadBy.primaryFile+row.value == null || document.upLoadBy.primaryFile.value == ""){
return;
}
document.upLoadBy.submit();
this is some dynamic row built, just take into account that this is a row incrementor <$rowCount$>
<input type="file" name="primaryFile<$rowCount$>" value="Browse" size=15>
<input type="button" value="upload" name="uploadFileSelected" onClick="JavaScript:uploadFileWindow('<$rowCount$>');">
Dano
What's your major malfunction