Link to home
Start Free TrialLog in
Avatar of MJ
MJFlag for United States of America

asked on

Best way to retry request?

I have the following code
var doubleClickTags = _satellite.getVar("DoubleClick Floodlight Tags Array") || [];

Open in new window

The issue is I can't figure out how to delay the code if there is nothing returned. I want to delay a second and then try again before proceeding in my code. Looking for an elegant solution.

Thanks,!
ASKER CERTIFIED SOLUTION
Avatar of sudheeshthegreat
sudheeshthegreat

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MJ

ASKER

Hi sudheeshthegreat,
No I have not? Not sure how that works?