Hi Ernie, There are two ways tackle this (probably others as well, but these come to mind quickly):
1) Instead of going to an entirely new page, leaving the current one, load the new page in an overlay. There are several “ibox” javascript libraries that will do this. Then, the confirmation page displays in the same overlay, and they can close the overlay using a close button, returning to the original form (which they actually never left). One of my favorite scripts for this is tinybox. http://sandbox.scriptiny.com/tinybox2/ <http://sandbox.scriptiny.com/tinybox2/>. OR 2) Include an HTML anchor next to each of the form lines; your loop can create these. The anchor ID might be some variation on a variable in that line or segment of the form. So, variable15 might be associated with anchor15, etc. Since that variable name is being passed to your database, you’ll know what the associated anchor is. Then, the confirmation page can include a link (either a header refresh or a button to click) that returns you to the original page with #anchor15 at the end of the URL. That would case the page to redisplay and scroll to the element the user was working with. __ Ron Rosell President StreamLMS > On Feb 7, 2017, at 6:40 PM, ernie hilgers <[email protected]> wrote: > > Hi All, > > I am in need of a push in the right direction with the following situation I > cannot solve (for now): > > I put up a web page and load it with 20 lines of information with a heigth of > about 1.5 inch. (a loop is used) > The users normally has a laptop screen or a Pad (any brand), meaning they > have to scroll about 4 times if they have clicked a link some where at the > bottom of the list. > > When they click a link to see detailed information, another web page is send > to the browser by 4D with information from the database. > They must fill out some some information into the available fields and press > "submit". > > The submit sends this data back to the 4D database PUTS UP another screen > indicating the data is send. > > (here it comes:) > in order to show the 20 lines of information again, I build the web page > using the 4D loop then send the page to the browser. > Now the user has to scroll down (again) to find the link they clicked (to see > the details). > The users have approached me with the question if it is possible to make it > happen automatically. > > I want to have that clicked link smack in the middle of the screen (or at the > top) again and eliminate the need for scrolling down to find it. > Did some searches on the internet but the explanation to do this is too vague > for my current knowledge. > > recap: > 1) I build a webpage by filling it with data using a loop > 2) send the page to the browser > 3) user clicks a link > 4) fills out the form, click submit > 5) when receiving the data a form is send to the browser acknowledging data > is received, then after 4 seconds > 6) go back to step 1 > > Question: > How do I approach this problem in order to find a solution ? > > Pressing the "back button" requires the user to press it 3x to get back to > screen 1 and see which link was clicked, yes that works. > first back: the thank you, data received screen > second back: the form with info > third back: the original list AND yes in the visible part of the screen AND > the link has changed color > > However I don't want to allow the users to press the back button. > > Your input is much appreciated. > - either: wrong way do the web -thing-: tell me where to look > - more javascript : tell me what topic > - ...... > > greetings > > ernie hilgers (aruba) > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

