Jump to content

Link display in a div


Darkmatter5

Recommended Posts

Here's my pages code.

 

<?php
    require('library/dbconfig.php');
    require('library/byrndb_funcs.php');
    $byrndb = new byrndb();
    $page_title = "B.A.D.S. - Database maintenance";
?>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $page_title; ?></title>

<link href="library/config.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="main">
  <div id="menu"><?php include('menu.php') ?></div>
  <div id="content-main">
    <div id="title"><?php include('title.php') ?></div>
    <div id="content">
    <table class="standard" width="770" border="0" align="center">
      <caption class="style1"><?php echo str_replace("B.A.D.S. - ","",strtoupper($page_title)); ?></caption>
      <tr>
        <td class="row_title" align="left">Alphabetical listing of clients</td>
        <td class="row_title"><a href="reports/rep_Aclient.php" target="content">RUN</a></td>
      </tr>
      <tr>
        <td class="row_title" align="left"><s>Alphabetical listing of surveys</s></td>
        <td class="row_title"><a href="reports/rep_Asurvey.php" target="content"><s>RUN</s></a></td>
      </tr>
      <tr>
        <td class="row_title" align="left">Numerical listing of job numbers</td>
        <td class="row_title"><a href="reports/rep_Njobnumber.php" target="content">RUN</a></td> 
      </tr>
    </table>
</div>
  </div>
</div>
</body>
</html>

 

How can I make the links around the "RUN"s display in the content div and not over take the whole page by putting in target="_top"?  I want it to keep the menu and title divs.

Link to comment
Share on other sites

To keep it simple, but not as dynamic, you could use an iframe instead of the div.

 

If you want it to me much more slick, you'll need to use AJAX, which would run a javascript function that will call PHP code that will then populate your div.

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.