![]() |
|
Want simple JS demo - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (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: Want simple JS demo (/thread-1190.html) |
RE: Want simple JS demo - Kristy - 08-18-2019 (08-18-2019, 06:55 AM)DanBarclay Wrote: Hi Kristy, Hi Dan, I don't know how to setup http.sys environment. Everytime I tried to IW test base on http.sys, windows blue screen appear. So I just copy and paste the code Jose given. The code can show the timezone offset value right in IWEDIT1. But if I try to assign IWedit1.text to IWlabel.caption, IWbutton.caption... Its nothing changed. Actually I want to get this value other than ask user to set their local time. Daylight saving time is also a cause. It seem that show value on IWedit1 but also destroy the internal structure. I can't get the value to backend process. That my facing problem. Oh No! Just simple as below also not work? (Windows 10 Home + Delphi 10.3.2 + Intraweb 15.1.3) procedure TIWForm1.IWButton1Click(Sender: TObject); begin WebApplication.ShowMessage('12345678'); end; Which version can be work for production? (May be never having! At least never having completed manual) (No wonder users are getting less and less.) RE: Want simple JS demo - DanBarclay - 08-18-2019 You don't need to know anything about httpsys. The demo Jose provided should run as it is. Just open the project in Delphi and run it. What does it do? If you want to replace the code with standalone startup then in LeoBruno project file: Replace IWStartHSys with IWStart in uses. Replace TIWStartHSys.Execute(True) with TIWStart.Execute(True) It works fine either way. In fact, until you mentioned it I hadn't even noticed it was httpsys. Dan RE: Want simple JS demo - kudzu - 08-18-2019 "Everytime I tried to IW test base on http.sys, windows blue screen appear" There is nothing in IW that would cause a Windows blue screen in any modern version of Windows. It sounds like there is something else wrong on your Windows. Generally since XP and especially Vista, only a low level driver or the OS itself can BSOD. IntraWeb errors will be presented as displayable messages or in an error log file. RE: Want simple JS demo - Alexandre Machado - 08-18-2019 (08-18-2019, 07:47 AM)Kristy Wrote:(08-18-2019, 06:55 AM)DanBarclay Wrote: Hi Kristy, JNP's demo works fine and should work fine in any IW 15.x version. I wonder what's the problem you are facing. Several users are running Http.sys applications in production for several months and there is not a single report of problems due Http.sys. Have you tried a simple Indy SA server? What's the error you are getting? RE: Want simple JS demo - Kristy - 08-19-2019 (08-18-2019, 09:45 PM)Alexandre Machado Wrote: JNP's demo works fine and should work fine in any IW 15.x version. I tried that on my new Dell notebook, brought at three week ago. Flash install Delphi 10.3.2 + Intraweb 15.1.3 http.sys will hang then windows blue screen indy SA server is work but WebApplication.ShowMessage('12345678'); no message show and no error message. Jose's demo work as display, but can't assign value to variable. Try VCL windows application, everything ok. RE: Want simple JS demo - Alexandre Machado - 08-19-2019 What is the exact version (including build number) of your Windows and the language used? I'll test Jose's demo as Indy SA and let you know the results RE: Want simple JS demo - DanBarclay - 08-19-2019 (08-19-2019, 03:14 AM)Kristy Wrote:(08-18-2019, 09:45 PM)Alexandre Machado Wrote: JNP's demo works fine and should work fine in any IW 15.x version. Some fresh code for the demo Jose provided for you. Replace his two procedures with the following. They do things more than once, different ways, but provide your original request for timezone offset in addition to showing the callback with comments. Code: procedure TIWForm1.clbkGridSel(aParams: TStrings );It's not pretty or efficient, but see if that helps understanding. Dan RE: Want simple JS demo - Kristy - 08-19-2019 My Notebook config: Dell Inspiron 5480 Intel Core i5-8265U 1.60GHz, 24GB Ram Windows 10 64bits Home Edition, v.1903.18362.295 (Taiwan) (08-19-2019, 03:35 AM)DanBarclay Wrote: Some fresh code for the demo Jose provided for you. Replace his two procedures with the following. They do things more than once, different ways, but provide your original request for timezone offset in addition to showing the callback with comments.Dan, The code is nothing show, no pop up message, IWedit1 nothing changed value. No any error message. Silent like in deep ocean. RE: Want simple JS demo - DanBarclay - 08-19-2019 Using Windows 10 Home, I think IIS is not installed by default but can be installed. I think it will be under Programs and Features. I'm not certain but I doubt HTTP.sys will be installed unless you install IIS. The project should still work using Indy with the changes I provided in an earlier message (IWStart). Others may have more info on using HTTPSys on Windows 10. Dan RE: Want simple JS demo - Kristy - 08-19-2019 (08-19-2019, 05:14 AM)DanBarclay Wrote: Using Windows 10 Home, I think IIS is not installed by default but can be installed. I think it will be under Programs and Features. I'm not certain but I doubt HTTP.sys will be installed unless you install IIS. I have IIS installed before. So I uninstall it to see what's differ. Same as result. Sigh! Create fresh new project. just try to show webapplication.showmessage() and assign value, work! |