• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Cold Fusion PDF Generation of Asynchronous HTML File

New Here ,
Feb 23, 2015 Feb 23, 2015

Copy link to clipboard

Copied

I have a report that is generated through various JavaScript asynchronous requests. We are now required to produce a PDF, save it on the server and email that report to the user using Cold Fusion. When generating PDF, Cold Fusion makes an HTTP request for the page to be printed and waits for a 200 response.

The problem is the 200 response is received before all the async requests are fulfilled. Apart from rewriting the report page entirely in ColdFusion, any ideas as to how to accomplish this? That is, wait for all the async requests to be fulfilled prior to generating a PDF to be saved and emailed.

Thanks!

TOPICS
Advanced techniques

Views

413

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 18, 2015 Mar 18, 2015

Copy link to clipboard

Copied

LATEST

There is a contradiction in terms in what you require. Waiting for all requests to be fulfilled prior to generating a PDF implies a synchronous request, not an asynchronous one.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation