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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:06:42+00:00 2026-05-29T16:06:42+00:00

I run a website for my church. In a database on the server, we

  • 0

I run a website for my church. In a database on the server, we store all of the newest sermons’ information so that when a user clicks a button on the first page, the newest sermons will show up in a div. For a long time, everything was working just great, but now, the returned code just doesn’t show up.

The weird thing is, if I open the page in Google Chrome and hit “Inspect Element” over the div, the returned code just appears. It looks perfect… After I have done that, clicking on the button will again load the info from the database and it will show up; if I refresh the page, however, the returned stuff goes away again until I inspect the element.

Try it for yourself here. Click the orange button labeled “New Message.”

NOTE:

  • The div that pops up is id navNew
  • The background transparent div that pops up is id navBackground
  • Within the div id navNew, I have a p id navNewBody that holds the information returned by the get PHP page below.

My code for the PHP getter page:

<?php

$link = mysql_connect('domain', 'username', 'password'); 
if (!$link) { 
    die('Could not connect: ' . mysql_error()); 
} 

mysql_select_db(flf);

$r = mysql_query("SELECT * FROM new");
$first = mysql_num_rows($r);

$last = $first - 20;
echo '<p class="NavHead">New Sermons<br/><table width="90%" border="0" cellpadding="0" cellspacing="0">';

$ind = 0;

while($first > $last){

$me=mysql_fetch_array(mysql_query("SELECT * FROM new WHERE id='" . $first . "'"));
$name = $me["name"];
$row = 21-$ind;
echo '<tr id="row' . $row . '" class="navClosed" onclick="expand(' . "'" . 'row' . $row . "'" .  ',' . $row . ')"><td colspan="4">&nbsp;' . $name . '</td></tr><tr id="row' . $row . 'e" style="visibility: hidden" class="navOpenClosed" onclick="dismiss(' . "'" . 'row' . $row . "'" . ')"></tr>';
$first = $first - 1;
$ind = $ind + 1;
}

echo "</table></p>";
?>

And here is the code I use to access the page (yes I imported jQuery):

function retNew(){
    document.getElementById("navNewBody").innerHTML = '<span class="NavHead"><p align="center">Loading...Please Wait...<br/><br/><br/><img src="Sermons/Style/Loading.gif" /></p></span>';
    document.getElementById("navNew").style.visibility = "visible";      

    $("#navNewBody").load("retNew.php");
}

What’s wrong? It just doesn’t make sense to me. I set the z-index to 10,000,000 and nothing happened. Any ideas? Thanks in advance.

  • 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-05-29T16:06:43+00:00Added an answer on May 29, 2026 at 4:06 pm

    I think you visibility is messing with the content. Try to use this load.

    function retNew(){
       $('#navNewBody').html('<div class="NavHead"><p align="center">Text</p></div>')
                       .load('retNew.php');
       $('#navNew').fadeIn();      
    }
    

    As of the close button, in your case it should be something like that:

    <div id="navNew">
      <a class="LargeNameU" onclick="offNavNew();return false;" 
                style='position:fixed; z-index: 1000; right:0px;top:0px'>
           <img src="Sermons/Style/x.png" border='0'>
      </a>
    <p align="center" style="z-index:10000000" id="navNewBody">
    

    and so on. Your .navNew already has a fixed position.

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

Sidebar

Related Questions

Can I make my own jabber server.So that if I run my website xyz
I run a website that uses a database, but not intensively, on a WAMP
I run (and am presently completely overhauling) a website that deals with theater (njtheater.com
I run a church website and we have an event calendar page. We've been
We run a website that has an English version in the root directory http://www.mywebsite.com
We run a website written in Java that uses JDBC with jTDS to access
We are looking to run one website using two CMS systems, so for all
I have write a website,what confused me is when i run the website,first i
I have a button on a website that creates a directory and copys a
Let's say I want to create a website that contains one page. All the

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.