Discovering dsck.js

24 views
Skip to first unread message

Didier Gasser-Morlay

unread,
Apr 4, 2014, 7:00:56 AM4/4/14
to dec...@googlegroups.com
hello to all, just discovering deck.js and so far I am more than impressed by what I see, thanks a lot to the author & all contributors for their time & efforts

I am just wondering about two things for which I could not find a clear answer:

- is it possible to do some real time loading of parts of a presentation ? (probably during a changepage event or equivalent) 
- is it possible to have some form fields data entry on a slide ? (like for ex. enter notes and update a server in real time, like a feed back during/after a presentation)

thanks in advance for your answers.

Didier




Didier Gasser-Morlay

unread,
Apr 4, 2014, 11:37:54 AM4/4/14
to dec...@googlegroups.com
Partly answering myself - have found an answer to an earlier post (sept 2012) where Caled said '... So just do your appending inside $(document).bind('deck.beforeInit', function() { ............. }

> And you COULD just keep calling init over and over.  I've written core and all the included plugins such that this could happen without messing anything up. ...' exactly what I am after :) :)

  I am just left with Form fields inside a slide, but from what I can see, reading the source code .... I don't see why not :)

Caleb Troughton

unread,
Apr 17, 2014, 4:15:59 PM4/17/14
to dec...@googlegroups.com
Hi Didier,

For the realtime loading of parts of your deck: Yes you can but the mechanism for making that update depends on what you mean. If you want to load some content within slides, using the deck.change event to examine what slide you're on and loading things as needed is a good path. If you want to *add* slides then right now you can call init again. But there are plans in upcoming releases to make adding slides or refreshing the slide list an explicit method call rather than the hack that is recalling init.

For forms, you should just be able to include forms in the slides and they just work. If they don't that's a bug and would love an issue opened on GitHub.

Thanks!

- Caleb

Didier Gasser-Morlay

unread,
Apr 17, 2014, 4:45:30 PM4/17/14
to dec...@googlegroups.com
Thank you for your answer Caleb

I look forwad to a future release implementing the management of slides dynamically, but I am sure that in the mean time the hacky way will do just fine, albeit likely slower than a real 'official' method


Didier 
Reply all
Reply to author
Forward
0 new messages