Jump to content

[SOLVED] refreshing a section without reloading


ohdang888

Recommended Posts

i've seen it done javascript before. so i'll try that.

but what i want to do is pretty simple.

 

(theres a div, or table, or whatever i would use for this), that is about 500 px by 200 px. it has 3 or 4 tabs on top of that section.

 

each tabs loads something different. But you don't need to reload the whole page to change from tab to tab. You click on that tab, and it loads that spefic info in the box. click on another tab, and it will load the new information, without refreshing the entire page.

 

Link to comment
Share on other sites

thanks...

but i'm stuck a little.

heres the code they gave as a demo


<script type="text/javascript">

var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()

</script>


<div id="countrydivcontainer" style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
//Optional default content here.
</div>
</ul>

<ul id="countrytabs" class="shadetabs">
<li><a href="#" class="selected" rel="#default">Tab 1</a></li>
<li><a href="external2.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="external3.htm" rel="countrycontainer">Tab 3</a></li>
<li><a href="external4.htm" rel="#iframe">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>

i'm saving that as java.php, and saving all those demo files in the fame folder, but when i upload it, it just links me to the content, it doesn't display it.

AND it looks all messed up, (screenshot attached)

 

what do i need to do to fix this kind of stuff?

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.