I am having problem in using this plugin as i,am saving each of my message is Global variable and want to call the jquery function with that message on each transaction, that is added, edited, deleted. Here is what i do on sucessful event
$GLOBALS['info_message']="Record Deleted Sucessfully";
$loc = $request->homeURL.'dashboard.php?message='.$GLOBALS['info_message'];
header("Location: $loc");
but i want to display that message(in url) via this jquery function
$("a").click(function(e){
e.preventDefault();
switch ($(this).attr('class'))
{
case 'success' : jSuccess('Congratulations, a success box !!',{
VerticalPosition : 'center',
HorizontalPosition : 'center'} );
break;
case 'notice' : jNotify('Notification : <strong>Bold</strong> !'); break;
case 'error' : jError('ERROR : please retry !'); break;
}
});
(ofcourse not on click function) for each of error, sucess and notice respectively. How can i implement This functionality.