나는 결국 스트리밍 라디오 웹 사이트 인 Wordpress 웹 사이트를 가지고있다.
이 : 헤더에 내가 .. (Centova 캐스트)
나는 function.php에서 스크립트를 등록 내 전용 서버의 CP에서 (계산 청취자와 같은 현재 재생) 스트리밍 데이터를 당겨하는 스크립트가 레지스터
wp_register_script(’streaminfo’, 'http://94.23.250.14:2199/system/streaminfo.js',false,null); wp_enqueue_script(’streaminfo’);
이되어있는 검토하기위한 전체 jQuery를 섹션 .. 내가 STREAMINFO 사이에 충돌이 나타납니다
/* ------------------------------------
:: INITIATE JQUERY/STYLING
------------------------------------ */
function init_dynscripts() {
if (!is_admin()) {
if (function_exists('bp_is_blog_page')) {
if (!bp_is_blog_page()) {
wp_enqueue_script('bp-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array('jquery'));
}
}
wp_register_style('northvantage-style', get_bloginfo('stylesheet_url'),false,null);
wp_enqueue_style('northvantage-style');
if(get_option('enable_responsive')!='disable') :
wp_register_style('northvantage-responsive', get_template_directory_uri().'/stylesheets/responsive.css',false,null);
wp_enqueue_style('northvantage-responsive');
endif;
wp_enqueue_script('jquery-ui-core',false,null);
wp_enqueue_script('jquery-ui-tabs',false,null);
wp_enqueue_script("jquery-ui-accordion",false,null);
wp_enqueue_script("swfobject",false,null);
wp_deregister_script("jquery-effects-core");
wp_deregister_script('libertas');
wp_register_script('libertas',get_template_directory_uri().'/js/nv-script.pack.js',false,null);
wp_enqueue_script('libertas');
wp_register_script(’streaminfo’, 'http://94.23.250.14:2199/system/streaminfo.js',false,null);
wp_enqueue_script(’streaminfo’);
wp_register_script(’jpie’, get_template_directory_uri().'/js/jpie.js',false,null);
wp_enqueue_script(’jpie’);
wp_register_style('jpiestyle', get_template_directory_uri().'/jpie.css',false,null);
wp_enqueue_style('jpiestyle');
if(get_option('jwplayer_js')) { // Check jw player javascript file is present
$NV_jwplayer_js = get_option('jwplayer_js');
wp_deregister_script('jw-player');
wp_register_script('jw-player', $NV_jwplayer_js,false,null);
wp_enqueue_script('jw-player');
}
}
}
add_action('init', 'init_dynscripts',100);
function _remove_script_version($src){ // remove script version
$parts = explode('?', $src);
return $parts[0];
}
add_filter('script_loader_src', '_remove_script_version', 15, 1);
add_filter('style_loader_src', '_remove_script_version', 15, 1);
. js와 내 웹 사이트. 요소 검사를 제공합니다
Uncaught TypeError: Property '$' of object [object Window] is not a function
상황이 파일이 잘못된 결국에 내가 시도 short..everything하려면.
$ 기호를 파일에서 jQuery로 변경하려고 시도했지만 충돌을 제거했지만 다른 파일과의 충돌이 발생했습니다.
내가 파일의 머리에jQuery(document).ready(function ($) {
을 추가하는 시도하지만 CP의 다른 요소를 나누기.
은 결국 나는 간단한 테스트를 실행 만이 코드를 웹 페이지를 생성 :<html>
<body>
<span id="cc_strinfo_title_tranceilfm" class="cc_streaminfo"></span>
<script language="javascript" type="text/javascript" src="http://94.23.250.14:2199/system/streaminfo.js"></script>
</body>
</html>
그리고 페이지가 오류를 반환하지 않았습니다. (나는 구글 jQuery 파일에 대한 경로를 포함했다)
jQuery 플러그인에 뭔가가 망가져있다? 또는 일부 문자열이 내 코드에서 누락 되었습니까?
www.tranceil.fm
너무 좋아? jQuery.noConflict (document) .ready (function ($) {무엇을 닫아야합니까? http://94.23.250.14:2199/system/streaminfo.js – Trance84
다음과 같이 : jQuery (document) .ready (function() –
잡히지 않은 타입 오류 : null의 메소드 'match'를 호출 할 수 없습니다 : – Trance84