Load UI page HTML via server side

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 06:24 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 06:51 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 06:59 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 07:04 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 07:12 PM
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!