New answers tagged

1

Sometimes you can't see the forest for the trees. My JS now looks like this function addDate(target_field) { document.getElementById(target_field).value = currentDate(); document.getElementById(target_field).focus(); document.getElementById(target_field).blur(); } and it works !!!


1

*** Update - This solution works provided the date input field is not have a type="calendar" in the Joomla forms .xml. I will raise a separate question to try and work out why and report back here. My solution to change the date field on a change in the current stock when entered via the form involved learning enough JS to become dangerous. :) My ...


1

parsererror : SyntaxError: Expected identifier was actually causing issues with the JS code on IE. I had to do a line by line debug and finally found 2 instances in the code that was causing this- I was using this to loop through an object- for(const [serial, dates] of Object.entries(data)) {. Had to replace this with a simpler for...in loop like- for (var ...


0

This most likely means that you are adding non-existing assets. Their links generate a 404 page which is why you're getting the text/html MIME type instead of respective types for CSS/JS files.


1

This kind of error comes from what is known as CSP (Content Security Policy) configured on your web server. If you don't know what it is. Please contact your hosting provider. For any information you can read this article on MDN (Mozilla Developer Network) Take care. Hope it helps.


Top 50 recent answers are included