Not able to see output for jquery below

オフライン
Hi, Below code i am trying in aras html field but what i am able to see in the output is only blocks and not able to perform any action. <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>jQuery UI Sortable - Default functionality</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <link rel="stylesheet" href="/resources/demos/style.css"> <style> #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #sortable li { margin: 0 3px 3px 3px; padding: 0.4em; padding-left: 1.5em; font-size: 1.4em; height: 18px; } #sortable li span { position: absolute; margin-left: -1.3em; } </style> <script src="">code.jquery.com/.../script> <script src="">code.jquery.com/.../script> <script> $( function() { $( "#sortable" ).sortable(); $( "#sortable" ).disableSelection(); } ); </script> </head> <body> <ul id="sortable"> <li class="ui-state-default">Item 1 <li class="ui-state-default">Item 2 <li class="ui-state-default">Item 3 <li class="ui-state-default">Item 4 <li class="ui-state-default">Item 5 <li class="ui-state-default">Item 6 <li class="ui-state-default">Item 7 </body> </html>  
  • Hi Mily,

    I wasn't able to reproduce the issue you're seeing when I copied your code into an HTML field in a test instance. Could you please try to download jquery and include it in your codetree? You should then update your href links to use the relative path to your local jquery files instead. You can look at the Kanban project on the Aras Labs GitHub for an example of using a local copy of the jQuery files.

    Chris
    Christopher Gillis Aras Labs Software Engineer
  • Hello Chris, Excuse for trouble. But i have added files to the codetree also have given path for the same. Can you please explain more about it? It will be really helpful. Path i have given in this way <script type="text/javascript" src="Aras\Innovator\Innovator\Client\Solutions\Infyline\Solutions\Infyline\jquery.js"></script> <script> Is there mistake i am doing? Please correct.  
  • Hello, The path that you'll want to specify should be the relative path to the jquery file based on the context of what folder you are currently in. In most cases, this folder will be the Innovator\Client\scripts folder. In your example, we would need to use a path like ..\Solutions\Infyline\jquery.js. The ..\ moves the context up to the parent folder which in this case would be the \Client\ folder. We then specify the rest of the path from the Client folder. Your final script tag would look something like <script type="text/javascript" src="..\Solutions\Infyline\jquery.js"></script>. I hope this clears up some confusion. Chris
    Christopher Gillis Aras Labs Software Engineer