Published on InterSystems Developer Community (https://community.intersystems.com)

Home > CSP Page show content dinamically

Question
David Reche · Jan 15, 2017

CSP Page show content dinamically

I want do to a "simple thing". Show a dynamic log of actions in the browser as we can see on Terminal. For that, I guess to make a simple CSP Page that show a new line every WRITE command is the thing I need.  

But how I refresh after each WRITE?

How I can refresh the content automatically?

I made a simple CSP Page and in method OnPage I do this test:

    write "Start..",!
    for i=1:1:10{
        hang 1
        write "Doing "_i,!
    }

 

Don't work... because the browser show me only after the process finish.

I guess I should use another way... any help?

#Beginner #Caché #Terminal #Frontend

Source URL:https://community.intersystems.com/post/csp-page-show-content-dinamically