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 7714515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:08:51+00:00 2026-06-01T02:08:51+00:00

I am playing with things here above my head but am desperately trying to

  • 0

I am playing with things here above my head but am desperately trying to learn.

I have an administration page, using jquery I display a hidden div that displays a another page inside.

I do this using:

$(document).ready(function(){
  $("a#fadeoutblog").click(function(){
    $("#page").fadeTo("slow",0.25)
    $("#terms4").fadeIn("slow")
    $("#back2").fadeIn("slow")
    $("#terms4").load("blogpageload.php")
     }); });

So terms4 is the div on the admin page and it diplays the page blogpageload.php!

On this page is a table that displays all the posts of a really simple blog, ‘a’ delete post a tag and an approve post ‘a’ tag (which just sets the approved column to ‘Y’ in the database). What i want is for the page inside this div to refresh when a post in the table is deleted(or the delete ‘a’ tag is clicked). The problem is that when you click on the delete ‘a’ tag we are sent to the ammendblogdatabase.php page first so that the post can be deleted!.

I have tried multiple methods but they all have problems!

The main part that is causing problems is that to view this div that contains a page the user must first click on another a tag that uses a jquery to stop the ‘display: none;’.

Im not sure what code you may need to see but please ask….

This is the information in the table cell with the delete button:

echo "<a id='refreshblog' href='deleteblogentry.php?username=".$usn."&timeleft=".$tml."'>Delete</a>";

Thank you!

  • 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-01T02:08:53+00:00Added an answer on June 1, 2026 at 2:08 am

    The problem you’re most likely having is binding to “future” elements (e.g. elements that will be on the page, but aren’t yet). To overcome this, you can use .on() to avoid this.

    $('#terms4').on('click','a',function(){
      // will bind to anchor elements in #terms4 at the time of execution
      // (most likely page ready) and look for future anchors added (in
      // the case of .load() completing)
    });
    

    From there, you can bind your own show/hide event, maybe call an ajax method that deletes the entry behind the scenes, and make a re-call to .load again and refresh the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing around with the code found here . I'm getting things
Playing with jquery for the first time, and I'm trying to get a simple
OK, I've been playing around with some of the eager loading things, and have
hope you can help me (tried lots of things here, but nothing worked) i
I have a two column layout page with a Validation Summary (VS) control above
I am playing with Autolayout in Cocoa and some things are not clear for
Playing with the new(ish) url rewriting functionality for web forms, but I'm running into
Here I am with another question, this time about the youtube API. I'm using
I've begun playing with the android NDK. One of the things I've just learnt
I'm playing with DI (using Unity). I've learned how to do Constructor and Property

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.