Modal pop-ups feel like ugly work-arounds in web applications. They seem to be hard to manage, can have problems with pop-up blockers, and the modality can create user confusion.
What are alternatives to pop-ups for the 2 following scenarios:
A user confirmation (eg. delete confirm)
A forced user workflow (eg. user must select an image to continue)
Or if a pop-up is the best UI, is there a good library to supply it for each scenario?