locked
Ajax Questions RRS feed

  • Question

  • User1327786460 posted

    I have two issues and hopefully someone have solutions for these issues.

    1. Ajax doesn’t remember the section it had opened, it always defaults to the first section when you navigate away
    2. When I share link with someone else, I noticed the intended section doesn’t open and it default to first section.

    Hopefully someone have thoughts on these two issues.

    Friday, January 12, 2018 7:35 PM

All replies

  • User475983607 posted

    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.

    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.

    Saturday, January 13, 2018 11:33 AM
  • User61956409 posted

    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

    Tuesday, January 16, 2018 10:12 AM