Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

share|improve this question
3  
Looks like you have included the raty.js file before the jquery.js file. – adeneo yesterday
ok, I will try now – Mark West yesterday
no, again is the same... Uncaught ReferenceError: jQuery is not defined jquery.raty.min.js:12 Uncaught TypeError: Object [object Object] has no method 'raty' 8:161 Uncaught ReferenceError: remoteWindow is not defined spike.js:86 Uncaught TypeError: Object [object Object] has no method 'raty' 8:161 Uncaught ReferenceError: remoteWindow is not defined – Mark West yesterday
work now. THANKS – Mark West yesterday

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.