NetTalk Central

Author Topic: GET response without NetTalk Ajax "stuff"  (Read 49 times)

the_question

  • Newbie
  • *
  • Posts: 5
    • View Profile
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.

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.