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
| Comment | File | Size | Author |
|---|---|---|---|
| test.png | 22.53 KB | saulalbert |
Comments
Comment #1
saulalbert commentedSorted... thanks to @SaintSal, again.