Category: Standards

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 ...

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 ...

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 ...

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 ...

‘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/ ...

Grouping inside dropdown
Grouping inside the dropdown list is normally misunderstood by developers for a long time. The required outcome is shown below: To get an output like this on a dropdown, it is not good to add a new item in the dropdown and then add validations for not selecting that option. The solution to this problem ...

HTML 5: Part 1 – Getting Started
Hola Amigos! Before i work with the elephant in the room; lemme tell you HTML 5 specs aint REC ready (Candidate Recommendation - W3C stage for stamping the spec to be ready for use). If Apple dint care waiting for 802.11g spec to stabilize for use in their products...then why should we.. 😉 ..jsssst kidding ...

Convert ‘\\’ to ‘\’ in c#
This post would sound pretty weird to any c# developer. However, a situation i had been in last week forced me to bring this into notice. I had an XML file in which i had node values like 'Requirements Management\XYZ'. I read the XML using XLinq and the c# string looked like 'Requirements Management\\XYZ'. At ...