1
Web Server - Ask For Help / Re: Custom response headers
« Last post by the_question on Today at 01:45:10 AM »This is inside NetWebHandleRequest:
Code: [Select]
p_web.CreateHeader PROCEDURE(NetWebServerHeaderDetailsType p_HeaderDetails)
ReturnValue ANY
! Start of "NetTalk Method Data Section"
! [Priority 5000]
! End of "NetTalk Method Data Section"
CODE
! Start of "NetTalk Method Executable Code Section"
! [Priority 2500]
p_HeaderDetails.CustomHeader = CLIP(p_HeaderDetails.CustomHeader) & |
'<13,10>Cross-Origin-Opener-Policy: same-origin' & |
'<13,10>Cross-Origin-Embedder-Policy: require-corp'
! Parent Call
ReturnValue = PARENT.CreateHeader(p_HeaderDetails)
! [Priority 7500]
! End of "NetTalk Method Executable Code Section"
RETURN ReturnValue
2
Web Server - Ask For Help / Re: Custom response headers
« Last post by Bruce on September 21, 2026, 01:16:02 PM »show your code, and where it goes.
3
Web Server - Ask For Help / Re: Small and fast response
« Last post by Bruce on September 21, 2026, 01:12:49 PM »I think you'll find the current error fits inside the minimum TCP packet size. You won't see any performance difference making it smaller.
But of course you can derive your own code into the SendError (or wherever) to send back whatever you like.
But of course you can derive your own code into the SendError (or wherever) to send back whatever you like.
4
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by rjolda on September 19, 2026, 07:10:34 AM »Jane,
That is pretty nifty. Good example of JS use. Very helpful for those of us who are slowly getting our toes wet with JS.
Thanks for sharing.
Ron
That is pretty nifty. Good example of JS use. Very helpful for those of us who are slowly getting our toes wet with JS.
Thanks for sharing.
Ron
5
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Jane on September 18, 2026, 11:02:18 AM »At a guess, you've forgotten to add the class to the button.
It sets the button to transparent with no border and no outline.
It sets the button to transparent with no border and no outline.
6
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Richard I on September 17, 2026, 06:07:17 PM »Hi Jane,
I have it working, thank you, in my app.
But I do have one issue please.
My TogglePasswordButton, while having the eye icons ok, is coloured solid blue and is the same size and border defined as the other fields,
whereas your button in your app, is hidden with only the icon showing.
I have added to my app, your custom.css
Ill check the CSS files and add Color Transparent, but
If you could comment, on the size ,that would be appreciated.
Regards,
Richard
I have it working, thank you, in my app.
But I do have one issue please.
My TogglePasswordButton, while having the eye icons ok, is coloured solid blue and is the same size and border defined as the other fields,
whereas your button in your app, is hidden with only the icon showing.
I have added to my app, your custom.css
Ill check the CSS files and add Color Transparent, but
If you could comment, on the size ,that would be appreciated.
Regards,
Richard
7
Web Server - Ask For Help / Custom response headers
« Last post by the_question on September 17, 2026, 07:27:04 AM »Hello,
I am trying to add some elements in response headers for NetWebPage. I have found in NetWebHandleRequest p_web.CreateHeader procedure. There is a parameter NetWebServerHeaderDetailsType p_HeaderDetails. When I add data in p_HeaderDetails.CustomHeader before ReturnValue = PARENT.CreateHeader(p_HeaderDetails) call, nothing is saved in generated header.
How can I add elements in response header?
I am trying to add some elements in response headers for NetWebPage. I have found in NetWebHandleRequest p_web.CreateHeader procedure. There is a parameter NetWebServerHeaderDetailsType p_HeaderDetails. When I add data in p_HeaderDetails.CustomHeader before ReturnValue = PARENT.CreateHeader(p_HeaderDetails) call, nothing is saved in generated header.
How can I add elements in response header?
8
Web Server - Ask For Help / Re: Media how to display PDF in a BLOB in a Media Object
« Last post by JohanR on September 16, 2026, 10:40:04 PM »Hi Ron
Think you need to save the PDF to disk and then specify the name of the file in the media control.
regards
Johan
Think you need to save the PDF to disk and then specify the name of the file in the media control.
regards
Johan
9
Web Server - Ask For Help / Media how to display PDF in a BLOB in a Media Object
« Last post by rjolda on September 16, 2026, 10:42:50 AM »Hi,
I have a PDF file stored in a blob. Want to display it in a media object. I tried st.FromBlob('myblob') to load it into a string theory object and then FOr URL of Media Object: st.GetValue().
Did not work.
Better way to do it correctly?
THanks,
Ron
I have a PDF file stored in a blob. Want to display it in a media object. I tried st.FromBlob('myblob') to load it into a string theory object and then FOr URL of Media Object: st.GetValue().
Did not work.
Better way to do it correctly?
THanks,
Ron
10
Web Server - Ask For Help / Re: How to Hide and UnHide a Radio Option
« Last post by Johan de Klerk on September 15, 2026, 09:29:28 PM »Hi Jane/Ron,
Thanks for your suggestions.
I have a lot of conditions to check and then Hide or not Hide some of the Radio Options.
I eventually created a Routine with this code:
p_web.script('$(''label[for="Loc__VehicleType_1"]'').hide();')
or
p_web.script('$(''label[for="Loc__VehicleType_1"]'').show();')
From my test so far it seems to work 100%.
Regards
Johan de Klerk
Thanks for your suggestions.
I have a lot of conditions to check and then Hide or not Hide some of the Radio Options.
I eventually created a Routine with this code:
p_web.script('$(''label[for="Loc__VehicleType_1"]'').hide();')
or
p_web.script('$(''label[for="Loc__VehicleType_1"]'').show();')
From my test so far it seems to work 100%.
Regards
Johan de Klerk
Recent Posts