Hello! There are a lot of jQuery plug-ins on the page, which one is difficult to understand for what, it’s just scary to see how something works there at all. The situation is this, I want to add a jQuery slider to the page, but when adding JavaScript to form a slider, the page is not displayed, just a piece of the trace. view:

<html> <head></head> <body></body> </html> 

The firebug console shows nothing.

Thought jQuery.noConflict(); will help, but alas!

Can anyone come across a similar problem, please tell me what to do in this situation! Thanks in advance.

Here is the site head:

 <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>{$APPLICATION->GetTitle()}</title> <link rel="stylesheet" type="text/css" href="/about/branches/jquery.qtip.css"/> <script type="text/javascript" src="/about/branches/jquery-1.7.2.js"></script> <script type="text/javascript" src="/about/branches/jquery.qtip.js"></script> <link rel="stylesheet" type="text/css" href="/js/lightbox.css" /> <style type="text/css"> @import url(/css/base.css); @import url(/css/scroll.css); @import url(/css/main.css); @import url(/css/sec.css); </style> <!-- RedHelper Онлайн консультант --> <script id="rhlpscrtg" type="text/javascript" charset="utf-8" async="async" src="http://web.redhelper.ru/service/main.js?c=betep"></script> <!--/Redhelper --> <!--[if IE]> <style type="text/css"> @import url(/css/ie.css); </style> <![endif]--> <!--[if lt IE 7]> <style type="text/css"> @import url(/css/ie6.css); </style> <![endif]--> <!--[if lt IE 6]> <style type="text/css"> @import url(/css/ie55.css); </style> <![endif]--> <!--[if lt IE 5.500]> <style type="text/css"> @import url(/css/ie5.css); </style> <![endif]--> <style type="text/css" media="print"> @import url(/css/true_print.css); </style> <script type="text/javascript"> <!-- if (navigator.userAgent.indexOf("Firefox") >= 0 || navigator.userAgent.indexOf("Safari") >= 0 ) document.write("<style type='text/css'>@import url(/css/ff.css);</style>"); else if (navigator.userAgent.indexOf("Opera") >= 0 && navigator.userAgent.charAt(navigator.userAgent.indexOf("Opera")+6) < 9) document.write("<style type='text/css'>@import url(/css/op.css);</style>"); else if (navigator.userAgent.indexOf("Opera") >= 0 && navigator.userAgent.charAt(navigator.userAgent.indexOf("Opera")+6) == 9) document.write("<style type='text/css'>@import url(/css/_op.css);</style>"); //--> </script> {literal} <script type="text/javascript" src="/js/jsScroller.js"></script> <script type="text/javascript" src="/js/jsScrollbar.js"></script> <script type="text/javascript" src="/js/swfobject.js"></script> <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'3c457ac5-0d8d-4970-b98e-4a0705621427'});</script> {/literal} <!-- ~~~ --> {$APPLICATION->ShowHead()} <!-- ~~~ --> {$pageContent->components.FLASH} <script type="text/javascript" src="/js/bank.js" ></script> <style type="text/css"> @import url(/css/acc_menu.css); </style> <style type="text/css"> @import url(/css/sposobi_menu.css); </style> </head> 

And this is what I'm trying to connect:

 <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="jquery.slides.min.js"></script> <script> $(function(){ $("#slides").slidesjs({ width: 940, height: 528 }); }); </script> 

alt text

alt text

  • Why is the empty html so obtained? How do you add "any plugin", show the code? - Zhukov Roman
  • @Artyomich Yes, the fact is that you don’t give data to solve the problem, I can’t help with anything that I’ve encountered. - zb '
  • one
    is there a template engine, which one ? Look in the network tab, there are 500 for sure. - zb '
  • @eicto Bitrix engine, in the network tab there is nothing: (except for one unfortunate GET request that sends cookies, a picture attached - Artyomich
  • and what does he get? 200 with empty html? contact technical support 1c :) - zb '

1 answer 1

do like this

 <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="jquery.slides.min.js"></script> <script> jQuery(function(){ jQuery("#slides").slidesjs({ width: 940, height: 528 }); }); </script> 

or so:

 {literal} <script src="http://code.jquery.com/jquery-latest.min.js"></script> <script src="jquery.slides.min.js"></script> <script> jQuery(function(){ jQuery("#slides").slidesjs({ width: 940, height: 528 }); }); </script> {/literal} 

you obviously have an internal server error, because $ is in the template.

  • Pfffff! Score FIVE! Thank you, dear! - Artyomich
  • This is all Smarty !!!! - Artyomich