Recently, I've been working on utilizing an innovative IBM tool called Presto that efficiently transforms traditional green screens into browser-based pages. While the process is effective, it involves some quirky behaviors. One particular challenge I'm facing is the random appearance of text fields in unexpected spots. To tackle this issue, I have been employing a specific code snippet for each object:
document.getElementById("C0816").style.position = "absolute";
document.getElementById("C0816").style.left = "190px";
document.getElementById("C0816").style.top = "216px";
Although this method has proven effective thus far, I recently encountered a new complication. The page I'm working on dynamically removes and replaces objects, leading to errors when certain IDs are missing. How can I prevent these errors from disrupting the functionality? Despite exploring various solutions on different forums, my limited experience with JavaScript is evident as I struggle to implement the suggested fixes correctly within the code. Any guidance or support would be greatly appreciated. Thank you.