Get Value From JavaScript - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Get Value From JavaScript (/thread-1091.html) |
Get Value From JavaScript - ShaneStump - 05-30-2019 Howdy All! Is there an easy way to get a value from a control via javascript? That is, I want to do something like: bool bChecked = ExecuteJavaScript("document.getElementById("myCheck").checked;"); Thanks in advance, Shane RE: Get Value From JavaScript - kudzu - 05-31-2019 if bChecked is client side (I see = not :=) then why not just call the .getElement etc directly? For 17 check this out: https://doc.atozed.com/en/iw17/lang/delphi/tutorial/page-properties/ RE: Get Value From JavaScript - ShaneStump - 05-31-2019 Howdy Chad! It is on the SERVER side (remember I program in c++)! The link looks very promising for IW 17! Well, I need to finish a fix for the latest DevExpress component update and then I need to search for a new jQuery CheckBox / RadioButton component(s) I can wrap to replace the default IWBS4 as they aren't working and I don't have time to figure out where in the zillion overrides they get called / updated properly. Thanks and have a nice weekend! Shane RE: Get Value From JavaScript - kudzu - 06-01-2019 I asked Alexandre to chime in. There are ways in 14/15 as well but he is better positioned to suggest the best approach in those. |