Answer the question
In order to leave comments, you need to log in
What does Uncaught ReferenceError: jRS is not defined at HTMLAnchorElement.onclick mean?
Hello.
I ask for help with javascript, I myself am a complete zero in this.
This is how it goes. There is a forum on phpBB, it's almost clean, it's on localhost for now (on OpenServer, to be precise).
download mod from offsite
Uncaught TypeError: Cannot read property 'positive' of undefined
at HTMLAnchorElement.onclick (VM1857 viewtopic.php?f=2&p=3:578)
Answer the question
In order to leave comments, you need to log in
obsolete
var jRS = {
showhide: function(a) {
$(a).parents('.post').toggleClass('hidden');
},
positive: function(a, b, c) {
show_popup('positive', a, b, c);
},
negative: function(a, b, c) {
show_popup('negative', a, b, c);
},
postdetails: function(a) {
show_popup('postdetails', a);
},
userdetails: function(a, b) {
show_popup('userdetails', a, b);
},
userrating: function(a, b) {
show_popup('rateuser', a, b);
},
ratepost: function(id) {
submit_action('post', id);
},
rateuser: function(id) {
submit_action('user', id);
},
del: function(id, mode) {
if(confirm(rsdelete))
{
submit_action('delete', id, mode);
}
},
clear: function(id, mode, page) {
switch(mode)
{
case 'post':
confirm_clear = rsclearpost;
break;
case 'user':
confirm_clear = rsclearuser;
break;
}
if (confirm(confirm_clear))
{
submit_action('clear', id, mode, page);
}
},
catchup: function() {
submit_action('catchup');
},
}
jQuery.noConflict();
This means that on click, the event handler, or the code it calls, tries to use the value of the "positeve" property, but that property has no value, hence the error;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question