I have jquery modal dialogs working well and executing on click events such as:
// prevent the default action, e.g., following a link
Now I'm having difficulty to get a dialogue to open when a php script does some work and then neds to spit out a 'success' dialog.
First I was thinking:
if() // Criteria
//Update the db
//DB UPDATE CODE
//Call success window
But nope, not that simple :)
Can anyone give me some pointers?
FYI - window code is loaded in prior to this script running:
var $activate = $('#activate')
title: 'Activation Successful',
And the placeholder div just after the body tags: