The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

2 console errors

View previous topic View next topic Go down

2 console errors

Post by FrOsTyXi on May 9th 2015, 12:59 pm

@JScript or anyone that can assist me, I have 2 console error and not sure how to resolve the issue, can some one help me with this?

here is the staff online widget code one of the errors
<div class="module main">
   <div class="main-head">
      <div class="h3">
                                             <em class="fa fa-cog fa-spin"></em>  Staff Online  <em class="fa fa-cog fa-spin"></em>                                 
   <div class="main-content clearfix">
      <div id="staff_widget">
      </div><script>jQuery(document).ready(function () {
    var widget = jQuery('#staff_widget')[0];
    storedValue = sessionStorage.getItem('online_staff');
    if (storedValue) {
    } else {
        jQuery.get('/viewonline', function (data) {
            var group = {
                group1: jQuery('.table span[style="color:#000000"]', data).parents('td'),
                group2: jQuery('.table span[style="color:#050505"]', data).parents('td'),
                group3: jQuery('.table span[style="color:#c82020"]', data).parents('td'),
                group4: jQuery('.table span[style="color:#1464F4"]', data).parents('td'),
            jQuery('#staff_widget a[href^="/u"]').each(function () {
                var prof = jQuery(this).attr('href');
                jQuery('<a href="' + prof + '" class="lastpost-avatar"></a>').insertBefore(this);
                jQuery('<div class="userTitle"></div>').insertAfter(this);
                jQuery(this).prev().load(prof + ' #profile-advanced-right .main-content img:eq(0)');
                jQuery(this).next().load(prof + ' #field_id2 dd div:eq(0)')
                jQuery(window).on('load', function () {
            if (!document.getElementById(widget)) return;
            var currentValue = document.getElementById(widget).innerHTML;
            sessionStorage.setItem('online_staff', currentValue)

and also is
$(document).ready(function() {$('#user_navigation #sign_in').attr('href', '#').attr('onclick', "show_popup('sign_in_popup_popup');");/*$('#user_navigation #sign_in').click(function() {sign_in_popup();});*/});function show_popup(id) {var $oObj = $('#'+id);if ($oObj.css('display') == 'none') {$oObj.add('#document_modal').fadeIn('slow');$("input:text:eq(0):visible").focus();} else {$oObj.add('#document_modal').fadeOut('slow');}}//]]></script>

not sure how to fix this.


forum link: TPSN


Thank you and regards

I managed to fix all the errors in the console close this topic, thank you

Last edited by FrOsTyXi on May 9th 2015, 10:33 pm; edited 1 time in total (Reason for editing : Sloved)


Male Posts : 460
Reputation : 12
Language : english

Back to top Go down

Re: 2 console errors

Post by SLGray on May 11th 2015, 1:42 am

Locked as Requested

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


Male Posts : 35916
Reputation : 2400
Language : English
Location : United States

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum