NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rupertvz on August 15, 2019, 03:31:26 AM

Title: Open tab from button on NWF
Post by: rupertvz on August 15, 2019, 03:31:26 AM
Hi Guys,

I have a NWF with 5 x tabs.  What is the easiest way to open (example tab-5) on the NWF with the click of a button from the 1st tab?
Title: Re: Open tab from button on NWF
Post by: Alberto on August 15, 2019, 05:59:52 AM
Just an idea...
If you pess F12 and select the tab control you will see... pic

And this is the code in the tab link

http://132.148.84.1:8633/uCuenta?change_btn=change&_bidv_=1Yl0ZcIV#tab_ucuenta3_div

Then what you need to do is call the same form with the change action and adding the #tab_ucuenta3_div bookmark

Hope this helps
Title: Re: Open tab from button on NWF
Post by: Bruce on August 15, 2019, 09:53:11 PM
From memory. I've not tested, in your button embed code you wold have

p_web.ntForm(loc:formname,'showTab',x)

Where x is the tab you want to display counting from 0 as the first tab. (That's from memory, it may be that tabs are counted from 1.)

cheers
Bruce