I am trying to use jcarousel in a block on a 'parent node' page to display a list of 'child nodes' that are being created in real time.

I want to use jQuery to add new items to the list on the client side.

So far I have a jQuery event with JSON encoded node content being pushed to every instance of the 'parent node' page when a new 'child node' is added.

The problem I have is how to use jquery to add a new element to the jcarousel list *on the client side*.

I don't want to force a reload of the 'child node' block with all the nodes in it, I just want to scroll the carousel along one, and add a new node at the end of the list.

I'm attaching a screenshot of my work in progress

To explain the screenshot: test is the parent node, tests 1 - 20 are child nodes, submitting the 'heckle' form creates a new node via ajax, without redirecting from the 'test' node, and sends a push event (with JSON encoded nid/title/body/uris from the new node) to the 'test' node page.

I've tried everything I can think of, and the drupal implementation seems quite different from the examples on the jcarousel website... any help from any jQuery ninjas out there would be *much* appreciated.

Thanks,

Saul

CommentFileSizeAuthor
test.png22.53 KBsaulalbert

Comments

saulalbert’s picture

Assigned: Unassigned » saulalbert
Status: Active » Closed (fixed)

Sorted... thanks to @SaintSal, again.