Export to GitHub

phantomjs - issue #552

Callback from render


Posted on May 21, 2012 by Quick Horse

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'. 1.5.0

What steps will reproduce the problem? 1. call render(output, function(){console.log(0)}) 2. get the callback function called

What is the expected output? What do you see instead?

Calling function passed as callback, displaying 0 in the console.

Which operating system are you using?

Any.

Did you use binary PhantomJS or did you compile it from source?

Binary and compiled.

Please provide any additional information below.

It would be nice to have a possibility to pass callback function to render() and get it called after the rendering is complete.

Comment #1

Posted on May 22, 2012 by Quick Rabbit

Unfortunately this can't be implemented at all due to the technical difficulties (with the current backend). Rendering is a synchronous process, it will block everything until it completes. Therefore, there is no need for such a callback.

Comment #2

Posted on Mar 16, 2013 by Happy Horse

This issue has been moved to GitHub: https://github.com/ariya/phantomjs/issues/10552

Status: WontFix

Labels:
Type-Defect Priority-Medium