Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SP2007 $().SPServices Undefined

$
0
0
I'm running out of ideas...

Question: is your _$(document).ready() wrapped in a closure? like this:
;(function($){
    $(document).ready();
})(jQuery);
My last attempt... Since I don't have access to your env., try this which will print out some data that hopefully can point you in the right direction.:
<script type="text/javascript">
    alert("1. is $ defined? " + ( typeof $ === "undefined" ? "NO - Good.. We'll load it next." : "YES - Oh oh... two versions of jQuery!" ) );
</script>
<script type="text/javascript" src="/scripts/jquery-1.10.1.min.js" id="link1"></script>
<script type="text/javascript">

    alert("2. is $ defined? " + ( typeof $ === "undefined" ? "NO" : "YES" ) );
    
    try {
    
        alert("$ jquery version: " + $.fn.jquery );
        
    } catch (e) {
    
        alert("error occurred while trying to figure out jQuery version");
        
    }

</script>

<script type="text/javascript" src="/scripts/jquery.SPServices-2013.02a.min.js" id="link2"></script>

<script type="text/javascript">

    alert("3. is $ defined? " + ( typeof $ === "undefined" ? "NO" : "YES" ) );
    
    try {
    
        alert("$ jquery version: " + $.fn.jquery );
        
    } catch (e) {
    
        alert("error occurred while trying to figure out jQuery version");
        
    }
    
    try {
    
        alert("SPServices defined in jQuery? " + ( typeof $.fn.SPServices === "undefined" ? "NO - Something is wrong with your SPServices script file" : "YES" ) );
        
    } catch (e) {
    
        alert("error occurred while trying to figure out if SPServices was loaded. ");
        
    }
    
    try {
    
        alert("SPServices version: " + $.fn.SPServices.Version() );
        
    } catch (e) {
    
        alert("error occurred while trying to figure out SPServices version");
        
    }
    
</script>

<script type="text/javascript" src="/scripts/gallery.js" id="link3"></script>
Good luck...

Paul.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>