[eluser]Mike Ryan[/eluser]
You'll get better responses if you provide more information on your problem. How are you attempting to display this data to the user? Post the relevant code from your view/controller so we can see what you are trying to do.
[eluser]Phil Sturgeon[/eluser]
If you want a JS modal dialog box to pop up and set some flash data, you could set the content of the box to use an iframe to a CI controller that sets it, or experiment with AJAX.