Larry Heimendinger
asked on
My first Javascript and jquery attempt with Sharepoint
I am trying to modify a copy of the master page for a site. I added <script src"//code.jquery.com//jqu ery-3.1.1. min.js" </script> as the last line before </head> then set this copy to default master page but it does not resolve and errors out.
What did I do wrong, or what is the right way to do this?
What did I do wrong, or what is the right way to do this?
ASKER
Are just the first two <script> lines needed to pull in jscript and the third to run test?
Let me also ask if /_layouts/LM_Query is where SharePoint makes the .js file available?
Sorry to be a dunce, but even with years of coding outside C# and Java<whatever> this all is fuzzy at first glimpse.
Let me also ask if /_layouts/LM_Query is where SharePoint makes the .js file available?
Sorry to be a dunce, but even with years of coding outside C# and Java<whatever> this all is fuzzy at first glimpse.
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Should have mentioned it is SP online....
It is possible to use jQuery with SharePoint online, but you will need to locate the jquery file somewhere such as the site assets library. I am not sure if SPO has jQuery somewhere that is can be used, but probably not since it is not an official MS process. You should also be able to reference the jQuery file locate at google as shown above, but I don't know that for sure.
Good luck...
Good luck...
Thanks
Reference
http://sympmarc.com/2011/07/08/adding-jqueryspservices-to-a-sharepoint-page-step-one-always/
Test
<script language="javascript" src="/_layouts/LM_jQuery/j
<script language="javascript" src="/_layouts/LM_jQuery/j
<script language="javascript" type="text/javascript">
$(document).ready(function
alert("jQuery");
alert($().SPServices.SPGet
});
</script>
Hope that helps...