Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Multiple scripts


I have an issue with utilizing multiple scripts on one view. I have a view that contains a collapsible panel and form validation. I am trying to utilize the assets/js/scripts.bundle.js and the assets/plugins/global/plugins.bundle.js which I believe are what is needed to utilize collapsible panels and form validation. I am unable to include both scripts on the same page and get the collapsible panel to work. It does work however when just having assets/js/scripts.bundle.js on the view. Is there a known issue having both scripts on the same page? Also note. I have not been able to get the reference to scripts working utilizing KTTheme.AddJavascriptFile method. I am having to use the standard method
<script src="~/assets/js/scripts.bundle.js"></script>

I am using .NET Core 6.0 in Visual Studio.NET.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi David,

Could you please attach the code on how you are connecting the js file to your view?

By default, the two files below are already included in all views, so you do not need to load those two separately.

assets/js/scripts.bundle.js
assets/plugins/global/plugins.bundle.js


Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(