Sorry, I missed something here. What do you mean about a trigger for a new element? Do you want to be able to insert a completely new “pane” on the fly in the page? If you do that, what would happen if the same person returned again later or reloaded the page in her browser?
You see, it’s trivially easy to “clone” an object on the page into a new instance of itself, and make that element appear and disappear. But that’s all done in the browser, in memory, and never persists anywhere. Just reloading the page would make the clone disappear unless you had some persistence layer somewhere to store it.
Where you store it depends on your application and what it does. If the pane only ever needs to be seen by a single person/browser, then you could use HTML5 local storage to save it in the browser. Only that person would ever be able to see it. If you need to be able to add a pane and share it with all visitors to the site, then you would want a server-side storage solution, either flat files or a traditional database.
On the other hand, if all you’re trying to accomplish here is to add a fourth tab in place of the three already there, that’s done by duplicating the pane in Freeway, and noting how the panes are identified. The script in this example uses the ID of the pane (which is set in the Name/ID field of the Item Inspector in Freeway, and you would need to rewrite the JavaScript (set in the Protaculous Action) to recognize that new element.
Walter
On Mar 10, 2014, at 10:19 AM, t50ufo wrote:
Hi Walter
This looks very promising
How do I add another colour element under Blue?
I don’t see where the trigger for the new element is.
If I can get that I think I can make this work for me.
Trevor
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options