jQuery read content in external html file inside projectRespondida
When I test on my local, the program run properly but when I deploy to server it get error below:
After the app is uploaded, the asset files are not accessed from the same path within the assets directory as they are when the app runs locally. To account for this, you can use the assetURL API to get the fully qualified URL that points to the file.
So when using jQuery to retrieve a
test.htmlfile that exists in
assets/templates, use the following approach to send the request to the asset's fully qualified URL:
//success callback function
Your solution is work!! Thank you very.
Por favor, entrar para comentar.