Jump to content

Values to array


vanlion

Recommended Posts

Hallo,

 

I want a html with editable cells

 

Cell 1: 3

 

Cell 2: 4000

 

Cell 3: 5

 

Cell 4: 6000

 

What Im than Looking for is to get this in a following array

 

[3x4000,5x6000]

 

so Cell values separate with a x

 

Reason is that i can use it in ruby for sketchup

 

Is this possible with html and javascript?

 

Thanks

Edited by vanlion
Link to comment
Share on other sites

Yes, there are several ways to make elements editable. HTML 5 has an "editable" attribute, and there are also several libraries you can use to help with things like that. You could even just put regular input elements in each cell, and have a button that builds your array and prints it or whatever you want to do.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...