+ 1

java script

VM113:1 Uncaught ReferenceError: uns is not defined

15th Jun 2017, 7:27 AM
PremKumar lingeswaran
PremKumar lingeswaran - avatar
6 Respostas
+ 4
Your code cannot be normally run, as external linked ressources are url relatives and so, no accessible from Sololearn playground: you need to host them on internet and put absolute URLs or integrate them in one of the three tab available in web project (Html, Css, JS: two lasts are automatically linked as they were in the <head> section...). It doesn't really matter for the css files (as code is running anyway, even if not displayed as expected), but yours JS script libraries will be probably required: <!-- jQuery 2.1.4 --> <script src="plugins/jQuery/jQuery-2.1.4.min.js"></script> <!-- Bootstrap 3.3.5 --> <script src="bootstrap/js/bootstrap.min.js"></script> <!-- SlimScroll --> <script src="plugins/slimScroll/jquery.slimscroll.min.js"></script> <!-- FastClick --> <script src="plugins/fastclick/fastclick.js"></script> <!-- AdminLTE App --> <script src="dist/js/app.min.js"></script> <!-- AdminLTE for demo purposes --> <script src="dist/js/demo.js"></script> Anyway, I cannot reproduce your error message, as nothing append when clicking on ny button :P However, your search form doesn't close it's tag (missing </form>), and your main form doesn't be included inside a <form> element... and you make this mistake in addition: use of 'onsubmit' attribute on button, where this event listener is only expected in <form> element (to use button, use rather the 'onclick' event ^^) Finally, you can put <script> anywhere in your Html code, but prefer insert them inside <head> or <body> section, as this is the two places for content: not very logical to have other direct childs from <html> document root, and even more outside of any (without parent element)... I hope this could be enough to help you :)
15th Jun 2017, 8:02 AM
visph
visph - avatar
+ 3
Please post the code to this thread.
15th Jun 2017, 5:19 AM
Manual
Manual - avatar
+ 3
Listen to @Manual
15th Jun 2017, 5:24 AM
Ekansh
+ 1
i cant place the full code here sir
15th Jun 2017, 7:29 AM
PremKumar lingeswaran
PremKumar lingeswaran - avatar
15th Jun 2017, 7:32 AM
PremKumar lingeswaran
PremKumar lingeswaran - avatar
+ 1
thank you sir
15th Jun 2017, 8:05 AM
PremKumar lingeswaran
PremKumar lingeswaran - avatar