The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

2 console errors

2 posters

Go down

2 console errors Empty 2 console errors

Post by FrOsTyXi 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: 2 console errors LCmfRkq

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
FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

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

Back to top Go down

2 console errors Empty Re: 2 console errors

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

Locked as Requested


2 console errors Slgray10

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

Male Posts : 51554
Reputation : 3523
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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