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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:41:28+00:00 2026-06-17T13:41:28+00:00

How to setup an div to auto refresh? I use Transcript theme for wordpress,

  • 0

How to setup an div to auto refresh?
I use Transcript theme for wordpress, in single.php is on call for inner php page:

</div><!-- /innerLeft -->

<?php include (TEMPLATEPATH . '/innerNarrowSidebar.php'); ?>
<?php include (TEMPLATEPATH . '/innerWideSidebar.php'); ?>
<div class="clear"></div>

The code inside innerNarrowSidebar.php

<?php if($trns_options['enArc'] == 1) { ?>
        <div class="widget">
            <h3 class="widget_sTitle_b"><?php _e('Archives','Transcript'); ?></h3>
            <ul>
                <?php wp_get_archives('type=monthly'); ?>
            </ul>
        </div>
    <?php } ?>  

And than in innerpage_120x600.php

I have some google adsense

**NOTE**: I added this code in innerNarrowSidebar.php but dosn’t work , the div dosn’t autorefresh
There is the code that i have added:

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>

<script language="JavaScript">
setInterval( "SANAjax();", 10000 );  ///////// 10 seconds 
$(function() {
SANAjax = function(){

$('#narrowSidebar').fadeOut("slow").load('ads/innerpage_120x600.php').fadeIn("slow");

}
 });
</script>

If this is not possible, how to make an text widget to auto refresh?

  • 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-17T13:41:30+00:00Added an answer on June 17, 2026 at 1:41 pm

    As described in comments:

    <script language="JavaScript">
    
    $j(function($) {
    var SANAjax = function(){
      //Add here anticache modificator:
      var rnd=Math.random();
      $('#narrowSidebar').fadeOut("slow").load('ads/innerpage_120x600.php?nc='+rnd).fadeIn("slow");
    
    }
    setInterval(SANAjax, 10000 );  ///////// 10 seconds 
     });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My simple setup: <div id=menuwrap> <div id=menu> <jdoc:include type=modules name=menu styles= /> </div> </div>
On my portfolio page I have this setup: <div id=portfolio> <ul id=sites> <li> <h3><a
I am trying to build a project-page setup that auto populates the project details
index.php has this jquery code which loads notifications.inc.php into a div on the page
I have setup a div with an original height at auto and a width
I'm programming a website using Foundation theme for wordpress that is setup for responsive
I have a search setup inside a div but for some reason cannot get
this is my setup <div id=uxcParent> <div id=uxcClickable></div> </div> now when a user clicks
I have a setup like this: <div id=container> <div id=close>Close</div> </div> Then in my
I have the following setup: <div>Element with CSS3 animated height change</div> <div><a href=#>Link</a></div> I

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.