Force a Page Reload This will forcefully reload the current page. No jQuery needed here.
Category Archives: Programming
How to Refresh/Reload a Page using jQuery
I have seen this question asked in many forums, however the solution presented worked on selected browsers only. Here’s a solution I have tested that works on IE7, FireFox 3 and Chrome. Hopefully it should work on other browser versions as well!
Mysql utf-8 characters
mysql_query(“SET CHARACTER SET utf8”); mysql_query(“SET NAMES ‘utf8′”); mysql_query(“SET COLLATION_CONNECTION=utf8_general_ci”); mysql_query(“SET CHARACTER_SET_CLIENT=utf8”); mysql_query(“SET CHARACTER_SET_RESULTS=utf8”); [ad code=1]
Ctrl+Enter Submit Any Form
Script Summary: Ctrl+Enter submit any form Ctrl+Shift+Enter submit any form in new tab/window
Submit forms when CTRL+Enter is pressed in a textarea using jQuery
This is how we add that functionality to our websites using jQuery: $(‘textarea’).keypress(function(e){ if (e.ctrlKey && e.keyCode == 13) { $(this).closest(‘form’).submit(); } }); [ad code=4]
JQUERY – superfish menu / submenu
Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript) and adds the following much-sought-after enhancements: Suckerfish-style hover support for IE6. The class added is “sfHover” by default but can be changed via the options object, Timed delay on mouseout to be more …