NetTalk Central

Author Topic: Refresh browse from Java Script  (Read 3589 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Refresh browse from Java Script
« on: November 01, 2015, 11:53:55 PM »
Hi

Is it possible to refres a browse from JS?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Refresh browse from Java Script
« Reply #1 on: November 03, 2015, 12:39:56 AM »
$("browse_div").ntbrowse('server','_event_=something&_refresh_=whatever')'

Where;
browse_div is the div identifier of the browse widget.
something and whatever depend on what sort of refresh you are after. ie what happend so that you think a refresh might be necessary. If you look in jquery.nt-browse.js you'll see some examples.

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Refresh browse from Java Script
« Reply #2 on: November 03, 2015, 10:03:25 PM »
Awsome - thanks!