nichemtktg — 2011-06-30T18:04:45-04:00 — #1
I have an input box that's 200px long in a php form. There's no room in the form, to make the input box bigger. Long input in difficult to edit in this small box so I use a word processor to edit long input when I need to.
Is there some way to use JS (or some other approach) to trigger a pop-up that's large enough for easier editing that might even include a spell checker?
If so, how should I begin to think about making this improvement?
tlacaelelrl — 2011-06-30T23:19:44-04:00 — #2
I don´t understand very well what you need, can you post the code you have at the moment or a link to the form?
anarch — 2011-06-30T23:30:04-04:00 — #3
i would add an onclick trigger to the textfield and send it to a function that uses some sort of shadowbox, etc and then return the info to the original field
maybe another option would be to float the textfield and onclick enlarge the textbox overtop of the form by requesting and changing the height/width property and then changing it back on some other event
tlacaelelrl — 2011-06-30T23:43:42-04:00 — #4
anarch — 2011-07-01T00:01:53-04:00 — #5
yeah that makes more sense using onfocus
i'm assuming onfocus returns a boolean, if not you can create one for it
this.getElementById("textfield").width = 500px;
this.getElementById("textfield").height = 500px;
this.getElementById("textfield").width = **original**
this.getElementById("textfield").height = **original**