Krishna Misra
Posts: 0
Joined: Wed Feb 19, 2014 11:04 pm

Linking existing HTML5 content with button click event

I am new to appery. I have my own HTML5 content and I want to upload the content to some folder and invoke the index.html file of my HTML5 application from the click event of a button on the startScreen. Can you help with this?

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

Linking existing HTML5 content with button click event

Hi,

Copy your HTML5 content to HTML component, then on Click event Run JS:

preAppery("html_X").submit();/pre

html_X - your HTML component name

More here http://docs.appery.io/documentation/u...

Krishna Misra
Posts: 0
Joined: Wed Feb 19, 2014 11:04 pm

Linking existing HTML5 content with button click event

Thanks, I will try this. Additionally I observed below problem after trying so many times:-
1) I added a button to startSreen.
2) Created another page.
3) Linked this new page to the button on click event.
4) (Issue) When I run the application, it does go to the new page but it is not showing the updated page. I mean change the caption of the new page and added a button also. However when I navigate from the button on the start screen, I see the old page only(with default text 'caption' on the top) and button is also missing.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Linking existing HTML5 content with button click event

Hello!
1) Refresh the page Ctrl+F5, perhaps data is cashed
2) Di you change anything on Source tab?

Krishna Misra
Posts: 0
Joined: Wed Feb 19, 2014 11:04 pm

Linking existing HTML5 content with button click event

Hi Marnya,
I was able to get this done by linking page from a button. Now I have different problem. I have an HTML5 application of my own which I want to link to an appery page. Here is what I did:-
1) I have created a button on startScreen and created a button on that.
2) Then I created a new page(let's call abc) and dropped an HTML component on that. Inside that HTML component I have pasted the HTML of the index.html of my own application and set the width/height as 100%(so that it comes fullscreen).
3) From the startScreen's Button's onClick event I am trying to invoke the new page 'abc'.
4) Here is the problem. I just get the loading icon and the 2nd page never invokes.
Please note that my HTML5 app is generated from ispring's Powerpoint to HTML5 converter.

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

Linking existing HTML5 content with button click event

Hi Krishna - can you show how exactly you insert code inside your HTML component?

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

Linking existing HTML5 content with button click event

Hi Krishna,

Most probably you entered an incorrect code there.

If you really need your page to be here - you can change its sources. But I'd recommend you to use HTML component.

Please check if there are any console errors.

Return to “Issues”