Hi there,

yesterday I did my second drupal installation / site ... one of the first modules installed was VIEWS 2

... in my first installation the admin UI was great: nice tables, cool ajax and so on

... BUT now my second installation on another webspace (but same conditions) looks completely different: not ajax, just flat lists ... no theme!?

Can anybody tell me, what maybe the cause for this ... and how to fix it!?

THANKS!

CommentFileSizeAuthor
#10 no_ajax.jpg68.17 KBro-no-lo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mark Trapp’s picture

Have the same issue. Not sure when it changed, either: it was definitely ajax last Thursday, and there hasn't been a Views release since then. Drupal 6.10, Views 2.3. Safari reports the following error: "TypeError: Result of expression 'Drupal.Views' [undefined] is not an object." three times in ajax.js at line 8, dependent.js at line 24, and ajax_view.js at line 9.

Mark Trapp’s picture

You know what, I just fixed it. Go to Site Configuration -> Performance and clear cached data. Views builder working again in full Ajaxian glory.

zweilicht’s picture

... happy for you ... BUT here this is not working ... allready cleaned the cache a few times ;-(

... are there any server related things i have forgotten to install!?

... to mention it again: it's a brandnew drupal installtion and just views and core modules are activated ...

... my other site is a few weeks ago and I can't remember to have tweaked the server to anything, so views 2 is displayed fine ... but there still everything looks perfect in the administration ...

whyyyyyyyy? ;-(

zweilicht’s picture

... what I allready did: cleaned cache, tried different browsers, overwritten the allready installed files

... now will try to uninstall and reinstall ... but something is saying me, that this might not be the problem!? ;-)

zweilicht’s picture

no clue anyone!??? please! ,-)

candelas’s picture

i was having problems with ajax in views.
i could not edit views of any type.
i search in google and at the end i found one solution that worked for me.
i went to tools and disable javascript with views.
now i can edit.
just in case it helps to you

asips77’s picture

I have a related problem I guess since yesterday.
If I add an argument in the view by pressing the + it gives the fields underneath to choose the argument. If I then press Add I get the following screen in Firefox:

{ "display": "\x3cform action=\"/admin/build/views/ajax/add-item/afleveringenvanserie/default/argument\" accept-charset=\"UTF-8\" method=\"post\" id=\"views-ui-config-item-form\"\x3e\n\x3cdiv\x3e\x3cdiv class=\"clear-block\"\x3e\x3cdiv class=\"form-item\" id=\"edit-options-title-wrapper\"\x3e\n \x3clabel for=\"edit-options-title\"\x3eTitle: \x3c/label\x3e\n \x3cinput type=\"text\" maxlength=\"128\" name=\"options[title]\" id=\"edit-options-title\" size=\"60\" value=\"\"
...

In IE it just asks me to save the file.

This has never been the case before. If I look in the errorconsole of Firefox I get the following error:

Error: $(this).ajaxSubmit is not a function
Source: http://localhost/sites/all/modules/views/js/ajax.js?Z
Line: 74

I have the feeling this is related to eachother....

doon’s picture

tools/disable javascript.
worked for me

hope this helps

ro-no-lo’s picture

We here have the same strange behavior. I updated Views to 2.5 and all Ajax has stopped working. Strange is, that only dependent.js is included. The ajax.js or ajax_view.js is not included.

<script type="text/javascript" src="/sites/all/modules/views/js/dependent.js?x"></script>

is there but nothing else from views. No idead where the other javascript files should be triggered. I do not have any javascript error in the console so far.

ro-no-lo’s picture

FileSize
68.17 KB
ro-no-lo’s picture

Found the solution. There is a checkbox to disable javascript in views. Im pretty sure I do NOT disabled it. I never had an idea that this checkbox even existed. Found it in views_add_js() that a certain variable was asked.

So removing the check from the checkbox turned javascript back on.

Happy now. :>

jlmeredith’s picture

I can confirm as well that their is a bug with the ajax function in views. Using 6.x-2.x-dev. Disabling AJAX fixes for now.

zweilicht’s picture

Hi there ;-)

ok: I did a completly new installation on the same server in the same directory ... NOW it works with all ajax effects.

why? I don't know ... a view hints:

- installtion before: I allready copied a lot of modules before installing ... maybe this and one of them produced a conflict!?
- i acitvated clean urls after activating views ... the second time, I did it before

that's what i can think of ...

thank you

dawehner’s picture

you know, i think the best way to do it, is to give a accout for checking it out.

"a lot of modules" - sure you can do nearly everything with drupal, also breaking js other modules :)

is this also on every view, or only on specific

specialagent’s picture

Version: 6.x-2.3 » 6.x-2.5

I had a similar problem (http://drupal.org/node/423692)

Turns out I had to loose the jquery I was using for some eyecandy.

I commented out the drupal_add_js in the template.php and everything worked again.

Now I just have to figure out how to use the widget without dissing views

esmerel’s picture

Status: Active » Closed (fixed)

Given the age of this issue, I'm going to surmise that this works in the most recent release.

Virginie’s picture

I had the same issue as comment #7
I fixed this with adding the jquery form plugin : http://jquery.malsup.com/form/
It seems to work fine !

msathesh’s picture

I had a different error in different file though:

'Error: $(this).ajaxSubmit is not a function
Source File: http://localhost:8888/sites/all/modules/views/js/ajax_view.js?L
Line: 91'

but #17 solution worked for me.. I just added the jquery.form.js through template.php file in my themes and it works!! Thanks @Virginie for posting it here..

halth’s picture

Issue tags: +Ajax, +views ui, +ajaxsubmit

Yes, #17 was also a valid solution to me.

In my case, the jQuery update module was already adding the file jquery.form.js.
But only for a 'release of conscience', I download the library and added it to the .info file of my ADMINISTRATOR theme (It's no the presentation theme of your site, unless you also use it on the admin area).

Cleared the cache, worked like a charm! ;)

capysara’s picture

Issue summary: View changes

Years later and unchecking "Disable JavaScript with Views" under Advanced Settings was the answer for me. Thanks!