Message Boards Message Boards

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

GROUPS:

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
Answer
1 month ago

FreePlayer supports only Numeric InputFields, is this the problem?

POSTED BY: Kuba Podkalicki
Answer
1 month ago

Group Abstract Group Abstract