jerrytouille
jerrytouille

Reputation: 1238

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 :)

Upvotes: 1

Views: 531

Answers (1)

cgp
cgp

Reputation: 41381

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?

Upvotes: 1

Related Questions