Combining Multiple attributes in jQuery


Below are some of the code snippets available in jQuery for you to combine your multiple lines of code: Combining multiple css properties or element attributes: Statement: Set the width and height attributes for a table with id=mytable $("#mytable").attr({width:'50px',height:'40px'}); Statement: Set the css properties of width, height, background-color for a div with id=mydiv $("#mydiv").css({width:'50px',height:'40px',background-color:'#F2F2F2'}); Combining … Continue reading Combining Multiple attributes in jQuery

SharePoint Re-Deployment Bat File


A simple bat file that you can use for redeploying your WSPs: Copy the following text in a notepad and Save As 'Deployment.bat' stsadm -o retractsolution -name "ProjectA.Deployment.wsp" -immediate -url "http://localhost:2000/" stsadm -o execadmsvcjobs stsadm -o deletesolution -name "ProjectA.Deployment.wsp" stsadm -o addsolution -filename "D:\ProjectA.Deployment.wsp" stsadm -o deploysolution -name "ProjectA.Deployment.wsp" -immediate -allowgacdeployment -url "http://localhost:2000/" -force stsadm … Continue reading SharePoint Re-Deployment Bat File

How to insert newline in you excel formulae


To add a newline or a hard return in front of certain text, we try the Find & Replace option, but ends up nowhere. Instead make use of the CHAR(10), MS has provided, in your formulaes. Usage: =CONCATENATE("Heading1",CHAR(10),"Content under Heading1")   Let me take a complex example also, to get you the feel of the … Continue reading How to insert newline in you excel formulae

How to remove “Open” button from File Download Dialog options you get in your browser?


I received one client requirement sometime back asking for removing the "Open" button from the File Download popup you get when you are trying to download any file which cannot be viewed directly on the browser. Inorder to remove the "Open" button, you can make use of one of the  "meta" tags HTML has given … Continue reading How to remove “Open” button from File Download Dialog options you get in your browser?

Bat file to rename .js file to another format and back to .js


I faced a lot of issues with my mail exchange server quarantining my js files when i mail it my client. The way out of it was by renaming the .js file to .bak. But as the number of js files increased, it became a tedious process. So I thought of creating a bat file which … Continue reading Bat file to rename .js file to another format and back to .js

‘Add to Favourites’ button javascript


Here is a simple code, that i found useful from dynamicdrive. You can use for 'Add to Favourites' button in HTML. Add them in your head tag: <script type="text/javascript"> /*********************************************** * Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/Continue reading ‘Add to Favourites’ button javascript