Load UI page HTML via server side

jeremy_gardner
Tera Expert

Hello,

We're trying to load a UI page and consume the HTML content from server-side code - is this possible?   Was considering doing it with REST but the only two REST interfaces I know so far are Table API and Custom REST, neither of which can be used on a UI page.

Any thoughts?   Javascript libraries we can use?

Thanks!

Jeremy

13 REPLIES 13

bernyalvarado
Mega Sage

Hi Jeremy,



You can always call a script include through GlideAjax within UI page. The script include runs at the server side so that should fulfill your requirement.



Thanks,


Berny


Thanks Berny. We're trying to load the UI page from the script include though, not other way around. The UI page contains logic and client scripts that generate html data and we want to consume that data and pass along somewhere else.



Thanks,


Jeremy


Hi Jeremy,



Would you mind sharing more about the scenario/business use case you're trying to fulfill? The more detail/complete you can be, the better for us to be able to point you towards the right direction.



Thanks,


Berny


Our UI page creates a webpage that combines data from multiple sources and client side scripts to display data in nice format. Essentially though, it's just a webpage containing html.



We want to pragmatically (scheduled job, etc) load that html data from server side to pass off to a third party to save as a PDF. So I'm stuck trying to load a UI page html outout from sever side code.



Thanks!