Tempcode in PHP
#6342 (In Topic #1599)
46: TypeError: $(…).sew is not a function https://witches.chat/themes/Witches_Chat/templates_cached/EN/jquery_autocomplete_ssl.js?1580696555 also seen is…
46: TypeError: $(…).sew is not a function https://witches.chat/data/script.php?script=jquery_autocomplete&theme=admin&keep_theme=adminOne happens when I click on Read More in the News_Block, the other happens when I click "Edit in zone editor" to edit the Right Side-panel. They are both caused by my card-flip JQuery. I think it's because I'm loading JQuery using my own JQuery js file. It also happens if I link to the latest JQuery js file. If I remove the card-flip miniblocks, the problem goes away. If I disable the link to JQuery, the card-flip won't work, of course, but the error also goes away. So it's the JQuery.
Composr has its own JQuery. I've seen it called like this:
It is likely that loading up a second jQuery causes conflicts, either as there are 2, or our own bundled jQuery autocomplete plugin (sadly) depends on the much older version we bundled. We need to get that upgraded, but it's not going to happen in v10.
Maybe the jQuery you have will be compatible with our older version.
As to why you couldn't load the JS within your block code:
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
1 guest and 0 members have just viewed this.