Dummy object for free html code

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

Locked
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Dummy object for free html code

Post by HPW » Mon Aug 20, 2018 12:41 pm

Hello,

For the emscripten-loader I would like to have a Dummy object for free html code like this:
<div class="emscripten" id="status">Downloading...</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=0></progress>
</div>
When compiled it gets into the object-hierarchy for example:
<div id="NewPage">
<div class="emscripten" id="status">Downloading...</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=0></progress>
</div>
<div id="Container1" class="[NAB.Container1_effect]" ng-style="NAB.Container1_style" ng-hide="NAB.Container1_hidden" ng-disabled="NAB.Container1_disabled">
Or any other tip/idea?

Regards
Hans-Peter

User avatar
luishp
Posts: 410
Joined: Wed May 23, 2007 10:17 am
Location: Spain
Contact:

Re: Dummy object for free html code

Post by luishp » Tue Aug 21, 2018 1:22 am

Try this using PowerApp plugin:
slGetHTMLCode "NewPage" [pagecode]
slSetHTMLCode "NewPage" '<div class="emscripten" id="status">Downloading...</div>\n<div class="emscripten">\n<progress value="0" max="100" id="progress" hidden=0></progress>\n</div> [pagecode]'
Regards
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com

User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Dummy object for free html code

Post by HPW » Tue Aug 21, 2018 2:14 am

Hello Luis,

Thanks for the Tip. (And the plugin)

But where to put this code?
I tried the Page Enter code tab without success.

Edit: Ok I tried AppEvents/Startup.
That gets exported into main.js
But it seems too late or wrong for my other code, since the newlisp no more works.

So any other idea to get a html exported into index.html ?

Regards

Hans-Peter
Hans-Peter

User avatar
luishp
Posts: 410
Joined: Wed May 23, 2007 10:17 am
Location: Spain
Contact:

Re: Dummy object for free html code

Post by luishp » Tue Aug 21, 2018 3:26 am

Why not put this inside a Container HTML?
<div class="emscripten" id="status">Downloading...</div>
<div class="emscripten">
<progress value="0" max="100" id="progress" hidden=0></progress>
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com

User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Dummy object for free html code

Post by HPW » Tue Aug 21, 2018 3:54 am

Hello Luis,

Many thanks. That was the hint I needed. Bingo.

Now my last Problem remain with the async js-lib loading.

viewtopic.php?f=38&t=21461

For now I edit the html to get it work.

Regards
Hans-Peter

User avatar
luishp
Posts: 410
Joined: Wed May 23, 2007 10:17 am
Location: Spain
Contact:

Re: Dummy object for free html code

Post by luishp » Tue Aug 21, 2018 4:22 am

I think it should be really easy to solve within the plugin generator, but I still have no chance of making any changes on it.
Meanwhile your workaround should work.
Sorry.
Luis Hernández - SinLios Soluciones Digitales
http://sinlios.com

User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Re: Dummy object for free html code

Post by HPW » Tue Aug 21, 2018 5:23 am

Hello Luis,

No Need for a 'Sorry'.

I know that we are still in beta.
And I have revisited it now because of making it a good product in the future,
The latest beta is also a lot better than the one I tested first.
So add it to the wish list.

And remember: neobook gets the product it is, because Dave listen to user-wishes and adds tons of them over time.

Regards
Hans-Peter

Locked