简体   繁体   中英

Pre-fill a form via external file using Javascript

I'm looking for a way to let user upload a config file (text base, no encryption), then parsing that file (either line by line or separating fields by commas,...) to pre-fill textboxes field on the same page using javascript.

Thanks for your help :)

First, you'll have to handle the upload via a ajax upload . Your javascript then can make an ajax call out to get the contents of the HTML file. What exactly are your need beyond this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM