NetTalk Central

Author Topic: Refresh a page using a button?  (Read 4105 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Refresh a page using a button?
« on: March 16, 2017, 05:41:02 AM »
How can I refresh a page using a button?
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a page using a button?
« Reply #1 on: March 21, 2017, 03:04:06 AM »
define "refresh a page"?
As in re-load a page?
just use a button and set a URL to it.

Cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Refresh a page using a button?
« Reply #2 on: May 29, 2017, 01:16:16 AM »
Hi,

I would like the button to execute some code first and then refresh the page.
Is it possible to execute some code first, by using the "Send Value to Server" option, or are these functions mutually exclusive.

Cheers,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refresh a page using a button?
« Reply #3 on: May 29, 2017, 05:37:24 AM »
They're mutually exclusive.
but the code on the server side could include JavaScript to send back to refresh the page.

p_web.Script('javascript goes here;')

Google that a bit and see if you figure out the right JavaScript...

cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Refresh a page using a button?
« Reply #4 on: May 29, 2017, 05:50:01 AM »
Ok thx
Rene Simons
NT14.14