The exact error is TypeError: “NetworkError when attempting to fetch resource.”
I dont want to visit the URL directly – like with function preload()
– because my goal is after to add an input Html element where the user can add some text, which is then used to build the URL…
In the upper example, URL is api.archives-ouvertes.fr/search/?q=title_t:(javascript)&wt=json'
and my goal is that the javascript
string could be replaced by some text typed from the user.
Can you call
myfunction
from something other than anonclick
callback?
I have to search and test.