Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I want to load the content (main content) of my webpage with this Ajax module as I've done a lot of times. However, I'm getting an error every time I click on an .ajax-link. I think it's because I have a webform block. If I remove that block, I don't get the error anymore. This is the error:
TypeError: $(...).once is not a function
$('form.user-info-from-cookie').once('user-info-from-cookie', function () {
Anyone can help me?
Thanks in advance!
Comments
Comment #1
quicksketchI don't think this is an issue with Webform itself. In which file is that code located? It looks like it may be some custom code on your site. If the "once" method is missing, you may need to add the /misc/jquery.once.js file to the page, which provides that method.
It's been a while since this issue was opened, did you figure out a solution since this was posted?
Comment #2
quicksketchClosing after lack of activity.