https://forums.nubuilder.cloud/viewtopic.php?f=20&t=10850
and this post on page two:
https://forums.nubuilder.cloud/viewtopic.php?f=20&t=10320
Can I access or load an external Javascript file from within the Custom code of an object?
The reason I'm asking about this is because I found that on a launch form that I have, I have a button that will run some code to erform an SQL search and then call another form to display the results. I found that the Custom code that is allowed seems to be limited in length. As I updated and added code to my Custom code on my button object, the bottoms rows were getting cut off. SO then I thought I would try to move the bulk of my JavaScript to an external file and I added the following code to the beginning of the Custom Code
Code: Select all
<script src="'myjsfile.js" type='text/javascript'></script>
The only thing I can correlate to losing the form was the way I typed in the <script src...> tags. I used double quotes around that file name instead of single quotes. Could this have caused the loss of the form?