NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Jane on Today at 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.

2
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

 
3
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?
4
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

5
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
6
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
7
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Jane on September 15, 2026, 06:23:35 PM »
I sent my little example to Bruce in June of 2022, Richard, in case he thought it useful.

Glad you were able to make it work.

It's a simple no-dictionary wizarded app.

Because I was lazy and just incorporating stuff from one of my production apps, I added two separate CSS files to the webserver template (in the Styles/Files tab) and one little bit of javascript on the webserver template Scripts tab.

You can see from my zip file where those files go inside the web folder.  There's also a PNG with the icons.  (And with a bunch of other junk, since I just took it from a different app.)

I didn't change any of the wizarded embed code in the LoginForm.

The changes are on fields.

Note in LOC:Password the suppress comment and span value/comment.  Also note that it is not last on line and not last in cell.
The name of the LOC:Password equate needs to match the password document.querySelector line in the javascript file.  NT translates a colon into a double underscore.  In my production apps I normally change that to something else, but this was intended to work with an out-of-the-box wizarded app.

The new button is last on line.
On the button tab, note the text in the HTML before image/text field.  The ID that's set there is what the javascript uses.
Function call in the Javascript onclick field in the button's OnClick tab.
One class on the button's CSS tab

If mine works and yours doesn't, you're doing something wrong ;)





8
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Richard I on September 15, 2026, 06:04:31 PM »
HURRAH !!!
Many thanks Jane !
It compiles perfectly and works !
Now all I have to do is work out why it works and how you did it !

Can I suggest you send it to Bruce to incorporate into his next NT release examples?

With grateful regards,
Richard
9
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Jane on September 15, 2026, 04:53:23 PM »
Richard,
Here's a version that's built in NT14 (with the webhandler template that was changed from NT12).

Let me know if it compiles for you OK.

10
Web Server - Ask For Help / Re: Show/hide password in login form
« Last post by Richard I on September 15, 2026, 04:21:47 PM »
Hi Jane

Clarion 12.14000
NT 14.36

Thanks
Richard
Pages: [1] 2 3 ... 10