Adrian Patrascu
Posts: 0
Joined: Thu Sep 12, 2013 5:25 pm

Image - change dimension in JS

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Image - change dimension in JS

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.

Adrian Patrascu
Posts: 0
Joined: Thu Sep 12, 2013 5:25 pm

Image - change dimension in JS

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.

Adrian Patrascu
Posts: 0
Joined: Thu Sep 12, 2013 5:25 pm

Image - change dimension in JS

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Image - change dimension in JS

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Image - change dimension in JS

Hi Adrian,

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

Adrian Patrascu
Posts: 0
Joined: Thu Sep 12, 2013 5:25 pm

Image - change dimension in JS

User: Administrator
Pass is: ]

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Image - change dimension in JS

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

Adrian Patrascu
Posts: 0
Joined: Thu Sep 12, 2013 5:25 pm

Image - change dimension in JS

It is working with :

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

Thank you,

Adrian

Return to “Issues”