I have an probem with code execution. What is exactly problem?
This code below is ok and work fine:
var elemenatDiv = $('<div>').addClass('elemenat');
var draggableDiv = $('<div>').addClass('draggable');
var ocene = $('<div>').raty({ score: place.rating, path: 'http://wbotelhos.com/raty/lib/img' });
var logo = $('<img>').attr('src', photo).attr('width', 54).attr('height', 54)
var sideClick = $("<a>").addClass('side_click').attr('href', '#')
.text(place.name);
var elementnameDiv = $('<div>').addClass('elementname');
elemenatDiv.append(draggableDiv.append(logo).append(ocene));
elemenatDiv.append(elementnameDiv.append(sideClick));
$("#side_bar").append(elemenatDiv);
$(sideClick).on("click", function () {
markers[i].modalWindow_.getDetails(markers[i].place_);
});
but when I put this code into google map js code:
google.maps.event.addListener(map, 'tilesloaded', function(evt) {
//CODE FROM ABOVE
});
I got this errors in console:
Uncaught ReferenceError: jQuery is not defined -jquery.raty.min.js:12
Uncaught TypeError: Object [object Object] has no method 'raty'- 6:161
Uncaught ReferenceError: remoteWindow is not defined
Now I dont know why this code when I put him into google map code wont execute?
HOW TO SOLVE THIS? IS THERE ANY WAY?
THANKS! sorry for my english