Ajax doen't work.

I get an alert window with this:

"An error occurred while attempting to process /es/system/ajax: Object [object global] has no method 'indexOf'"

It is a multilingual site.

The webform is embed as a block in a node

Jquery set to 1.8

Webform is set to "Not redirected" and Ajax is enabled.

How can fix this?

Comments

chefnelone’s picture

Issue summary: View changes
chefnelone’s picture

Issue summary: View changes
elkiwi’s picture

Hi, I'm subscribing as I have a similar problem. I'm also on a multilingual site with the form as a block. I don't get any pop up error but the ajax isn't working. The page just reloads with any success or validation messages.

marcusx’s picture

Are you using webforms 4.x? Have you apllied this patch? https://drupal.org/comment/8010383#comment-8010383

I can confirm that Webforms 4.x and AJAX is working on a multilingual site with this patch.

petebrady’s picture

#4 worked for me.

Thanks @marcusx.

andrei.vesterli’s picture

wrong comment, sorry guys.

greg__’s picture

Same problem here.
On IE 7 and IE 8 i got this error "An error occurred while attempting to process /en/system/ajax:".

Information :

Browser IE 7 & IE 8
Webform Ajax Module version 7.x-1.1
- Ajax enabled for the webform
- Confirmation page set to an url
Jquery 1.5, 1.7 or 1.8
Drupal 7.27
Multilanguage site

swim’s picture

Status: Active » Fixed

The latest dev build should fix these issues RE https://drupal.org/node/2102029

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.