- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
In one of my forms I used similar concept, however I used Button and Image overlay on each other and have code under Button Click event....But the code attaches any document/file the user chose attach rather than just screenshot....this could be starting point for you to try some thing you want.... Following is the code I used....
var aInstance = this.parent.index; //this is the table row instance in your case
var selectFileName = "ScreenShot" + aInstance; //this is to assign a relative name for each image they like to upload
var doc = event.target;
doc.importDataObject(selectFileName); //opens the dialog box for user to navigate and select any file to attach
var MyPar1 = doc.getDataObject(selectFileName);
var filename = MyPar1.path; //get the file path in to a variable so you can extract the name of the file they select and determine type of the file and do some exception coding.
Good luck,
Views
Replies
Total Likes