Message Boards Message Boards

DynamicModule does not assign properly in CDF but works well in NB?

Posted 7 years ago

I have made a small interactive module based on the dynamic module from the Mathematica help files. It runs well in NB format (full version), but fails in CDF Player. The section from the help file is:

Panel[DynamicModule[{f = Sin[x]}, 
  Column[{InputField[Dynamic[f]], Dynamic[f], 
    Dynamic[Plot[f, {x, -5, 5}]]}]]]

This is not exactly how I use it, but already this version does not run for any function other than a number, x or -x in CDF Player (or simulation). The Dynamic[f] field is not updated.

Is there a way to make it CDF compatible and keep the general nature of plotting any function? Thanks!

POSTED BY: Wolfgang Frey

FreePlayer supports only Numeric InputFields, is this the problem?

POSTED BY: Kuba Podkalicki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract