Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
2 votes
Accepted

How to wait for a VisualForce script to execute when calling it from an Apex method via PageReference?

When you call PageReference.getContent() like this, it only loads the emitted HTML from Visualforce. You're not in a browser environment, so Apex can't run the JavaScript. You've already outlined two ...
sfdcfox's user avatar
  • 493k

Only top scored, non community-wiki answers of a minimum length are eligible