For whatever reason views ends up with a conflict when loaded in the standard Drupal format. Either the view won't load at all or will throw ajax errors on actions (Clean install).

Reproduce:
1) setup a view with ajax enabled
2) load the view through ajax replace and deliver

<?php

  $view = views_embed_view('view_id', 'view_display_page'); 

  $commands = array();

  $commands[] = ajax_command_replace('#main', '
	<section id="main">' . render($view) . '</section>');
  ajax_deliver(array('#type' => 'ajax', '#commands' => $commands));
?>

Not real sure where the conflict is, but it most definitely has to do with the nested ajax call when a view has ajax enabled

Comments

JMOmandown’s picture

After a few more hours of research, it seems this is a common problem / question; however, there seems to be no concise functional answer to the issue. With that in mind, I am going to keep this open to see if anyone has a concise functional answer that can be pointed to from here on out.