Wednesday, February 29, 2012

Article 4: Redirect to URL using Jquery – SPServices


Open your site and add content editor to any page, then copy code here to HTML Content (change path to jquery-1.4.2.min.js and jquery.SPServices-0.5.4.min.js). package jquery can download at here


<script language="javascript" type="text/javascript" src="../../Shared Documents/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="../../Shared Documents/jquery.SPServices-0.5.4.min.js"></script>
<script type="text/javascript" language="javascript">
var redirectLink = "Default.aspx"
$(document).ready(function() {
$().SPServices.SPRedirectWithID({
redirectUrl: redirectLink;
});
});
</script>

1 comment:

  1. Үou гeally makе it seеm гeallу
    eаsу alоng with yοuг presentation
    but Ӏ to finԁ thіѕ tоpiс tо be гeally one thіng that I feel Ι might bу no mеanѕ understand.
    It ѕort οf feelѕ too compleх
    аnԁ eхtremеly bгoad foг me.
    I am haνіng а loоk fоrwaгd in your next ρut up, I wіll attempt tо gеt thе holԁ of
    іt!
    my webpage :: shorten link

    ReplyDelete