This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Web Server - Ask For Help / GET response without NetTalk Ajax "stuff"
« on: March 04, 2026, 10:58:54 AM »
Hello,
Is there a way to tell NetTalk server not to send ajax data in response?
I have a browse, and I have created my event where response data are sent to my fetch() function request. Even when I use p_web.SendJSON(), it is wraped inside div.
...
<div id="contentbody_div" class=" nt-contentpanel nt-contentpanel-h">{"name":"John", "age":30, "car":null}</div>
...
I have tried with Accept parameters in request, but it is ignored by the server.
p_web.SendString() also gets wraped.
Is there a way to have response just with my data? I am using NetTalk 14.36 version.
Is there a way to tell NetTalk server not to send ajax data in response?
I have a browse, and I have created my event where response data are sent to my fetch() function request. Even when I use p_web.SendJSON(), it is wraped inside div.
...
<div id="contentbody_div" class=" nt-contentpanel nt-contentpanel-h">{"name":"John", "age":30, "car":null}</div>
...
I have tried with Accept parameters in request, but it is ignored by the server.
Code: [Select]
const response = await fetch("/BrowsePage?" + params, {
method: "GET",
headers: { Accept: "application/json" },
});p_web.SendString() also gets wraped.
Is there a way to have response just with my data? I am using NetTalk 14.36 version.
2
Web Server - Ask For Help / Re: Question about PressedButton parameter
« on: February 11, 2026, 01:39:32 PM »
Thank you for reply. I understand how NetTalk works, and that it is different from native Clarion.
My question was only why value PressedButton is renamed to be as the value. I was just wondering why is that? Probably it is because when you go to some other page and that value exist, there could be some unexpected behavior. You would need to clear it before proceeding.
I have solved my problem by disabling option that action is included, and added my parameter to URL field 'NameOfPage?MyParam=VAL'.
My question was only why value PressedButton is renamed to be as the value. I was just wondering why is that? Probably it is because when you go to some other page and that value exist, there could be some unexpected behavior. You would need to clear it before proceeding.
I have solved my problem by disabling option that action is included, and added my parameter to URL field 'NameOfPage?MyParam=VAL'.
3
Web Server - Ask For Help / Question about PressedButton parameter
« on: February 10, 2026, 03:45:55 AM »
Hello,
Why link parameter ?PressedButton=SomeValue becomes somevalue=somevalue?
Is there a reason for changing name from pressedbutton to somevalue?
Code in NEtWeb.clw is
Why link parameter ?PressedButton=SomeValue becomes somevalue=somevalue?
Is there a reason for changing name from pressedbutton to somevalue?
Code in NEtWeb.clw is
Code: [Select]
...
temp = lower(self.GetValue('pressedbutton'))
self.SetValue(clip(temp),clip(temp))
self.DeleteValue('pressedbutton')
4
Web Server - Ask For Help / Re: How to delete another session (multiple login same user)
« on: February 07, 2026, 10:29:22 AM »
I assume that this is a method to call now:
Code: [Select]
p_web.WebServer._DeleteSession()
5
Web Server - Ask For Help / How to delete another session (multiple login same user)
« on: February 06, 2026, 02:39:36 PM »
Hello,
I wanted to write in this topic, https://www.nettalkcentral.com/forum/index.php?topic=1505.msg5470, but there was a warning that I should start a new topic.
Question is - how to implement Bruce's example in current NT?
I can not access .RequestData variable. I have tried to access it in NetWebHandleRequest (WebHandler), Authenticate(pUser, pPassword) method and NetWebForm (LoginForm), ValidateUpdate routine.
Or am I trying it in the wrong place?
I wanted to write in this topic, https://www.nettalkcentral.com/forum/index.php?topic=1505.msg5470, but there was a warning that I should start a new topic.
Question is - how to implement Bruce's example in current NT?
I can not access .RequestData variable. I have tried to access it in NetWebHandleRequest (WebHandler), Authenticate(pUser, pPassword) method and NetWebForm (LoginForm), ValidateUpdate routine.
Or am I trying it in the wrong place?
Pages: [1]