Page 1 of 1

Documentation

Posted: Wed Dec 11, 2019 5:53 pm
by dougmatthews47
Hello,
Where can I find some extensive documentation on the javascript functions and widgets within the Visual Designer.
Example....
I was looking for how to retrieve the state of a radio button and value when I found an example on the forums pertaining to something else entirely...

if (getObj("PrtRb1").checked) wsmode=getObj("PrtRb1").radioValue;

Where can I find documentation on things like the .checked or .radioValue, etc,etc...?
This example just happened to be the functions I was looking for.
However, It would be much quicker if there was some documentation on the functions I can use


Thank you much

Re: Documentation

Posted: Wed Dec 11, 2019 6:05 pm
by Scott Klement
The JavaScript coding documentation for Profound UI (client-side JavaScript and Widgets) can be found here:
https://docs.profoundlogic.com/x/1wBK

It's not exhaustive because a lot of what you can do is standard JavaScript, not really part of our products, but just generally part of coding JavaScript, HTML, etc.

For example, the 'checked' property you cite is part of the standard HTML DOM. You can read more about it here:
https://www.w3schools.com/jsref/prop_ch ... hecked.asp

The getObj() API that you're using is really just our own shorthand for document.getElementById() that you find in standard JavaScript coding. So you are getting the HTML check box element, and checking it's "checked" status the same way as the examples in the link above.

The 'radioValue' property that you cite is one that I'm not familiar with. I suspect that's something specific to Profound UI, but I don't see documentation for it anywhere -- which means it's an an accidental omission in our documentation. If you notice things like that, you can let our support team know at support@profoundlogic.com and we can add documentation.