Page 1 of 3

Applying new src on load of screen

Posted: Wed Jan 27, 2016 8:41 pm
by Andre Hoefs

Hi,

on load of my screen i load some variables:

Image

after that i'd like to set the src of my iframe like that:
code
var impulslink='http://www.xxx.de/appimpulsausgabe.php?username='+Appery('username').val()+'&passwort='+Appery('passwort').val();

$('#impulsausgabeframe').attr('src',impulslink);
/code
I tried to use this on the load event of my screen.

Unfortunately it doesnt work till i reload the screen once.
What is the problem?

Regards, hoefsi


Applying new src on load of screen

Posted: Wed Jan 27, 2016 9:32 pm
by Serhii Kulibaba

Hello Andre,

Please use event "page show" instead of "load"


Applying new src on load of screen

Posted: Thu Jan 28, 2016 6:46 pm
by Andre Hoefs

Hello Sergiy,

i tried "page show" but it didn't work as well....


Applying new src on load of screen

Posted: Fri Jan 29, 2016 10:38 am
by Evgene Karachevtsev

Hello Andre,

Basically all the dynamic binding to attribute work stable. So the issue might be in the url.
Could you please clarify a few questions:
Are there any errors/warnings during the first page load?
Also, you can inspect the iframe element on the first load and see the pasted src url.


Applying new src on load of screen

Posted: Fri Jan 29, 2016 6:05 pm
by Andre Hoefs

Hi,

the url is correct.

If i insert an alert to show the "impulslink" variable like this
code
var impulslink='http://www.xxx.de/miapp/appimpulsausgabe.php?username='+Appery('username').val()+'&passwort='+Appery('passwort').val();

alert (impulslink);

$('#impulsausgabeframe').attr('src',impulslink);

/code
, i see the url is correct.
And if i close the alert window, the url changes to the right one!!!!

???

If i disable the alert line, the url isn't applied anymore.
I don't understand this....


Applying new src on load of screen

Posted: Sat Jan 30, 2016 8:15 pm
by Illya Stepanov

Hi Andre -

Please send us screen shot of this code inside the Appery.io builder or app public link at: a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a -- so we can test this.


Applying new src on load of screen

Posted: Sun Jan 31, 2016 1:27 pm
by Andre Hoefs

Hi, how can i generate the public link?


Applying new src on load of screen

Posted: Sun Jan 31, 2016 1:46 pm
by Evgene Karachevtsev

Hello Andre,

We see that you have shared the app, this should be enough.
And this doc should provide you information about a public app link: https://devcenter.appery.io/documenta...


Applying new src on load of screen

Posted: Sun Jan 31, 2016 6:12 pm
by Andre Hoefs

ok. An do i have to do another support request now?


Applying new src on load of screen

Posted: Sun Jan 31, 2016 9:59 pm
by Illya Stepanov

No, Andre - we are working on your request.