Andre Hoefs
Posts: 0
Joined: Fri Jul 25, 2014 8:14 pm

Applying new src on load of screen

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Applying new src on load of screen

Hello Andre,

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

Andre Hoefs
Posts: 0
Joined: Fri Jul 25, 2014 8:14 pm

Applying new src on load of screen

Hello Sergiy,

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Applying new src on load of screen

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.

Andre Hoefs
Posts: 0
Joined: Fri Jul 25, 2014 8:14 pm

Applying new src on load of screen

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....

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Applying new src on load of screen

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.

Andre Hoefs
Posts: 0
Joined: Fri Jul 25, 2014 8:14 pm

Applying new src on load of screen

Hi, how can i generate the public link?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Applying new src on load of screen

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...

Andre Hoefs
Posts: 0
Joined: Fri Jul 25, 2014 8:14 pm

Applying new src on load of screen

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Applying new src on load of screen

No, Andre - we are working on your request.

Return to “Issues”