locked
post parametes using Window.location.href of jquery in sharepoint 2013 RRS feed

  • Question

  • hi friends

    i need to post parameters using windows.location

    how can i do that.

    please help me.

    Tuesday, May 6, 2014 6:47 AM

Answers

  • http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0bc93be6-85ea-477c-a49b-2006e0eb7616/redirect-in-sharepoint-aspx?forum=sharepointdevelopmentlegacy

    <script>window.location.href='http://prime.sharepoint.xx.com/teams/GSSTA/TA/LOAD/Lists/ISRTT%20Request%20System/ISR%20Requests.aspx'; </script>

    http://stackoverflow.com/questions/5806626/document-location-href-not-updating-onkeypress-in-sharepoint

    <script type="text/javascript">
    function mySearch() {
        var SearchString = document.getElementById("SearchBox").value;
        var url = "http://stackoverflow.com/search?q="+SearchString;
        alert(SearchString);
        document.location.href = url;
    }
    </script>
    <input id="SearchBox" onkeypress="if (event.keyCode == 13) mySearch();"/>&nbsp;
    <a id="SearchButton" href="javascript:mySearch();" />Search</a>

    • Marked as answer by JasonGuo Monday, May 19, 2014 2:23 AM
    Tuesday, May 6, 2014 7:24 AM