Tuesday, September 18, 2012

dnnAlert and dnnConfirm jQuery Plugin

I like the idea of using jQuery Plugins in DNN for interactive and consistent user interface which is why I digg into using dnnAlert and dnnConfirm plugins, however after a quick look on the documentation I notice the following.

For dnnAlert you can't set the title. We are allowed to set the OK button text using okText option but not the dialog title?

For dnnConfirm. This is very usefull when you just want a confirmation dialog upon click on your button or link however you can't use it like javascript confirm function or at least I don't know how to use it like below:

if(confirm('Question?')){//some code}

Tuesday, September 11, 2012

jQuery AJAX Cache Issue with IE

If you are having issue with jquery ajax api in IE where it keeps returning the same set of results over and over again. set cache option to false. So for example instead of using

$.ajax({ url: surl, dataType: 'json' }).done(function (data) { });


$.ajax({ url: surl, dataType: 'json', cache: false }).done(function (data) { });


Monday, September 10, 2012

Hide New Message Count in DotNetNuke Profile Link

If you use a custom messaging module in dotnetnuke and don't want to see the new message count from DNN built in Messaging Module set dnnUSER skin object ShowUnreadMessages property to false.

<dnn:USER runat="server" id="dnnUSER" CssClass="register" ShowUnreadMessages="false" />