Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki.
HI guys,
What I'm trying to achieve is have a nmodal popup window show when my code returns false from a function from my codebehind.
I've tried to read several forums but didn't get a clear solution.
Thanks
Dennis
The answer to this depends on what you are doing with the window. Are you trying to force a confirmation (like a delete click, this only proceeds properly if the user clicks 'yes') or are you simply informing the user of something (and don't care if they accept or not)? - Chris Paterra 9/4/2012
I coded a simple popup as follows:
<a onclick="$.dnn {text:'text',okText:'OK'})">Link text</a>
This works fine when logged in to DNN, but not as a "guest"?
Any suggestions?
You need to load the DNN Plugins script. It's already loaded when logged in(as you likely have some kind of edit permissions so some other module has loaded the functionality)In codebehind request the registration:DotNetNuke.Framework.jQuery.RequestDnnPluginsRegistration() - Andrew Walker 5 months ago
You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.