Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

$.ajax function is not loading..

$
0
0

Hi All

I need an urgent help for the below close..

I have called the below js files In master page but I am not getting any alert messages when I use $.ajax({}); but when I remove the alerts are working file.

<script language="javascript" src="/Style%20Library/Jquery/jquery-1.11.1.js" type="text/javascript"></script><script language="javascript" src="/Style%20Library/Jquery/jquery-1.11.1.min.js" type="text/javascript"></script><script language="javascript" src="/Style%20Library/Jquery/jquery.spservices-0.7.2.js" type="text/javascript"></script><script language="javascript" src="/Style%20Library/Jquery/jquery.spservices-0.7.2.js" type="text/javascript"></script><script type="text/javascript">


$(document).ready(function()
{

var firstURL;


var thisFirstName = $().SPServices.SPGetCurrentUser({
 fieldName: "FirstName",
 debug: false
});
var thisLastName = $().SPServices.SPGetCurrentUser({
 fieldName: "LastName",
 debug: false
});
var thisEmailID = $().SPServices.SPGetCurrentUser({
 fieldName: "Email",
 debug: false
});

alert(thisFirstName );
alert(thisLastName );

alert(thisEmailID );

firstURL = "Custom Test"

alert(firstURL);

$.ajax({

        alert("Success");
});

});</script>

Its very urgent, need your help please and thanks for the help.


Viewing all articles
Browse latest Browse all 11571

Trending Articles



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