Question How to paste an editor in a web page

Hi,

I would like to add an editor in a web page. Please see the attached document. User want to cut and paste the column of an Excel sheet to this editor in the web page. Later he want to upload the data to a temp-table using the upload button. How is it possible in Webspeed. Please give some ideas, how can I proceed. AJva scripts needed for this requirement. Please advice.
TIA
-Philip-
 

Attachments

  • test.docx
    118.9 KB · Views: 11

GregTomkins

Active Member
Use an HTML <textarea> into which you can paste stuff using normal Windows clipboard functionality and then edit it as free-format text. Then you need a little JavaScript to parse the text and turn it into an array that you can pass into WebSpeed as JSON or XML, which you can easily turn it into a temp-table. You could also just send the whole thing to WebSpeed and let it figure it out.

One obvious problem is that the user could select multiple columns which when pasted will look like one row of text with no delimiter (I think). Also, you might find textarea too limited in terms of editor functionality, if so, there are lots JavaScript editors (eg. $ plugins) around that do way more.
 
Top