Friday, May 24, 2013

Javascript Button with two redirect..

<input type="button" value="Submit" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={http://sharepoint.apps.anz/teams/CFX_OTS/ThankYou.htm}')}" />

Sharepoint hide URL and show only the title in HTML

<script type="text/javascript"> 
// Text to HTML 
// Feedback and questions: Christophe@PathToSharePoint.com 
var theTDs = document.getElementsByTagName("TD"); 
var i=0; 
var TDContent = " "; 
while (i < theTDs.length) { 
try {  TDContent = theTDs[i].innerText || theTDs[i].textContent; 
if ((TDContent.indexOf("<div") == 0) && (TDContent.indexOf("</div>") >= 0)) { 
theTDs[i].innerHTML = TDContent;  }} 
catch(err){} 
i=i+1;  } 
// ExpGroupRenderData overwrites the default SharePoint function 
// This part is needed for collapsed groupings 
function ExpGroupRenderData(htmlToRender, groupName, isLoaded) { 
var tbody=document.getElementById("tbod"+groupName+"_"); 
var wrapDiv=document.createElement("div"); 
wrapDiv.innerHTML="<TABLE><TBODY id=\"tbod"+ groupName+"_\" isLoaded=\""+isLoaded+ "\">"+htmlToRender+"</TBODY></TABLE>"; 
var theTBODYTDs = wrapDiv.getElementsByTagName("TD"); var j=0; var TDContent = " "; 
while (j < theTBODYTDs.length) { 
try { 
TDContent = theTBODYTDs[j].innerText || theTBODYTDs[j].textContent; 
if ((TDContent.indexOf("<div") == 0) && (TDContent.indexOf("</div>") >= 0)) { 
theTBODYTDs[j].innerHTML = TDContent;  }  } 
catch(err){}  j=j+1;  }  tbody.parentNode.replaceChild(wrapDiv.firstChild.firstChild,tbody);  } 
</script>

Tuesday, March 12, 2013

Beware!!



By far, the most searched for terms on the internet are related to pornography. Pornography is rampant in the world today. Perhaps more than anything else, Satan has succeeded in twisting and perverting sex. He has taken what is good and right (loving sex between a husband and wife) and replaced it with lust, pornography, adultery, rape, and homosexuality. Pornography can be the first step on a very slippery slope of ever-increasing wickedness and immorality (Romans 6:19). The addictive nature of pornography is well documented. Just as a drug user must consume greater and more powerful quantities of drugs to achieve the same “high,” pornography drags a person deeper and deeper into hard-core sexual addictions and ungodly desires.

The three main categories of sin are the lust of the flesh, the lust of the eyes, and the pride of life (1 John 2:16). Pornography definitely causes us to lust after flesh, and it is undeniably a lust of the eyes. Pornography definitely does not qualify as one of the things we are to think about, according to Philippians 4:8. Pornography is addictive (1 Corinthians 6:12; 2 Peter 2:19), and destructive (Proverbs 6:25-28; Ezekiel 20:30; Ephesians 4:19). Lusting after other people in our minds, which is the essence of pornography, is offensive to God (Matthew 5:28). When habitual devotion to pornography characterizes a person’s life, it demonstrates the person is not saved (1 Corinthians 6:9).

For those involved in pornography, God can and will give the victory. Are you involved with pornography and desire freedom from it? Here are some steps to victory: 1) Confess your sin to God (1 John 1:9). 2) Ask God to cleanse, renew, and transform your mind (Romans 12:2). 3) Ask God to fill your mind with Philippians 4:8. 4) Learn to possess your body in holiness (1 Thessalonians 4:3-4). 5) Understand the proper meaning of sex and rely on your spouse alone to meet that need (1 Corinthians 7:1-5). 6) Realize that if you walk in the Spirit, you will not fulfill the lusts of the flesh (Galatians 5:16). 7) Take practical steps to reduce your exposure to graphic images. Install pornography blockers on your computer, limit television and video usage, and find another Christian who will pray for you and help keep you accountable.


Read more: http://www.gotquestions.org/pornography-Bible.html#ixzz2NO3KrliN

Monday, February 11, 2013

Sharpeoint internal names display..

