Archive for category Jquery

Solution :Print Css problem in IE8

Hi,

As a drupal developer , i always thought if i add anything in print.css it will work for all client browsers. But as expected IE8 does not work it should be. If you hide menu, header so on in your print.css using

#header, #menu {

display : none;

}

it does not work with IE8.

Solution : Just use the following library for print.css or normal css. It will work as charm.

http://code.google.com/p/html5shiv/

Advertisements

Leave a comment

jQuery Method To Prompt A User To Save Changes Before Leaving Page

var isDirty = false;

$(‘:input’).change(function(){
if(!isDirty){
isDirty = true;
}
});

$(‘a’).click(function(){
if(isDirty){
var confirmExit = confirm(‘Are you sure? You haven\’t saved your changes. Click OK to leave or Cancel to go back and save your changes.’);
if(confirmExit){
return true;
}
else{
return false;
}
}
});

ref : http://cfsilence.com/blog/client/index.cfm/2009/10/12/jQuery-Method-To-Prompt-A-User-To-Save-Changes-Before-Leaving-Page

Leave a comment

Nice Jquery tooltip

I worked with many Web project and user interface. Many time, I need some cool jquery tooltip which contains HTML content and
you can change position wherever you want.

This is the sample code and link which will reduce lots of your time to find in internet. Just follow the links.

Details of Tooltip : http://flowplayer.org/tools/demos/tooltip/any-html.html
Configuration of tooptip in jquery function : http://flowplayer.org/tools/tooltip/index.html#configuration

Download right jquery tools  js file from :http://flowplayer.org/tools/download/index.html

 

Hope this is fine enough for developer to understand and use anywhere in their project. It supported almost all major browsers ( Including IE 6 +  🙂 )

 

,

Leave a comment