Thursday, November 27, 2008

Publish Source code in Blogger

In the blogger,Click on Layout tab ->Edit HTML and put following things Before </head>

<link href='http://syntaxhighlighter.googlecode.com/svn/trunk/Styles/SyntaxHighlighter.css' rel='stylesheet' type='text/css'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js'/>
<script language='javascript' src='http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js'/>


2. put following things Before </body>

<script language="javascript">
dp.SyntaxHighlighter.BloggerMode();
dp.SyntaxHighlighter.HighlightAll('code');
</script>


3. Convert your code using any WYSISYG editor (Paste in editor and copy html view of editor)

OR

Copy your code in notepad and replace all < in &lt; etc.

4. Put your updated code between:
<pre name="code" class="Cpp">
….My code here…
</pre>

SharePoint workflow development links from various sites.

Introductory material - things you should know before opening Visual Studio :

SharePoint Workflow - Workflow Basics (Training course)

SharePoint Workflows - How to collect feedback for a file (Training Course)

Introduction to workflows - Windows SharePoint Services (Introductory article)

Intermediate and advanced resources

MSDN - Delivering Modular SharePoint workflow functionality (Part 1 of 2)

MSDN - Delivering Modular SharePoint workflow functionality (Part 2 of 2)

SharePoint Workflow Resource Center - here you will find technical articles, developer documentation, multimedia presentations, blog entries, and download content to support the Workflow functionality in Office SharePoint Server 2007.

Developer introduction to Workflows for Windows SharePoint Services 3.0 and SharePoint Server 2007
MSDN Magazine - Build workflows to capture data and create documents

Developing workflow solutions with SharePoint Server 2007 and Windows Workflow Foundation

MSDN - Visual How to - Guide to SharePoint sequential workflows with Visual Studio 2008

MSDN - Visual How to - Building an Expense Report Approval Workflow for SharePoint Server 2007 using Visual Studio 2008


MSDN - Visual How to - Building simple custom approval workflows with InfoPath 2007

MSDN - Visual How to - Building state machine document approval for SharePoint Server 2007 using Visual Studio 2008

Get the selected text using Javascript

Sometimes you want to know what text the user has selected with their mouse. The below function is used to get the selected text into text area. Place the follwoing code in the head section of html

function getSelText()
{
var txt = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
}
else
return;
document.aform.selectedtext.value = txt;
}


call this function in the button click event or where ever you want.

<input type="button" value="Get selection" onmousedown="getSelText()"><form name=aform ><textarea name="selectedtext" rows="5" cols="20"></textarea>