Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Wow, thanks Alex! That’s brilliant and exactly what I need! I must have missed (or forgotten) that session at the conference - I’ll try to find it among the recordings to see if it helps explaining the various bits a little. In any case I’ll experiment with the code and see what I can get to wor

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Alex Tweedly via use-livecode
You are correct Andreas - all this basic javascript interaction *really* should be in the default built already. A sample stack for building a web app was discussed in a session in the LC Global conference, by Steven Crichton and Michael McReary. It has all kinds of javascript magic, and the c

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Mark Wieder via use-livecode
On 8/6/22 04:44, Andreas Bergendal via use-livecode wrote: and Ali Lloyd’s cool WordLC app: https://alilloyd.livecodehosting.com/wordlc/wordlc.html Unfortunately that throws a divide-by-zero error at line 461 in computeGridFieldWidth when I try to resize the window. -- Mark Wieder ahsoftw

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Thanks guys, those are indeed great resources for many cases. What I’m after here however, are specific solutions to the javascript/livecode ’pairing’ of code to manage browser window/stack resizing. To avoid reinventing the wheel, if possible. I imagine this would be of great interest to a lot

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Mark Wieder via use-livecode
On 8/6/22 07:30, harrison--- via use-livecode wrote: I have found the following website to be very helpful with a lot of my javascript projects. Do you know about these guys? https://www.w3schools.com/js/default.asp And also the amazing GitHub Cop

Re: How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread harrison--- via use-livecode
Hi Andreas, I have found the following website to be very helpful with a lot of my javascript projects. Do you know about these guys? https://www.w3schools.com/js/default.asp I hope that helps you. Cheers, Rick > On Aug 6, 2022, at 7:44 AM, Andrea

How to use addEventListener for browser window resizing in web deployment?

2022-08-06 Thread Andreas Bergendal via use-livecode
Hi all, So I’ve been experimenting with web deployment with LC 10 dp 4. Now I would like my stack to be able to react to resizeStack events when the browser window is resized by the user. Or to adapt to e.g. a mobile browser screen size. For this, if I understand correctly, some javascript need