• Resolved webengineer

    (@webengineer)


    How can I redirect to a specific tab on postback? I have a four-tab page for editing member profiles. Each page has a Submit button which posts back to the same function to update the database fields from that tab. However, on postback it automatically redirects to the first tab but if the user is editing data on the fourth tab I want it to come back to the fourth tab after Submit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author richteam

    (@richteam)

    Hello Dear @webengineer.

    Thank You for posting your question. Please can You publish a link for checking your request?

    Thank You.

    Thread Starter webengineer

    (@webengineer)

    Plugin Author richteam

    (@richteam)

    Dear @webengineer.

    I don’t know how you included that buttons into the tab, but if you can change the button type from “submit” to “button” and make your function to work with jQuery and Ajax you will not have that problem. Now you have that problem because each time when you are clicking on submit button the page is refreshing. The problem isn’t comes from our plugin. Problem is with the button type.

    Thank You.

    Thread Starter webengineer

    (@webengineer)

    Thanks for your response. I never considered this to be a “problem” with your plugin; just a behavior I had to learn to work with!

    The entire routine that runs within each tab comes from a plugin I am writing. Each tab has its own shortcode.

    I figured that the jQuery/Ajax approach was probably the way I would have to go, but I am not yet familiar with those and have resisted learning. I guess there is no time like the present to learn them!

    Plugin Author richteam

    (@richteam)

    Dear @webengineer.

    I can say you that the only way to make your request is to change the button type from submit, because, if the type is submit, it will refresh the page each time. Or to write a code for not refreshing the page when clicking on that button.

    Thank You.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirect to specific tab on postback’ is closed to new replies.