Ajax doesn’t remember the section it had opened, it always defaults to the first section when you navigate away
AJAX does not "remember". AJAX is used to make client HTTP requests. It is up to the programmer to write code that remembers the state of the user's input.
hasanade
When I share link with someone else, I noticed the intended section doesn’t open and it default to first section.
Again, it is up to the programmer to handle the expected state.
Is there anyway you can post your code and explain how the code is expected to function and what actually happens.
You can try to store the index of active section in somewhere, such as
web storage (store data locally within the user's browser) or external storage (a database table etc) , and then retrieve the active section index and set that section as active after do navigation.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
10 Posts
Ajax Questions
Jan 12, 2018 07:35 PM|hasanade|LINK
I have two issues and hopefully someone have solutions for these issues.
Hopefully someone have thoughts on these two issues.
All-Star
53641 Points
24007 Posts
Re: Ajax Questions
Jan 13, 2018 11:33 AM|mgebhard|LINK
AJAX does not "remember". AJAX is used to make client HTTP requests. It is up to the programmer to write code that remembers the state of the user's input.
Again, it is up to the programmer to handle the expected state.
Is there anyway you can post your code and explain how the code is expected to function and what actually happens.
All-Star
40565 Points
6233 Posts
Microsoft
Re: Ajax Questions
Jan 16, 2018 10:12 AM|Fei Han - MSFT|LINK
Hi hasanade,
You can try to store the index of active section in somewhere, such as web storage (store data locally within the user's browser) or external storage (a database table etc) , and then retrieve the active section index and set that section as active after do navigation.
With Regards,
Fei Han