Update Drupal views argument via AJAX -


I have a request related to Drupal 6.x, I want to do this behavior:

Imagery Do 2 columns, a list of nodes on the left (for example only the title), and one view on the right is showing only one content on the left. I think it has to be achieved with an AJX-fashion: in the list on the left update Click on a link to see the right side of the actual node.

What is the best way to handle it?

My idea is to use panels, to create 2 column panels with 2 scenes, not filtered on a type (left) content type, there is no logic, and one on the right side of the form of a node ID Takes in the display

But how to link 2 ideas with AJAX?

Any help or idea is really welcome thanks!

Cheers Mauro

You can also make a quick hack, which is quite flexible Because it allows you to change your thoughts without changes in the code.

I have had a similar job recently and for my work, I will do the following:

  1. For your right column, a highlight filter (node ​​ID) Create and hide the full highlight filter form by using CSS
  2. Using jQuery, attach a click behavior to the title on your left column.
  3. The click behavior takes node ID, the right column, enters the node ID in the input field and forms. Does. Submit ().

.submit () has triggered build-in-users, as well as debug ajax request that refreshes you right column.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -