NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: miasoft on April 12, 2019, 07:57:07 AM
-
How realise "Go to top" button?
NetTalk 9
-
Hi Mia,
more information please? Go to top of what? browse? form? page?
Tell us more about where you might use this button, and what you want it to do...
cheers
Bruce
-
Hello!
I want to use subj in browse in first. I found plugin https://markgoodyear.com/2013/01/scrollup-jquery-plugin/ (https://markgoodyear.com/2013/01/scrollup-jquery-plugin/), but I don't understand how insert it to my NWS
-
Hi,
You can do it in a very simple way without using javascript, just HTML.
Add 2 xHTML routines to your browse procedure:
1) This is the anchor - ie the location to go to
Routine Name: top
Location: Before <form>
XHTML: <div id="top"></div>
2) This is your Go to top link at the bottom of the page
Routine Name: bottom
Location: After </div>
XHTML: <a href="#top">Go to top</a>
This will insert a link with the text "Go to top" at the bottom of your page. When the link is clicked the page will scroll to the top.
You can make it nicer by creating a button instead of the link and you can do smooth scrolling etc but I'll leave this up to you to figure out. Now you've got the basic technique.
Peter
-
Thanks! It's work.
But I changed
2) This is your Go to top link at the bottom of the page
Routine Name: bottom
Location: After </div>
to
Location: After </table>
-
That?s fine too, put it where ever you like it to be.
The first routine puts an anchor on your page (a place to go to). You Can put as many anchors as you want/need on a page.
Peter