Monday, March 26, 2012

Pass and Get parameter in Html

You can pass parameters in html file as below

<a href='test.html?foldername=red&imagename=1">Click Here</a>

Here red is folder name and 1 is image name.

How to retrieve the parameters in html


<script type="text/javascript">

var query = location.href.substring((location.href.indexOf('?')+1), location.href.length);
if(location.href.indexOf('?') < 0) query = '';
querysplit = query.split('&');
query = new Array();

for(var i = 0; i < querysplit.length; i++){
var namevalue = querysplit[i].split('=');
namevalue[1] = namevalue[1].replace(/\+/g, ' ');
query[namevalue[0]] = unescape(namevalue[1]);
}


</script>

Or you can download the html file Click Here

Friday, March 9, 2012

Add Copy To and Move To in Context Menu

Sometimes you need to copy some files in a particular folder this is irritating when you need to do it too frequently. For copy and move you can add item in Context menu like..


To Add Copy To Download

To Remove Copy To Download


To Add Move To Download


To Remove Move To Download

Friday, March 2, 2012

Customize Context Menu

If you want to add some items in windows context menu. You need to edit registry.

Following step will guide you to add Notepad++( or other program) in your context menu. You can add another item as well.

1. Press Window Key + R
2. Type regedit and press enter.
3. Go to this path in registry and expand.

HKEY_CLASSES_ROOT\*\shell

4. Right Click on Shell and Add a Key here


5. Rename it with your convenient name


6. Add another key here and rename it as command.


7. It will look as below after adding the key.



7. Double click on Default on Right side pane. And you will see following dialogue.


8. Paste your exe path in the text box and %1 also. It indicates that open that file on which user has right clicked.

I have paste this path. Your exe path may be different.

D:\RND Data\Imp Soft\NotePad++\notepad++.exe %1


9. Now click on Ok and "Open with Notepad++" added in your context menu.


Or you can simply download this file. Open it in Notepad. Change your exe path and item name, in this file item name is "Open with Notepad++" and exe path is "D:\RND Data\Imp Soft\NotePad++\notepad++.exe".

Followers

Link