locked
Error while adding marquee to sharepoint list using sharepoint designer 2007 RRS feed

  • Question

  • 

    Hi,

    I am trying to fetch data from SharePoint list and add scrolling functionality using marquee tag via SharePoint designer 2007.I am following the steps mentioned in the given below link

    http://www.infowisesolutions.com/blog/Comments.aspx?ArticleId=23

    But while doing so i.e after adding marquee object (Step six), i am getting a message of Site Defintion Page Warning" as mentioned in the given below snapshot.

    Please guide me on this.


    Wednesday, May 8, 2013 6:30 AM

Answers

  • Hi Vineet,

    I will suggest not to change the site using desginer when you have a quick and easy workaroung like jQuery.

    To fetch the data from SharePoint list, use jQuery. Below script will fetch the data , use CEWP to use this script.

    You can play around with the fetched data in any way you want to dispay:

    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.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>{F85D2336-7920-491B-B53A-4263B0DE9568}</listName> \
    						 <viewName>{44469B5B-50E3-41C6-AEBA-99696321573B}</viewName> \
    						<query><Query><Where> \
    	                <Eq><FieldRef Name='UniqueID'/> \
    	                    <Value Type='Integer'><UserID Type='Integer'/></Value> \
    	                </Eq> \
    	              </Where></Query></query> \
                            <viewFields> \
                                <ViewFields> \
                                   <FieldRef Name='OfferingID' /> \
                               </ViewFields> \
                            </viewFields> \
                        </GetListItems> \
                    </soapenv:Body> \
                </soapenv:Envelope>";
            $.ajax({
                url: "http://<your Site Url>/_vti_bin/lists.asmx",
                type: "POST",
                dataType: "xml",
                data: soapEnv,
                complete: processResult,
                contentType: "text/xml; charset=\"utf-8\""
            });
    	
        });
    	
    	
    		
        function processResult(xData, status) {	      
    	 
    		
    		$(xData.responseXML).find("z\\:row").each(function() {
               
    		   //Build your logic in jquery to dispplay marquee
    		   .
    		   .
    		   .
    		   .
    		   .
    		   .
            });
    	
    		
    		
    	
        }
    </script>

    Hope this helps.

    Regards,

    Ankur

    Wednesday, May 8, 2013 12:35 PM
  • That's to be expected.  SharePoint works in terms of page definitions, so that any change made to that definition (think template) is then passed down to any pages that use the definition.

    The customisation you're making means that this "inheritance" is broken and that any changes you may make to the site definition won't be fed down to the page that you're customising.  If you don't envisage any major updates to your site definitions, you're probably ok for this change. 

    You may want to make a note in your change control literature or site documentation so others know what you've changed.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Wednesday, May 8, 2013 10:04 AM
    Answerer

All replies

  • That's to be expected.  SharePoint works in terms of page definitions, so that any change made to that definition (think template) is then passed down to any pages that use the definition.

    The customisation you're making means that this "inheritance" is broken and that any changes you may make to the site definition won't be fed down to the page that you're customising.  If you don't envisage any major updates to your site definitions, you're probably ok for this change. 

    You may want to make a note in your change control literature or site documentation so others know what you've changed.


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Wednesday, May 8, 2013 10:04 AM
    Answerer
  • Thanks for your feedback Mr.Steven,

    I am badly stuck due this so can you just provide me any other alternate solution for fetching the data from SharePoint list and displaying it another page in marquee format using SharePoint designer 2007.

    Or is there any out-of-the box webpart which will help me in achieving the same?

    The Sharepoint version is MOSS 2007 Standard.

    Kindly waiting for your reply.

    Wednesday, May 8, 2013 10:45 AM
  • Hi Vineet,

    I will suggest not to change the site using desginer when you have a quick and easy workaroung like jQuery.

    To fetch the data from SharePoint list, use jQuery. Below script will fetch the data , use CEWP to use this script.

    You can play around with the fetched data in any way you want to dispay:

    <script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.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>{F85D2336-7920-491B-B53A-4263B0DE9568}</listName> \
    						 <viewName>{44469B5B-50E3-41C6-AEBA-99696321573B}</viewName> \
    						<query><Query><Where> \
    	                <Eq><FieldRef Name='UniqueID'/> \
    	                    <Value Type='Integer'><UserID Type='Integer'/></Value> \
    	                </Eq> \
    	              </Where></Query></query> \
                            <viewFields> \
                                <ViewFields> \
                                   <FieldRef Name='OfferingID' /> \
                               </ViewFields> \
                            </viewFields> \
                        </GetListItems> \
                    </soapenv:Body> \
                </soapenv:Envelope>";
            $.ajax({
                url: "http://<your Site Url>/_vti_bin/lists.asmx",
                type: "POST",
                dataType: "xml",
                data: soapEnv,
                complete: processResult,
                contentType: "text/xml; charset=\"utf-8\""
            });
    	
        });
    	
    	
    		
        function processResult(xData, status) {	      
    	 
    		
    		$(xData.responseXML).find("z\\:row").each(function() {
               
    		   //Build your logic in jquery to dispplay marquee
    		   .
    		   .
    		   .
    		   .
    		   .
    		   .
            });
    	
    		
    		
    	
        }
    </script>

    Hope this helps.

    Regards,

    Ankur

    Wednesday, May 8, 2013 12:35 PM
  • I've never tried it but you could try this CodePlex Web Part: -

    http://spmarquee.codeplex.com/

    It's free and works with SP2007 by the looks of it.

    It's not OOB so you'd need to get it installed on the farm


    Steven Andrews | SharePoint Professional | http://www.twitter.com/backpackerd00d | https://baron72.wordpress.com/

    Wednesday, May 8, 2013 12:36 PM
    Answerer