Copy link to clipboard
Copied
Hello,
I am not sure if this is the right place to post this. Anyways, what I have is content on a webpage that dynamically changes based on what type of tv users have added. I have a form that is generated for each row that has a drop down for rating the tvs. The user chooses a rating and after clicking that rating the form is submitted using javascript. What I want is after the user submits the form, the same page should reload, with the new rating appearing and the user be in the same spot on the webpage that they were previously in. I have no idea how to make the user go to the same spot on the webpage. This is purely for user convenience as it would be quite frustrating when someone were to want to rate 5 tvs and have to scroll down 5 times to get to the same spot that they were at. I could use an anchor but if there was enough content the user would still need to scroll down. It'd be more convenient going to where the user was at the scrollbar. Any help is appreciated.
Thanks,
Kelsey
Copy link to clipboard
Copied
Not knowing what platform you are in I can't be too specific, but this principle will work the same for any of them. You could dynamically populate an anchor tag for each tv location - assuming this is database driven - otherwise hard code it, then pass that variable in the form and set a location tag to take the user to that anchor tag location.
--
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
Twitter.com/LawrenceCramer
FaceBook.com/LawrenceCramer
Copy link to clipboard
Copied
Thanks. I don't know why I didn't think of that. I've been doing that already with spry collapsible panels and it works great. It is database driven so I will probably dynamically create anchor links and forms (since I'm using javascript to submit the specific form) and the action of those forms will be taken to the anchor.
Thanks again,
Kelsey