Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8858155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:45:49+00:00 2026-06-14T14:45:49+00:00

I have a page where if you click on a link, it exposes a

  • 0

I have a page where if you click on a link, it exposes a div that using ajax displays content from a dbase.

After a user edits this content on the server, I’d like to use PHP to return the user to that page. This is no problem using a redirect

 header("location:page.php")

However, when the user comes back to the page, ideally, I’d like to have the content in the div open automatically so the user can immediately see edits without having to find the link to open the div and click on it.

Is this possible, either with something in the url to fire the javascript or alternaively, when you load the page with a certain parameter, triggering javascript to open the div.

The code to open the div is a simple javascript call:

<a href="javascript:void(0);" onclick="showDiv()">View Content</a>

showDiv just uses ajax to display something from the server using responsetext.

Thanks for any suggestions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:45:50+00:00Added an answer on June 14, 2026 at 2:45 pm
    header("location:page.php?show=1")
    

    Then in page.php body tag:

    <body <?php if($_GET['show']==1) { ?>onload="showDiv()"<?php } ?>>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have page where I click on a link and change the content a
hi i have a page contains a link , when user click the link
i have a page , with a link , if the user click the
HI I have a aspx page with a link . If i click that
I have a page where you can click a link that says add a
I have a page that loads a div via AJAX. The AJAX POST call
I have some textboxes on a page and I want to click a link
I have a page where the visitor initiates a function that executes click() on
So I have a page setup that lets you expend text boxes upon click:
So I have a downloads page where you click a link, it opens /downloads/download/randomhash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.