Thursday, April 23, 2015
jQuery BBQ: Back Button & Query Library
http://benalman.com/projects/jquery-bbq-plugin/
Monday, July 15, 2013
Example on how to use dnnConfirm jQuery Plugin
//initialization
$(".my-Button").dnnConfirm({
text: "Confirm Message",
title: "Confirm",
isButton: true
});
//button click handler
$(".my-Button").click(function (e, isTrigger) {
if (isTrigger) {
// Your code here
}
return false;
});
Friday, May 24, 2013
Another way implementing dnnConfirm
// Delete review button
$(".Delete-Button").dnnConfirm({
text: "Confirm Message",
title: "Confirm Title",
isButton: true
});
$(document).delegate(".Delete-Button", "click", function (e) {
if (e.isTrigger) {
//Your code here
}
return false;
});
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
$.ajax({ url: surl, dataType: 'json' }).done(function (data) { });
use
$.ajax({ url: surl, dataType: 'json', cache: false }).done(function (data) { });
HTH
Wednesday, August 1, 2012
How to prevent page scroll when showing jQuery Dialog
$( ".selector" ).dialog({ open: function(event, ui) { jQuery("#Body").css("overflow", "hidden"); }, close: function () { jQuery("#Body").css("overflow", "auto"); } });
Sunday, March 21, 2010
Upgrade DNN Label Control
This script will upgrade the look and feel of DotNetNuke label control. Instead of hiding/showing the help element of the label it will show it as tooltip using jQuery Tools Tooltip. Its pretty cool, you can even add some fancy style to your tooltip window. Copy the script below to your page, Be it in skin, Header/Footer setting of your module or anywhere you want. Then hover in any of the ? icon beside your label and see the difference.
I have no running sample for now, but I will update this post as soon as i got one.
Thanks,
v
Monday, January 11, 2010
Simple Color Picker - a jQuery color picker control
It's been a while since I build this small plugin for jQuery, While browsing through my files I try to see if this plugin still works with the latest version of jQuery which is 1.3.2 and it did. I have updated the sample and change the file names so it is easy to recognize. I also move the downloads to my google site, Download here.
Focus on the input box below or click on the box next to the control to show color picker.
Basic Sample
jQuery(function($) {
$("#vtrColorPicker").attachColorPicker();
});
Change Background
jQuery(function($) {
$("#vtrColorPicker1").attachColorPicker();
$("#vtrColorPicker1").change(function() {
$("#content-wrapper").css("background-color",$("#vtrColorPicker1").getValue());
});
Friday, December 4, 2009
Auto hide element using jQuery
Script
Demo
Refresh page to view again. Click here to download the script.
Friday, August 14, 2009
Grouping radio buttons the jQuery way.
Color:
Favorite:
Users:
Or
Groups:
All you need to do is use the same value for the GroupName attribute of your radio buttons.
Then insert the script below into your page:
<script language="javascript" src="http://vreboton.googlepages.com/jquery-1.3.2.min.js"></script>
<script language="javascript" src="http://vreboton.googlepages.com/jquery.vreboton.UniqueRadioButton.js"></script>
Thursday, March 12, 2009
Show element in full screen using jQuery
(function($){
$.fn.ShowElementInFullScreen = function() {
return this.each(function(){
$(this).parents().each(function(i){$(this).siblings().hide()});
});
};
})(jQuery);
After inserting the code above to your page you can now call the function using the code below.
jQuery('#YourElementId').ShowElementInFullScreen();
Show only the content of this entry. Hide the rest.
Show Me Reload Entry
Thanks,
v