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 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!
Comment | File | Size | Author |
---|---|---|---|
#10 | no_ajax.jpg | 68.17 KB | ro-no-lo |
Comments
Comment #1
Mark TrappHave 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.
Comment #2
Mark TrappYou know what, I just fixed it. Go to Site Configuration -> Performance and clear cached data. Views builder working again in full Ajaxian glory.
Comment #3
zweilicht CreditAttribution: zweilicht commented... 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? ;-(
Comment #4
zweilicht CreditAttribution: zweilicht commented... 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!? ;-)
Comment #5
zweilicht CreditAttribution: zweilicht commentedno clue anyone!??? please! ,-)
Comment #6
candelas CreditAttribution: candelas commentedi 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
Comment #7
asips77 CreditAttribution: asips77 commentedI 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....
Comment #8
doon CreditAttribution: doon commentedtools/disable javascript.
worked for me
hope this helps
Comment #9
ro-no-lo CreditAttribution: ro-no-lo commentedWe 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.
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.
Comment #10
ro-no-lo CreditAttribution: ro-no-lo commentedComment #11
ro-no-lo CreditAttribution: ro-no-lo commentedFound 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. :>
Comment #12
jlmeredithI 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.
Comment #13
zweilicht CreditAttribution: zweilicht commentedHi 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
Comment #14
dawehneryou 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
Comment #15
specialagent CreditAttribution: specialagent commentedI 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
Comment #16
esmerel CreditAttribution: esmerel commentedGiven the age of this issue, I'm going to surmise that this works in the most recent release.
Comment #17
Virginie CreditAttribution: Virginie commentedI 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 !
Comment #18
msathesh CreditAttribution: msathesh commentedI had a different error in different file though:
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..
Comment #19
halthYes, #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! ;)
Comment #20
capysara CreditAttribution: capysara commentedYears later and unchecking "Disable JavaScript with Views" under Advanced Settings was the answer for me. Thanks!