I am creating a new project for FIC studies. But I can't make it work. My other project works normally, I checked and compared the configuration of a project that I use a long time ago and apparently all similar, but only the old project works and not in new. What may I be forgetting to check?
An AJAX request fails… please review the ‘network’ tab of browser development tools
Captura de Tela 2019-09-12 a`s 14.06.57
I prefer to see the whole network panel however, set in hewo.js
:
CGI : 'hewo'
I used XXX.js from another project and the issue was resolved. The JS that FIC generated was sent by email.
The JS that FIC generated was sent by email
Generated by FAA? nothing received yet.
To analyse why it went wrong, the Adaptation Log would be helpful.
I sent it back now using a link.
Hello,
Have you checked? I believe the FAA is not creating a CSS correctly.
Hello Arcadio,
FAA is a VERY complex program and it's impossible to tell, just by reading code, what may not work in your case (no one else ever reported this issue).
However we fixed a bug that made step 4. not in the log. Updated on our site.
The issue seems to be in replacing xxx
by the application code… can you check in which file the replacement is OK or not? The source files that FAA copies into the app's folder are located in home(1) + "Tools\AB\AW\App\"
UPDATE: I can see nothing wrong in the files of the project you've sent a link of by email (code hewo
).
I'm sorry, the problem is in hewo.js and not in hewo.css, can you check?
As I wrote earlier, I can't see nothing wrong in the files of the project just by reading the code.
If you suspect hewo.js
to be wrong, have you checked for a JavaScript error in the Browser Developer Tools?
When you have a client-side error, it's the first place to look at.
- FAA/xxx.js: Fix unterminated comment issue
Apparently, I was right and you found the problem. Thanks!
OK however you should have debugged the issue in the Browser Developer Tools and reported here.
I waisted a lot of time trying to guess the issue by reading code.
PLEASE always debug in the Browser Developer Tools before raising an issue.
Thanks
That's fine, but you know most FIC developers don't understand this part much and I include myself in it. Anyway I explained that I had a problem with XXX.js and opening it in a text editor the error was quite clear. But anyway I will try to improve on the explanations of the problems.
As you use the VFP debugger, you MUST use the Browser Developer Tools.
I would even recommend to keep it open whenever you develop your FoxinCloud application if ever you have a screen large enough for that.
Any error reported here (in red) is meaningful and needs your attention.
I've written it over and over, PLEASE do take some time to get familiar with the Browser Developer Tools; at the end you'll find that this environment is very close and similar to VFP IDE, and you'll get comfortable using it.
presentation: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_are_browser_developer_tools
tutorial (among many others): https://www.youtube.com/watch?v=wcFnnxfA70g