Zohar Posted September 22, 2012 Share Posted September 22, 2012 Hi In many webpages, we have a TextArea element, and often its Height is not enough. I am trying to change the Height of a TextArea, and I succeed in changing the value, however the Element does not "refresh" itself according to its new height.. Only If I drag it slightly, then it "jumps" to the Height that I set. The code I have for now is this: Local $TA =$oIE.document.getElementById("textarea_id") $TA.style.height="575px" What do I need to add to make it work? Thank you Zohar Link to comment Share on other sites More sharing options...
FireFox Posted September 22, 2012 Share Posted September 22, 2012 Hi, Try this : Local $TA =$oIE.document.getElementById("textarea_id") $TA.style.height="575px !important" Br, FireFox. Link to comment Share on other sites More sharing options...
kylomas Posted September 22, 2012 Share Posted September 22, 2012 Zohar, I believe that the IE object has a refresh method. So you might try $oie.refresh after you alter the property. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Zohar Posted September 25, 2012 Author Share Posted September 25, 2012 kylomas:Thank you..I need to do it on the current page, with its current content,so Refreshing will not be a good solution for this here..I need the page to remain as it is, without being refreshed..FireFox:Is this real?To write the browser "!important"? If yes, then it did not work... Link to comment Share on other sites More sharing options...
Myicq Posted September 25, 2012 Share Posted September 25, 2012 @Zohar: the !important is part of CSS. The styles on the page determine if it's needed or not. I am just a hobby programmer, and nothing great to publish right now. Link to comment Share on other sites More sharing options...
czardas Posted September 25, 2012 Share Posted September 25, 2012 Why resize it? Can't you just paste your text in there? operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Zohar Posted September 25, 2012 Author Share Posted September 25, 2012 @Zohar: the !important is part of CSS. The styles on the page determine if it's needed or not.Hi MyicqThank you..Weird that it doesn't work for me :/When ran, it causes an Error..Why resize it? Can't you just paste your text in there?There's no ready-made text.I want to use this when I type in a forum. Link to comment Share on other sites More sharing options...
czardas Posted September 26, 2012 Share Posted September 26, 2012 There's no ready-made text.I want to use this when I type in a forum.What's wrong with creating ready made text in an editor? operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
hannes08 Posted September 26, 2012 Share Posted September 26, 2012 If you need to resize a textbox you can use Google Chrome. The function is built in there. Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now