What are ProcessImn() and ProcessImnMarkers() functions in sharepoint

ProcessImn() and ProcessImnMarkers() are the functions which can be used to alert the sharepoint user for presence of active-x controls.
These are used for displaing Active-X controls warning to the users.
If we want to disable this we have to do some work around.
The actual code will look like this in init.js file, which can be found in Templates\Layouts\1033

function ProcessImn() 
    if (EnsureIMNControl() && IMNControlObj.PresenceEnabled) 

function ProcessImnMarkers() 
     for (i=0;i<imnMarkerBatchSize;++i) 
        if (imnCount==imnElemsCount) 

If we develop any internet facing website and if we want to disable the message to the user for allow active-x controls then you have to comment all these lines.
Now search for the function ProcessDefaultOnLoad() in the same file (init.js).
Now comment the ProcessImn() function. Now execute. Warning will no more display.

Reference from Microsoft


Me & My SharePoint [FrontEnd]

Just as I wrote in my last blog post I like to collect pieces of code snippets. Sooner or later I’ll found them useful and they could save time and other efforts. My intention with this post is just to share a couple of my snippets and I hope that you’ll found something useful here.

PowerShell is a command-line scripting tool that provides an administrator full access to applicable application programming interfaces (APIs), along with the ability to unlock the capability to interact directly with SharePoint 2010 Products to manipulate Web applications, site collections, sites, lists and much more. So what’s a useful thing to do with PowerShell as a SharePoint brander or a front end developer? Well, there are a lot of different types of tasks you can use PowerShell to, for example populate a list with a large amount of objects when you need to performance test your…

View original post 458 more words

Get List Items using Jquery in sharepoint


Today I struggled a lot to find the solution to retrieve items from a list in sharepoint using jquery. Finally got solution.

I have one List called City. It contains following fields.


Now I want to retrieve items in this list into home page by using content editor webpart by using jquery. For this following are the steps.

1. First link the jquery library and spservices library to your script file.

2. Prepare a query based on the lists.asmx service for GetListItems function to get the data as per your requirement.

3. Call the ajax function. Following is the entire code.

<script type="text/javascript" src="_layouts/jquery-1.8.2.js"></script>
<script type="text/javascript" src="_layouts/jquery.SPServices-0.7.1a.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        var soapEnv = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \
                <soapenv:Body> \
                     <GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'> \
                        <listName>City</listName> \
                        <viewFields> \
                            <ViewFields> \
                               <FieldRef Name='Title' /> \
                           </ViewFields> \
                        </viewFields> \
                    </GetListItems> \
                </soapenv:Body> \
            url: "http://sp2010:8080/personal/Inclusions/_vti_bin/lists.asmx",
            type: "POST",
            dataType: "xml",
            data: soapEnv,
            complete: processResult,
            error : callError,
            contentType: "text/xml; charset=\"utf-8\""
    function processResult(xData, status) {
        $(xData.responseXML).find("z\\:row").each(function() {
            var liHtml = "<li><a href='#'>" + $(this).attr("ows_Title") + "</a></li>";
        });   }
    function callError(jqXHR, textStatus, errorThrown){   alert(errorThrown); }

    <marquee direction='up' behavior='scroll' style="height:100px" onmouseover= "this.stop();" onmouseout="this.start();"><ul id="tasksUL"/></marquee>

4. Now upload this .js file into shared documents or any other documents list.


5. Now link that .js file into content editor webpart as follows.


6. Now click on ok. Now you can see in the content editor webpart the list items are scrolling(marquee effect). The useful area of this .js file is, to show the any upcoming events in home page. We dont need to go for visual studio to develop this. Just we should aware of  javascript and jquery.

Glance at Search

Search In sharepoint 2010

What we can search in sharepoint?

Following is answer

1. Structured information
• List Data
• Line of business
• User profiles
2. Unstructured information
• Documents
• Website
• Exchange
• Lotus notes

Sharepoint foundation 2010 gives

  • Basic search within site collections
  • No external data sources
  • Simple and automatic configuration

Search Server express 2010

  • Installable on SPF2010
  • Search center for multiple content sources
  • External content sources
  • Single application server.

Search Server 2010

  • Same as Search server express 2010 but allows scalability and redundancy with multiple application servers

Sharepoint Server 2010

  • Same as search server 2010
  • People search supports user profiles and my sites
  • Faceted search with managed metadata(refinements).
  • Allows multi tenant hosting environments.

Fast Search server 2010 for sharepoint

  • Maximum scalability
  • More customization options for user experience
  • Improved support for multimedia and video support
  • Sophisticated and customizable content processing engine.

What’s new in 2010 regarding search:

  • Search center improvements
  • Revamped architecture as service application.
  • Managed metadata search refinement
  • Mobile search
  • Integration with windows desktop search
  • More powerful query syntax.
  • Improved relevancy formulas with click through relevancy.
  • Improved administration
  • Monitoring and reporting

There are three search centers available in sharepoint 2010.

1. Basic search center

2. Enterprise search center (Sharepoint server publishing infrastructure must be activated)

3. Fast search center (Sharepoint server publishing infrastructure must be activated)