Page 1 of 1

Image - change dimension in JS

Posted: Fri Nov 08, 2013 11:13 pm
by Adrian Patrascu

Please help!

I have a short part of my app that doesn't work from last Monday (2013.11.04) probably.
It is related to dimension change of an image in PAGE SHOW java script code.

Code that had work previously follows:

---------

document.getElementById("edetailing_image").style.width=w+'px';
document.getElementById("edetailing_image").style.height=h+'px';

---------

Where W and H are defined variables;

I do need to change dimension of this picture. It is possible another way?
Unfortunately, this feature is mandatory for the application.

An APK build previously still working, code saved at the same time and reloaded do not work anymore.

Thank you,

Adrian


Image - change dimension in JS

Posted: Fri Nov 08, 2013 11:51 pm
by Igor

Hello Adrian,

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us how can we reproduce this issue.


Image - change dimension in JS

Posted: Sat Nov 09, 2013 12:09 am
by Adrian Patrascu

Image

Hi,

In the image there are real values of Width and Height (that has been set in code), but the Image dimension remain at the initial values.

Code is simple, just try to change a picture dimensions from a JS in Load or Page Show or anywhere else. It does not work.


Image - change dimension in JS

Posted: Sat Nov 09, 2013 12:24 am
by Adrian Patrascu

details where sent as reply by email, the application is shared now.


Image - change dimension in JS

Posted: Sat Nov 09, 2013 1:09 pm
by Alena Prykhodko

Hello Adrian! Sorry for late reply. We need some time for research, we'll inform you asap.


Image - change dimension in JS

Posted: Mon Nov 11, 2013 7:37 am
by Kateryna Grynko

Hi Adrian,

Could you please also send us login and password to enter the application?


Image - change dimension in JS

Posted: Mon Nov 11, 2013 10:58 am
by Adrian Patrascu

User: Administrator
Pass is: ]


Image - change dimension in JS

Posted: Mon Nov 11, 2013 2:27 pm
by Kateryna Grynko

Hi Adrian,

It's preferable to use jQuery to set/delete attributes. Try the following code:precode$('#edetailing_image').removeClass("edetailing_image");
$('#edetailing_image').width($('#edetailing_edet_container').width());
$('#edetailing_image').height($('#edetailing_edet_container').height());
$('#edetailing_image').attr('src', 'https://81.180.117.149:11111/cml/images/'+picture);/code/pre


Image - change dimension in JS

Posted: Mon Nov 11, 2013 3:59 pm
by Adrian Patrascu

It is working with :

$('#edetailing_image').removeClass("edetailing_image");
...

Thank you,

Adrian