NetTalk Central

Recent Posts

Pages: [1] 2 3 ... 10
1
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by JohanR on December 03, 2025, 08:55:27 PM »
Hi Jane

Thanks!

Coincidentally I found the same way late last night from ChatGPT, but did not try to implement.

Got it working this morning by adding this to the "send new value to server" embed

   p_web.Script('document.title="' & clock() & '";')


Pretty handy, multiple tabs, can display client name, quote nrs, order nr, status etc...
Hardest thing to do now is decide what to display and to keep it short enough

NTWS covers so much thought there might be a builtin method.

thanks again

Johan
2
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by Jane on December 03, 2025, 05:11:58 PM »
I haven't done it.
But as an experiment, Johan, open the F12 developer tools and switch to the Console tab.

Type in

Code: [Select]
document.title="Invoice 123";
3
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by JohanR on December 02, 2025, 09:39:44 PM »
Hi Ron

No,
Its the 'Orders' with the red logo which is on one of the browser tabs.
Currently it's generic, but would be good to have the actual order number there or the quote nr,
if multiple tabs are open

I have added an attachment that currently show multiple tabs with the order nr , this is loaded at page loading,

Trying to see if I can change that text while the user is on the form, eg. when it's a quote and the users converts to a confirmed order, then change it from the quote nr to the order nr.

This is not critical, but a nice touch, and would be good to know how to access that data as it might have other uses for feedback.

This is an example of Bitfinex crypto trading exchange updating the price live
https://trading.bitfinex.com/trading?type=exchange


regards

Johan

 
4
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by rjolda on December 02, 2025, 02:12:35 PM »
HI Johan,
Are you trying to change Tab (Laptop5)  to something else like Tab (LaptopDONE)?  Is that what you are trying to change?
Ron
5
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by JohanR on December 02, 2025, 06:21:15 AM »


Hi Ron

Apologies, my question probably was not clear, seemed very clear to me when I was typing it :)

See the attachment

On the procedure General TAB, I can specify the page title and I can use a session variable
Looking in the code it is loaded with this line
p_web.MakePage('OrderMasterForm',Net:Web:Form,p_web.site.LoginRequired,p_web.GSV('my_title'),,,)

So I'm hoping to change that to a dynamic quote nr, or an order nr as the user changes the status on the page.



I also possibly created confusion with this line , Ignore this
p_web.ntForm(loc:formname,'setTabHeadingText',0,clip(loc:quote_tab_text))



thanks


Johan

6
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by rjolda on December 02, 2025, 04:36:46 AM »
Johan,
IF you are trying to modify the text in the Tab header itself, you might be able to do it in css.   I Took the tab Properties page for the tab and I put in names for the CSS selectors in the fields on Properties tab. e.g. the  8th item down, the Tab Heading Item CSS:  I put in 'tab1headingitemcss'.  Tab text is "Actions".

Looking at it with Inspector:

 <li class="tab1headingItemcss ui-tabs-tab ui-corner-top ui-state-default ui-tab ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="tab_a_mobilebutton_memform0_div" aria-labelledby="ui-id-14" aria-selected="true" aria-expanded="true"><a class="tab1headingcss ui-tabs-anchor" href="#tab_a_mobilebutton_memform0_div" tabindex="-1" id="ui-id-14"><div>Actions</div></a></li>
                         
<a class="tab1headingcss ui-tabs-anchor" href="#tab_a_mobilebutton_memform0_div" tabindex="-1" id="ui-id-14"><div>Actions</div></a>

 
The Text of the Tab is "Actions" and you see it in the DIV.  There are css selectors around it like class="tab1headingcss ui-tabs-anchor" and class="tab1headingcss ui-tabs-anchor"
You might be able to use these to change the text of the DIV.   I have not played with this so if you figure this out, let us know.
Ron
7
Web Server - Ask For Help / Re: Change Page Title - browser tab description
« Last post by rjolda on December 02, 2025, 03:38:12 AM »
HI Johan,
It is not clear what you are trying to update.  The Page Heading or the Text within the little Tab itself?
Ron
8
Web Server - Ask For Help / Change Page Title - browser tab description
« Last post by JohanR on November 29, 2025, 10:11:28 PM »
Hi,

How to update the browser tab heading dynamically as a user changes fields on a form.
eg. change from quote to order , then to change the browser tab description from the quote nr to the order nr


Changing a tab heading I used the following
p_web.ntForm(loc:formname,'setTabHeadingText',0,clip(loc:quote_tab_text))

I see the this line in the webhandler when the page is created 
p_web.MakePage('OrderMasterForm',Net:Web:Form,p_web.site.LoginRequired,p_web.GSV('my_title'),,,)

However cannot find how to update the browser tab


thanks

Johan















9
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by rjolda on November 26, 2025, 12:36:25 PM »
HI Johan,
I have an NT App and used session data all over the place.  I added an API which talks to an outside kiosk.  After a few iterations I found that the API had ITS OWN SESSION ID and it was NOT the same SESSION ID as the app... interesting, but the remote kiosk interacts with the API on its own thread and has its own session values.  So, the p_web session data that I passed to the API procedure from my NT app did not work ( since the API procedure was using its own Session ID.  ) After I thought about it a little, it made sense. I had to pass my data into the API via a few fields in a record that was shared by both the API and NT app.  It was not worth trying to dig out Session Data by Session ID from the QUEUE.. but, I learned that p_web has scope to it. 
Ron
10
Web Server - Ask For Help / Re: Pass a Session Variable as a parameter?
« Last post by Jane on November 25, 2025, 03:27:08 PM »
I don't understand, Johan, but I'm glad you do ;)

If you pass p_web into a function, then within that function you can do the regular p_web.GSV('blah') or p_web.SSV('blah','blork')

As for the structure of the session data, you might look through netwebsessions.inc at the various queue types and netwebsessions.clw for how they're being accessed.

Pages: [1] 2 3 ... 10