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
Code:
<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>
                                                                   
   </div>
                                                            
   <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) {
        jQuery(widget).html(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(widget).append(group.group1).append(group.group2).append(group.group3).append(group.group4);
            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)
        })
    }
});</script>                   
   </div>
</div>

and also is
Code:
$(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.

punbb

forum link: TPSN

Errors:

Thank you and regards
FrOsTyXi


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)

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

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.


SLGray
Administrator
Administrator

Male Posts : 35624
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

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