Monday, 8 July 2013

Cross Browser CSS

Import css_browser_selector.js in your head section css_browser_selector.js Internet Explorer - yellow Internet Explorer 7 - orange Gecko Engine on Windows (Firefox, Mozilla, Camino) - red Gecko Engine on Linux (Firefox, Mozilla, Camino) - pink Gecko Engine on Other OS (Firefox, Mozilla, Camino) - gray Opera - green Konqueror - blue Safari - black Chrome - cyan Example <html>  <head>     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>    ...
Read More

Friday, 14 June 2013

Find Mime Type Of a file in java

import java.io.File; import javax.activation.MimetypesFileTypeMap; public class TestMimeType { public static void main(String[] args) { String fileName = "C://bunny.mp4"; MimetypesFileTypeMap mimeTypesMap = new MimetypesFileTypeMap(); // only by file name String mimeType = mimeTypesMap.getContentType(fileName); // or by actual File instance File file = new File(fileName); mimeType = mimeTypesMap.getContentType(file); System.out.println(mimeType); } } ...
Read More

Thursday, 6 June 2013

Iterate Java Map Through Javascript

for (var i = 0, keys = Object.keys(a_hashmap), ii = keys.length; i < ii; i++)  {       console.log('key : ' + keys[i] + ' val : ' + a_hashmap[keys[i]])...
Read More

Thursday, 30 May 2013

Read Only Checkbox Jquery

<input type="checkbox" checked="true" onclick="return false"/&g...
Read More

Wednesday, 29 May 2013

Iterate Java Map Using Jquery

 $.each(data., function(key, value) {                             alert(key);           }...
Read More

Blogger

Related Posts Plugin for WordPress, Blogger...