![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
![]() |
Wed, Apr 9 2014 3:47 AM | Permanent Link |
Ronald | Hi,
I created a non visual project with one test function. I created a .html that loads the script and tried the testfunction. In the dedugger I get an error. This is the test.html: <!doctype html> <html> <head> <script src="nv.js"></script> </head> <body spellcheck="false" onload="nv_load()" onunload="nv_unload()"> <form method="post"> <input name="Button1" onclick="alert(GetIt('haha'));" type="button" value="button"></form> </body> </html> If I looking in the nv.js file, I cannot find the function GetIt(). Where did it go of do I have the wrong expectations with the non visual project? Greetings, Ronald |
Wed, Apr 9 2014 6:06 AM | Permanent Link |
Matthew Jones | I don't understand all these parts enough, but my thinking is that the compiler
eliminates the unused functions, so it presumably thinks that your function is not used. Did you write that HTML, or was it generated by EWB? /Matthew Jones/ (I'm away until next week now, so may not be able to respond further.) |
Fri, Apr 11 2014 3:16 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Ronald,
<< If I looking in the nv.js file, I cannot find the function GetIt(). Where did it go of do I have the wrong expectations with the non visual project? >> Matthew is correct - if the function isn't called from within your project, then the EWB compiler will remove it from the emitted code. The compiler cannot resolve references that are in the HTML instead of the actual project source code. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, March 30, 2023 at 10:19 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |