Hi.
I am trying to set the height of a 'textbox' with javascript, but nothing happens:
I've tried this on "Page Load" and "Page Show".... but not working...
Appery('message').css('height','150px');
Why will this not work?
Hi.
I am trying to set the height of a 'textbox' with javascript, but nothing happens:
I've tried this on "Page Load" and "Page Show".... but not working...
Appery('message').css('height','150px');
Why will this not work?
Hi Ray,
Please try:
preApperyio('message').css('height','150px');/pre
No. This also doesnt work...
frustrating...
Ray,
Are there any console errors?
Is your textarea named "message"?
Could you please try running this code on button click, for example?
Hi.
Yes the textarea is named "message".
I have tried it "onclick" and it works. It just doesnt work on "Load" or "Page Show" and I need it to.
Ray,
Could you please try running this code on "Load" and "Page Show"?
prealert("sometext");/pre
ok. tried it.
On "Load" I got the alert just before the screen was displayed.
On "Page Show" I got the alert just after the screen was displayed.
So the events are working.
But I cant change the css with these events.
Ray,
Did you try doing the same on another page?
I've tried it on a new app.
I've put this code on "Page Show"
Apperyio('message').css('height','300px');
It seems to apply the CSS, but then it seems to do some other automatic function after "Page Show" which puts the textarea back to its default stage.
Here is the app with the textarea.
http://appery.io/app/mobile-frame?src...
Hello!
Please try the following code:
preApperyio("message").attr('style', 'height: 150px !important');/pre