Tag Info

New answers tagged

2

Implementation 1 This should produce the desired GUI. askUser[matrix_] := DialogInput[ Column[{ Grid[{ToString@#1, InputField[Dynamic[#1], FieldSize -> Tiny], ToString@#2, InputField[Dynamic[#2], FieldSize -> Tiny]} & @@@ matrix, Alignment -> Left], Row[{CancelButton[], DefaultButton[DialogReturn[matrix]]}] }]] ...


10

Just like Albert I recommend using the second argument of Dynamic. Furthermore I recommend that you embrace the first A in AJAX, which stands for "asynchronous", so the kernel isn't busy while it collects the data (this might be why some change events are lost with your code). You can see how well the second argument of Dynamic works with this example: ...


9

I think the standard way to do this is to use the second argument of Dynamic, e.g. like so: With[{ getCompletion = Function[ Import[ "https://maps.googleapis.com/maps/api/geocode/json", "JSON", "RequestParameters" -> {"address" -> #} ] //. {{r__Rule} :> (Association[r])} ]}, DynamicModule[{ addr = "555 Mission St, San ...


8

Support for the mechanism that makes the CDF browser plugin possible is being phased out, and the CDF player already does not work on the newest versions of Google Chrome. In light of this there is no better time than now to start mixing the Wolfram Language with HTML and Javascript. The concerns of using Wolfram Language as a backend/server language is no ...


8

Here is a basic example of how Mathematica code would be deployed. Get["http://exampledata.wolfram.com/Collatz.m"]; ?? Collatz Collatz[5] {5, 16, 8, 4, 2, 1} You can look into APIFunction that you access directly if you want to build an interface with HTML/Javascript, or if you want a simple interface running on Wolfram's cloud you can use ...


1

To flesh out the comment, you need to add Control to each of the variables, and a Row[ ] to get them in a row. Row[{Control[{phi}], Control[{s1}], Control[{s2}]}] will put your first three in a single row. As a simple example: Manipulate[phi*s1*s2, Row[{Control[{phi}], Control[{s1}], Control[{s2}]}]] Notice that the answer contains Nulls until you ...



Top 50 recent answers are included