• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I refresh a page after a database update?

Participant ,
Oct 15, 2014 Oct 15, 2014

Copy link to clipboard

Copied

I have a page where I perform a database update and then redirect the page back to itself.

Even though the database is updated correctly and the page is redirected, it is not refreshing the page so I am not able to see the changes made to the database.

How do I make this happen?

Views

321

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

I think the most common way is to use AJaX to query the database and refresh the DOM with the new data.

V/r,

^_^

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

LATEST

It will make for an easier discussion if you show us the code that does the redirection.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation