Thanks Vince. That as my first guess, but when I tried it, it bounced.
Michael has since sent me email so I have his address.
Bryant
Search found 8 matches
- Mon May 09, 2022 5:32 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
- Sun May 08, 2022 8:43 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Hi Michael I am having another basic problem with DUI/MiServer. I build a page with buttons; in a callback I clone the selected button; then I try to append the cloned button to an existing div. The cloned button appears for a brief second and then disappears. I assume that MiServer/DUI is reloading ...
- Wed Apr 20, 2022 6:43 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Michael Your code worked on chrome for me. In addition Your ThreePage.dyalog code was very instructive. It showed me the syntax for: 1) how to use type=importmap with _.script ScriptFollows 2) how to use type=module with _.script It also showed 3) how to capture info in a Page's or Template's public ...
- Wed Apr 20, 2022 3:47 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Michael Many Thanks!!! This is really helpful. I downloaded the zip from your cloud, so you can remove it if you need the space. I have been using chrome, but making the template fixed most of the problem. I will test your approach and then see if I can import less than the entire Three.js library ...
- Mon Apr 18, 2022 6:12 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Hi Michael I took your suggestion and made a template (subclass of MiPage). I then added all of the required scripts to load javascript libraries in the head. I made all the paths relative to ServerRoot. I then used that template for my tests and it all worked. Here is the code for the template ...
- Sun Apr 17, 2022 7:53 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Hi Michael I agree that using a template is a good idea. That was my plan after doing some simple testing. My real issue is with how MiServer/DUI handles javascript namespaces when they differ from the from the module specifier. I realize the javascript namespace is a local name. Here is a non ...
- Fri Apr 15, 2022 4:34 am
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
Re: javascript es6 modules
Hi Michael Thx for the reply. I will try what you have suggested. I have been using scripts which load local files e.g. Three.js and GLTFLoader.js. I shut off CORS using the Moesif Origin & CORS changer. This all works as long as I don't use modules and scripts of type="importmap" Bryant
- Mon Apr 11, 2022 6:12 pm
- Forum: MiServer
- Topic: javascript es6 modules
- Replies: 15
- Views: 63755
javascript es6 modules
Is it possible to load javascript es6 modules
and use the imports statement in either MiServer or DUI?
If so, how does one do this? I tried doing it indirectly
since import can not be used with inline scripts.
and use the imports statement in either MiServer or DUI?
If so, how does one do this? I tried doing it indirectly
since import can not be used with inline scripts.