Message Boards Message Boards

GROUPS:

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

Posted 9 months ago
913 Views
|
1 Reply
|
1 Total Likes
|

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!

FreePlayer supports only Numeric InputFields, is this the problem?

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