<select id="spLists" onchange="displayFieldData(this.options[this.selectedIndex].value)"/>
<div id="spListsSelected"></div>
<table id="spListFieldTable" cellpadding="0" cellspacing="0" style="width: auto"></table>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
var siteURL = 'http://' + window.location.host + L_Menu_BaseUrl + '/_vti_bin/lists.asmx';
$(document).ready(function(){
 var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
     <soap:Body> \
     <GetListCollection xmlns='http://schemas.microsoft.com/sharepoint/soap/' /> \
     </soap:Body> \
     </soap:Envelope>";
 $.ajax({
  url: siteURL,beforeSend: function(xhr) {
   xhr.setRequestHeader("SOAPAction",
   "http://schemas.microsoft.com/sharepoint/soap/GetListCollection");
  },
  type: "POST",
  async: false,
  dataType: "xml",
  data: soapEnv,
  complete: processResult,
  contentType: "text/xml; charset=\"utf-8\""
 });
});
function processResult(xData, status) {
 $("#spLists").append("<option>Select a List</option>");
 $(xData.responseXML).find("List").each(function() {
 var liHtml = "<option value='" + $(this).attr("Title") + "'>" + $(this).attr("Title") + "</option>";
 $("#spLists").append(liHtml);
 });
}
function displayValue(splistname) {
 $("#spListsSelected").text(splistname);
}
</script>
<script type="text/javascript">
var arrSkipFieldTypesOf = ['Computed'];
var arrIncludeOverrideFields = ['Title','Author','Created','Modified','Editor'];
function displayFieldData(listname) {
 if(listname == "" || listname == undefined) return false;
 var soapEnv = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> \
     <soap:Body> \
     <GetList xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
     <listName>" + listname + "</listName> \
     </GetList> \
     </soap:Body> \
     </soap:Envelope>";
 $.ajax({
  url: siteURL,
  beforeSend: function(xhr) {
  xhr.setRequestHeader("SOAPAction",
  "http://schemas.microsoft.com/sharepoint/soap/GetList");
  },
  type: "POST",
  async: false,
  dataType: "xml",
  data: soapEnv,
  complete: processResult2,
  contentType: "text/xml; charset=\"utf-8\""
 });
}
function processResult2(xData, status) {
 $("#spListFieldTable tr").remove();
 $("#spListFieldTable").append("<tr style='font-weight:bold;'><td style='padding-right:10px'>DisplayName</td><td style='padding-right:10px'>FieldInternalName</td><td style='padding-right:10px'>FieldType</td></tr>");
 $(xData.responseXML).find("Field").each(function() {
  if (($.inArray($(this).attr('Name'),arrIncludeOverrideFields)>-1) || ($(this).attr('FromBaseType')!='TRUE' && $(this).attr('Sealed')!='TRUE' && $(this).attr('DisplayName')!=undefined && $.inArray($(this).attr('Type'),arrSkipFieldTypesOf)==-1)) {
   var trHtml = "<tr>";
   trHtml += "<td style='padding-right:10px'>" + $(this).attr("DisplayName") + "</td>";
   trHtml += "<td style='padding-right:10px'>" + $(this).attr("Name") + "</td>";
   trHtml += "<td style='padding-right:10px'>" + $(this).attr("Type") + "</td>";
   trHtml += "</tr>";
   $("#spListFieldTable").append(trHtml);
  }
 });
 $("#spListFieldTable tr:odd").css("background-color","rgb(206,206,206)");
}
</script>

Sunday, January 27, 2013

New Year!! Got to do something!!


Romans 9:1-5
Paul says in v.2, “I have great sorrow and continual grief in my heart.” The heart of Paul is laid bare in the opening of chapter 9. “Sorrow” is from a word (lupe) that often refers to the grief & sorrow of loosing a loved one.
“Grief” is from a word (odune) that refers to consuming grief, pain, sorrow. It is from a word that is used of the setting of the sun.
Have you ever felt your heart Sink when you heard some bad news about someone you cared about?
The intensity of this pain and sorrow is indicated in v.2 by the words “great” and “continual”.
“For I could wish that I myself were accursed from Christ for my brethren, my countrymen according to the flesh V.3  Self Sacrifice
Churches not responsible?
Youngsters.. Who can actually approach the youngsters? How are youngsters responsive to oldies? How do they react to the elders? What is their response to even middle aged groups?
Who are they best fit with? Same age group? What is their mental maturity level? Will they be able to respond positively to a negative situation of their friend or does it take a little bit more maturity?
Who will mould a slightly more mature friend to the younger society? To pull out a thorn do we need a needle?
Love your neighbour.... as what??
Bangalore is the Suicide capital.
On an average, around 80-100 callers seek counselling through suicide helplines every day.  - Source: IBNLive.in
Times of India / Deccan Herald
2,167 suicides in 2009,
1,778 suicides in 2010. (134,599 in India)
 
