TMS Software Blog: Extend TMS WEB Core with JS Libraries with Andrew:<br />InteractJS Revisited: Moving Elements
Summary
In an application where the dimensions dont change (much), an image background could be just as useful and perhaps even better here, as there would be no drawing time required, and additional cosmetic touches would perhaps be easier. Well, in a typical TMS WEB Core application, when using JavaScript inline (between the asm... ...end blocks) we can refer to Delphi Form variables and methods by adding a "this." If we wanted to augment or otherwise alter the list of CSS properties in the original declarations made in WebFormCreate, wed then have to update the for loop with the new range. Here, we can pass in the HTML id as part of the Create() function and set the Parent property to be the divContainer component we were just working with in the last step. Hopefully, though, theres enough here to demonstrate many of the more common use cases, and explained with sufficient detail that you can quickly add these kinds of interactions to your own TMS WEB Core projects.