Skip to:
Content
Pages
Categories
Search
Top
Bottom

JS not linked to external files

  • @lph2005

    Participant

    After trying to combine js files by checking the source code of a loaded page, I noticed that several scripts are not linked

    < script type=”text/javascript”>var ajaxurl=”http://www.thechembook.com/wp-load.php&#8221;; .bp-like.activity_liked .activity-meta, .bp-like.activity_liked a.view, .users-who-like, .mini a.view-likes, .mini a.hide-likes{display:none}#bp-default .users-who-like{margin:10px 0 -10px 0;background:#eee;border-bottom:1px solid #ddd;border-right:1px solid #ddd;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;padding:8px 8px 8px 12px;color:#888}#bp-default .users-who-like a{color:#777;padding:0;background:none;border:none;text-decoration:underline;font-size:12px}#bp-default .users-who-like a:hover{color:#222}#bp-default .mini .users-who-like{width:100%;position:absolute;top:0;left:0} < script type=”text/javascript”>var bp_like_terms_like=’Like’;var bp_like_terms_like_message=’Like this item’;var bp_like_terms_unlike_message=’Unlike this item’;var bp_like_terms_view_likes=’View likes’;var bp_like_terms_hide_likes=’Hide likes’;var bp_like_terms_unlike_1=’Unlike (1)’; < script type=”text/javascript”>var _wpcf7={cached:1}; < style type=”text/css”>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important}< style type=”text/css”>#header{background-image:url(http://www.thechembook.com/wp-content/uploads/2010/05/header1.png)}#header h1 a,#desc{color:#FFF} < script type=”text/javascript”>jQuery(document).ready(function(){jQuery(“a.confirm”).click(function(){if(confirm(‘Are you sure?’))return true;else return false;});});

    Any ideas about them?

Viewing 1 replies (of 1 total)
  • @djpaul

    Keymaster

    “ajaxurl” is set as a global reference for the AJAX path for all? WordPress plugins.
    The bp-like CSS classes sound as if they belong to the BuddyPress Like plugin, so either they need to be there or the programmer’s got them to load on every page.
    _wpcf7 is from Contact Form 7.
    #header sets the page header image which is why it’s loaded dynamically like this.
    I’m not sure if the “Are you sure” prompt is from WordPress or BuddyPress, but the reason it’s there is that it’s the sensible of localising the words “Are you sure” on multi language installs (because we can’t load text strings from language files in Javascript).

Viewing 1 replies (of 1 total)
  • The topic ‘JS not linked to external files’ is closed to new replies.
Skip to toolbar