PDA

View Full Version : how to load content in default div



aneeshtan
08-10-2008, 01:37 PM
1) Script Title: Tab Content Script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

3) Describe problem:

Hi , mates , I am looking for a method to load or reload the default content in my tab content script

I should mention that there is only one tab and i need it to be refresh with waiting message in DIV .

this is my codes :



echo "
<ul id='messagetab'>
<a href='#' rel='countrycontainer'></a>
</ul>
<div id='message'>";
message_box();
echo " </div>

<script type='text/javascript'>var countries=new ddajaxtabs('messagetab','message');countries.setpersist(false);countries.setselectedClassTarget('link');countries.init();</script> ";

as you can see in my codes i included message_box() that is my external function .

all is fine and will show whatever in my message_box function but the problem is the way it shows .

I need to reload that function every time beside waiting message not show the content normally .

ddadmin
08-10-2008, 06:35 PM
What does message_box() do? Looks like a JavaScript function, shouldn't it be wrapped around in a <script> tag?

aneeshtan
08-10-2008, 07:06 PM
message_box() is a function in other php file that i included in my codes ,

i am looking for a solution to how reload a content DIV simply with waiting message