TinyButStrong - the PHP Template Engine
Categories > TinyButStrong general >

How to run javascript just after html created

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: Handoko Koko
Date: 2016-06-26
Time: 11:04

How to run javascript just after html created

Dear team,

I am wondering how to run javascript just after html template showed or loaded.
My current code was successfull however the result wiped/replaced by new html showed or loaded.

Thanks before
By: Skrol29
Date: 2016-06-29
Time: 01:29

Re: How to run javascript just after html created

Hello,

I don't understand your question because it seems to be related to HTML not TBS.
The merged template is supposed to bean HTML page with convenient Javascipt content.
By: Handoko Koko
Date: 2016-07-01
Time: 01:17

Re: How to run javascript just after html created

Sorry,

to be clearer that i have count down timer created by javasript on examination page,
and i calculate the total time taken to finish the examination on that page and update those point result on the same page but
with different format and thus it need TBS to re-calculate / display that page.

And now the problem is that the time taken resulted by javascript on previous page cannot be keep displayed on this refreshed new page.

By: Skrol29
Date: 2016-07-01
Time: 17:24

Re: How to run javascript just after html created

It's seems to be a problem at the client side (probably Javascript), not the server side (PHP or TBS).