The number shot up dramatically in 2011, getting Bangalore the tag of the suicide capital. 
2012 in six months, cops have recorded a minimum of two cases everyday.
According to the National Crime Records Bureau, Bangalore is followed closely by Chennai (1,325), Delhi (1,242) and Mumbai (1,192).Study by the National Institute of Mental Health and Neurosciences (Nimhans), Bangalore,
says 10 per cent of suicides in Bangalore is by youngsters between 10 and 14 years.
Source: news.oneindia.in
The study - published in the Lancet medical journal on Friday - says suicide rates are highest in the 15-29 age groups, peaking in southern regions that are considered richer and more developed with better education, social welfare and health care.
Source: NDTV.com
--- Take up a mission will ya?
Fantastic SMS I read!!
Jacob was a cheater,
Peter had a temper,
David had an affair,
Noah got drunk,
Jonah ran from God,
Paul was a murderer,
Miriam was a gossiper,
Joseph was a dreamer,
Martha was a worrier,
Gideon was insecure,
Thomas was a doubter,
Sarah was impatient,
Elijah was depressed,
Moses stuttered,
Zacheus was short,
Abraham was old
and Lazarus was dead.
God doesn't call the qualified, He qualifies the called  (now what’s your excuse?)
adding to them
Baalam was greedy but Donkey Spoke
Bartimaeus was blind but waited to glorify the Lord
Ruth was a widow, Rahab was a harlot but found place in heroes of faith in Heb 11
You are wanted....How long will you eat and fatten your self? The Gardener pleaded to let the tree live for just another year. it may give fruit. He dug the sides / added more of required minerals and fertilizers/ poured more watered. Cut of / trimmed all branches and Pruned and waited........yet another year!!! God Bless you!!

Sunday, January 06, 2013

Sharepoint Search between two dates

Searching between two dates in a list.
this is not a default view in 2003.
there are links that enable and help is understanding more about it.

in simple terms. Create 2 text boxes in form
and name them start date and end date

create parameter in data view  for start date and end date

create filter for start date and end date

set default value for start date as 1500-01-01

default value for end date as 3500-01-01 - this will display all items

connect the boxes and use the format as yy-mm-dd else it wont work
important references:


http://yanlinglei.blogspot.in/2010/02/filter-between-two-dates-using-dataview.html

http://yanlinglei.blogspot.in/2008/11/filter-between-two-dates-date-range.html


http://social.technet.microsoft.com/Forums/eu/sharepointadminlegacy/thread/a8cce2af-3900-4421-8fc0-91d9adc315ad

datepicker() modified as
datepicker({ dateFormat: 'yy-mm-dd'});

http://docs.jquery.com/UI/Datepicker/formatDate

http://stackoverflow.com/questions/7500058/how-to-change-date-format-mm-dd-yy-to-yyyy-mm-dd-in-date-picker


Text boxes sample - form webpart
------------------

<div onkeydown="javascript:if (event.keyCode == 13) _SFSUBMIT_">
<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="jquery-ui.css" />
    <script src="jquery-1.8.3.js"></script>
    <script src="jquery-ui.js"></script>
    <link rel="stylesheet" href="style.css" />
  
 <script>
   $(function()
     {
     $( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd'});
     $( "#datepicker1" ).datepicker({ dateFormat: 'yy-mm-dd'});
     });
    </script>
</head>
Start Date: <input type="text" name="T1" id="datepicker" />
End Date : <input type="text" name="T2" id="datepicker1" /><input type="button" value="Go" onclick="javascript:_SFSUBMIT_"/>
</div>
</html> 

Followers

No Locks without Key

🌿 Bible Verse 1 Corinthians 10:13 "No temptation has overtaken you except what is common to mankind. And God is faithful; ...

Who Am I?

My photo
What is mankind that you are mindful of them, human beings that you care for them? Psalms 8:4 But he made us a little lower than Angels and Crowned with Glory and Honor. How majestic is your name in all the Earth Oh Lord our God!