locked
Page refresh to Anchor RRS feed

  • Question

  • Hi there,

    We are using MOSS 2007,  I created a standard page with an anchor of #currentqm, is there an easy way to have the page Auto Refresh every 300 seconds and reload to the anchor i.e http://intranet.mysite.com/ops/qm.aspx#currentqm ?

    Thanks,

    Chris
    • Moved by Mike Walsh FIN Monday, July 13, 2009 5:04 AM prog q (From:SharePoint - General Question and Answers and Discussion)
    Monday, July 13, 2009 1:49 AM

Answers

  • Hi, Chris

     

      It seems that you need to Refresh or Redirect to your page with anchor flag.

     

      When we talk about Refresh/Redirect automatically, using JS can be a solution.

     

     

      JS like this:

     --------------------------------------------------------------------

     <script type="text/javascript">    

         setTimeout("location.href= your url#currentqm’",5000)  

     </script>

     --------------------------------------------------------------------

     

     You can edit your page with SharePoint Designer(SPD),and if you are using master page, you need to add js function in placeholder

     

    PlaceHolderAdditionalPageHead:

     

    ---------------------------------------------------------------------

    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">

              <META Name="CollaborationServer" Content="SharePoint Team Web Site">

             <script type="text/javascript">     

                setTimeout("location.href='default.aspx#aa'",5000)  

              </script>

    </asp:Content>

    ---------------------------------------------------------------------

     

    Hope this can help.

     

    Best Regards,

     

     -Aaron

    • Proposed as answer by Dave Hunter Wednesday, July 15, 2009 9:37 AM
    • Marked as answer by Aaron Han - MSFT Tuesday, July 21, 2009 7:48 AM
    • Unmarked as answer by Downsc Saturday, March 6, 2010 8:03 AM
    • Marked as answer by Downsc Saturday, March 6, 2010 8:03 AM
    Wednesday, July 15, 2009 5:06 AM

All replies

  • Moving to Programming. Not a General question.
    WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
    Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx
    Monday, July 13, 2009 5:04 AM
  • Hi, Chris

     

      It seems that you need to Refresh or Redirect to your page with anchor flag.

     

      When we talk about Refresh/Redirect automatically, using JS can be a solution.

     

     

      JS like this:

     --------------------------------------------------------------------

     <script type="text/javascript">    

         setTimeout("location.href= your url#currentqm’",5000)  

     </script>

     --------------------------------------------------------------------

     

     You can edit your page with SharePoint Designer(SPD),and if you are using master page, you need to add js function in placeholder

     

    PlaceHolderAdditionalPageHead:

     

    ---------------------------------------------------------------------

    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">

              <META Name="CollaborationServer" Content="SharePoint Team Web Site">

             <script type="text/javascript">     

                setTimeout("location.href='default.aspx#aa'",5000)  

              </script>

    </asp:Content>

    ---------------------------------------------------------------------

     

    Hope this can help.

     

    Best Regards,

     

     -Aaron

    • Proposed as answer by Dave Hunter Wednesday, July 15, 2009 9:37 AM
    • Marked as answer by Aaron Han - MSFT Tuesday, July 21, 2009 7:48 AM
    • Unmarked as answer by Downsc Saturday, March 6, 2010 8:03 AM
    • Marked as answer by Downsc Saturday, March 6, 2010 8:03 AM
    Wednesday, July 15, 2009 5:06 AM