I have:
IN THE HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Buscador</title>
<script src="lib/jquery-1.4.4.js" type="text/javascript"></script>
<script src="buscador.js" type="text/javascript"></script>
<script src="lib/jquery.autolink.js" type="text/javascript"></script>
</head>
<body
<h1>Buscador</h1>
Esta es la prueba de poner tooltip a una no mas Prueba para ver
El elemento solo tiene que tener el atributo title="mensaje del tooltip" y
</body>
</html>
And in the javascript:
function getList(){
//_listDiccionario = Array(new Array("elemento","Este es el mensaje"), new Array("mensaje","cosas rarascosas ")); //Para probar
/* Retrieves the current ClientContext object */
//var context = SP.ClientContext.get_current();
var webUrl = "http://c-jfmunoz:5000";
var context = new ClientContext(webUrl);
var web = context.get_web();
// Get references to the lists we will use
var listObject = web.get_lists().getByTitle(_listName);
// Get the list items for the contacts list
_listDiccionario = listObject.getItems();
// context.load tells the object model to load the objects scalar
// properties. Otherwise they will not be accessible
context.load(_listDiccionario);
context.load(listObject);
context.executeQueryAsync(onListsLoaded);
}
/*
Event handler called loading the contacts and companies lists
This method dynamically renders an HTML table to display the list data
*/
function onListsLoaded() {
addToolTipToList("body","0000FF",_listDiccionario);
return false;
}
And when I run it it says "ExecuteOrDelayUntilScriptLoaded was not defined"
I think that nothing will work. Is there anything that I must add to the JavaScript file to make it work?