• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 382
  • Last Modified:

Links work out of <li> but not in <LI>

Hey guys...

below is my code and for some reson within my <li> tags the hyperlinks wont work :S

out of them the do tho and i have no idea why!

any ideas?

<link href="../../css/Style.css" rel="stylesheet" type="text/css" />
 <div id="whatgoeson-wrap">

    <div id="comment-box">
      <form method="post" action="">
        <textarea  cols="8" rows="10" id="content"></textarea>
        <div id="button_block">
          <input name="submit" class="comment_button" type="submit" id="button" value=" Share "/>
          <input type="submit" id='cancel' value=" cancel" />
        </div>
      </form>
    </div>
    <div class="MainContainer">
      <div  id="update" class="timeline"></div>
       
      <ul id="Comments">
         
        <?php
		// Gather users friends
		
		$friend = mysql_query("select * from friends WHERE username = '$username'");
  while ($myfriends = mysql_fetch_array($friend)) {
	$friendname =  $myfriends['friendname'];
	 /* LOOK FOR ALL NEWS UNDER THE USERS NAME*/
  $small1 = mysql_query("select * from usernews WHERE username = '$username' OR username = '$friendname' order by ID desc LIMIT 9");
  while ($r = mysql_fetch_array($small1)) {
      $id = clean($r['ID']);
      $msg = clean($r['what_it_is']);
      $usr = clean($r['username']);
      $what_id = clean($r['what_id']);
  /* THIS IS WHERE YOU LOOK AT ALL THE COMMENTS MADE */
  if ($msg == "owncomment" || $msg == "othercomment") {
      $othercom = mysql_query("select * from messages2 WHERE msg_id ='$what_id'");
      while ($re = mysql_fetch_array($othercom)) {
          $id = clean($re['msg_id']);
          $msg = clean($re['message']);
          $username1 = clean($re['postby']);
          $times = clean($re['time']);
?>
 <a href="test">test</a>
        <li class="comment">
    <a href="test">test2</a>
          <h3><?php echo '<a href="'.$username1.'"> <b>'.$username1.'</b></a>' ?></h3>
          <?php
		  if ($username1 == $username)
		  {
		  ?>
          <div class="delete">
            <div class="UIStory_Hide"><a href="http://www.runningprofiles.com/members/<?php echo $user ?>" id="de<?php echo $id ?>" class="delete_update" title="Delete Update"><span style="FONT-SIZE: 10px;COLOR: #900000">X</span></a></div>
          </div>
          <?php
	  }
	  ?>
          <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $username1;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p><?php echo $msg;?></p>
          <div class="optionsreply"> <span style="FONT-SIZE: 10px; COLOR: #999; class='feed_link'"><?php echo time_stamp($times) ?> </span> <a href="http://www.runningprofiles.com/members/<?php echo $user ?>" class="comment" id="comment<?php echo $id; ?>"><span style="FONT-SIZE: 11px;">Reply</span></a> </div>
          <?php
  //Here $id is main message msg_id value.
  $csql = mysql_query("select * from comments where msg_id_fk='$id' order by com_id ");
  $comment_count = mysql_num_rows($csql);
  if ($comment_count > 2) {
      $second_count = $comment_count - 2;
?>
          <div class="view_comments" id="vi<?php echo $id; ?>">
            <div class="viewall"><a class="comment_ui" id="view<?php echo $id; ?>">View all <?php echo $comment_count; ?> comments</a></div>
          </div>
          <?
  }
  ?>
          <div id="two_comments<?php echo $id; ?>">
            <?php
  $small = mysql_query("select * from {$prefix}comments where msg_id_fk='$id' order by com_id limit 2 ");
?>
            <ul class="Comments-back">
              <?php $num_rows = mysql_num_rows($small);
			
 if ($num_rows == 0)
 {
	
    echo ' <li class="comment-back">';
            
 }
  while ($r = mysql_fetch_array($small)) {
      $c_id = clean($r['com_id']);
      $comment = clean($r['comment']);
      $timeofpost = clean($r['time']);
      $username1 = clean($r['postby']);
?>
              <li class="comment-back">
                <div class="user-image"> <img src='http://www.runningprofiles.com/members/imageupload/test/<?php echo $username1;?>30.jpg' alt = "thumb_img" border="1" align="middle" /> </div>
                <div class="options"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timeofpost); ?></span> </div>
                <div class="box-comment">
                  <h4><?php echo '<a href="'.$username1.'"> <b>'.$username1.'</b></a>' ?></h4>
                  <div style="comment-msg"> <?php echo $comment;?></div>
                </div>
                <div class="thebox fullbox<?php echo $id; ?>">
                  <div class="comment-form">
                    <form action="" method="post" name="post<?php echo $id; ?>" id="post<?php echo $id; ?>">
                      <textarea name="add_comment_text" style="height:18px" cols="46" class="flo" rows="1" onkeyup="AutoExpand(this, event)" onclick="startComment(this);" onblur="bye(this);"  id="textarea<?php echo $id; ?>" >Write a comment...</textarea>
                      <center>
                        <input type="button" value=" Comment " class="comment_submit" style="display:none" id="comsub<?php echo $id; ?>"/>
                      </center>
                    </form>
                  </div>
                </div>
              </li>
              <?php  } ?>
              <?php
             if ($num_rows == 0)
 {
	?>
              <div class="thebox fullbox<?php echo $id; ?>">
                <div class="comment-form">
                  <form action="" method="post" name="post<?php echo $id; ?>" id="post<?php echo $id; ?>">
                    <textarea name="add_comment_text" style="height:18px" cols="46" class="flo" rows="1" onkeyup="AutoExpand(this, event)" onclick="startComment(this);" onblur="bye(this);"  id="textarea<?php echo $id; ?>" >Write a comment...</textarea>
                    <center>
                      <input type="button" value=" Comment " class="comment_submit" style="display:none" id="comsub<?php echo $id; ?>"/>
                    </center>
                  </form>
                </div>
              </div>
              <?   echo '</li>';
            
 }
 ?>
            </ul>
          </div>
        </li>
        <?
} 
}//close of the comments part

// THIS IS WHERE I CALL MY NEW FUNCTION TO CALL A SEARCH FOR NEW FRIENDS

  if ($msg == "friend") {
	?>
        <li class="comment">
          <?
      $small1234 = mysql_query("select * from friends WHERE id='$what_id'");
      while ($r234 = mysql_fetch_array($small1234)) {
          $friendname = clean($r234['friendname']);
          $username1 = clean($r234['username']);
          $timemade = clean($r234['timemade']);
		  $theid = clean($r234['id']);
		  ?>
          <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $username1;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="<?php echo $username1;?>"><b><?php echo $username1;?></b></a> is now friends with <a href="<?php echo $friendname;?>"><b><?php echo $friendname;?></b></a> </p>
          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>
          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timemade);?></span> </div>
          <?
      } ?>
        </li>
        <?php
}
if ($msg == "forum") {
  echo "<li class=\"comment\">";
  $gettheforum = mysql_query("select * from forumtutorial_posts WHERE postid='$what_id'") or die(mysql_error());
  while ($theforum = mysql_fetch_array($gettheforum)) {
      $friendname = clean($theforum['author']);
      $thepost = clean($theforum['post']);
      $timemade = clean($theforum['showtime']);
      $where = clean($theforum['forum']);
      $thepost = clean($theforum['postid']);
?>
        <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $friendname;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
        <p> <a href="<?php echo $friendname;?>"><b><?php echo $friendname;?></b></a> has just posted in the <a href="http://www.runningprofiles.com/members/index.php?page=message&amp;forum='.$where.'&amp;id='.$thepost.'&amp;pagenum=last"><b><?php echo $where;?></b></a> forum</p>
        <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/forump.jpg" width="30" border="0" /></div>
        <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timemade);?></span> </div>
        <?php
}
echo "</li>";
}
// close of the forum check
if ($msg == "newpb") {
  echo "<li class=\"comment\">";

  $thepbis = mysql_query("select * from pb WHERE id='$what_id'") or die(mysql_error());
  while ($thepb = mysql_fetch_array($thepbis)) {
      $friendname = clean($thepb['username']);
      $dist = clean(substr($thepb['distance'], 2));
      $dtime = clean($thepb['pb']);
      $timemade = clean($thepb['timemade']);
	 
?>
        <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $friendname;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
        <p> <a href="<?php echo $friendname;?>"><b><?php echo $friendname;?></b></a> has just ran a new <?php echo $dist; ?> pb (<?php echo $dtime?>) </p>
        <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/newpb.jpg" width="30" border="0" /></div>
        <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timemade);?></span> </div>
        <?php
}
echo "</li>";
}
// close of the pb check
 if ($msg == "training") {
      echo "<li class=\"comment\">";
      $training1 = mysql_query("SELECT timemade,ev_dat,author,YEAR(ev_dat) as year, MONTH(ev_dat) as month  FROM diary WHERE id='$what_id'") or die(mysql_error());
      while ($training = mysql_fetch_array($training1)) {
          $friendname = clean($training['author']);
          $dtime = clean($training['pb']);
          $timemade = clean($training['timemade']);
          $dd = clean(date("jS F", strtotime($training['ev_dat'])));
?>
        <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $friendname;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
        <p> <a href="<?php echo $friendname;?>"><b><?php echo $friendname;?></b></a> added a new training log for <a class="links" href="http://www.runningprofiles.com/members/index.php?page=traininglogs&amp;yr=<?php echo $training['year']?>&amp;usr=<?php echo $friendname?>&amp;mon=<?php echo $training['month']?>"><?php echo $dd ?> </a> </p>
        <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/training.jpg" width="30" border="0" /></div>
        <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timemade);?></span> </div>
        <?php
}
echo "</li>";
}
// close of the pb check
  if ($msg == "race") {
	?>
        <li class="comment">
          <?
      $small1234 = mysql_query("select * from race12 WHERE id='$what_id'");
      while ($r234 = mysql_fetch_array($small1234)) {
          $ev_title= clean($r234['ev_title']);
		  $ev_dat= clean($r234['ev_dat']);
          $username1 = clean($r234['author']);
          $timemade = clean($r234['timemade']);
		  $theid = clean($r234['id']);
		  ?>
          <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/<?php echo $username1;?>50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="<?php echo $username1;?>"><b><?php echo $username1;?></b></a> has posted a new race <a href="blank"><b><?php echo $ev_title;?></b></a> on the <?php echo $ev_dat; ?>  </p>
          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>
          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999"><?php echo time_stamp($timemade);?></span> </div>
          <?
      } ?>
        </li>
        <?php
}
//close race check
    }
  } // stops search for friends
?>
      </ul>
    </div>
 
</div>

Open in new window

0
runnerjp2005
Asked:
runnerjp2005
1 Solution
 
AnilData ManagerCommented:
<UL>
  <LI>
    <H2>HTML Document Type Definitions</H2>
    <UL>
      <LI><A HREF="html.dtd">HTML 2.0</A></LI>
      <LI><A HREF="HTML32.dtd">HTML 3.2</A></LI>
      <LI><A HREF="strict.dtd">HTML 4.01 Strict</A></LI>
    </UL>
  </LI>
  <LI>
    <H2>SGML Character Entity References</H2>
    <UL>
      <LI><A HREF="HTMLlat1.ent">Latin-1 Entities</A></LI>
      <LI><A HREF="HTMLsymbol.ent">Symbols and Greek Letters</A></LI>
      <LI><A HREF="HTMLspecial.ent">Other Special Characters</A></LI>
    </UL>
  </LI>
</UL>

Can you post your generated HTML as opposed to the php. Please.

A>
0
 
mmarketingCommented:
Line 41 ;

        <li class="comment">
    <a href="test">test2</a>


I don't see a closing of the li statement </li>
0
 
SSupremeCommented:
Add <!DOCTYPE> at the top.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
runnerjp2005Author Commented:
Below is the generated html

Also here is the website  www.runningprofiles.com/members


 <!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>Running Profiles - Home Page -</title>

<link href="http://www.runningprofiles.com/members/diary/facebox/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
<link rel="icon" href="../images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon" />
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://runningprofiles.com/members/imagecycle.js"></script>

<script type='text/javascript' src="http://www.runningprofiles.com/members/javascript.js"></script>
<script src="http://www.runningprofiles.com/members/bbcodebuttons.js" type="text/javascript"></script>
<script src="http://www.runningprofiles.com/jquery.js" type="text/javascript"></script>
<script src="http://www.runningprofiles.com/members/diary/facebox/facebox.js" type="text/javascript"></script>    
<script src="http://www.runningprofiles.com/members/btn.js" type="text/javascript"></script>
<script type="text/JavaScript" src="http://www.runningprofiles.com/members/curvycorners.js"></script>



</head>

<body>
<!-- Header area -->
<div id='top-page-header'>
  <div id="head-wrapper">
    <div id="site-logo"> <img src="../images/runningprofilestext.gif" alt="runningprofiles" /><img src="../images/rplogo.gif" alt="runningprofiles" /> </div>
  </div>
</div>
<!-- Header area End --> 
<!-- Navigation area -->

<!-- Navigation area END--> 
<!-- Main Area area -->

<div id="wrapper">
  <div id="largeMain">
    <link href="../../css/Style.css" rel="stylesheet" type="text/css" />


<div class="newsbox">

  
<link href="../../css/Style.css" rel="stylesheet" type="text/css" />

<div id="slideshow">
  <img src="http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/images/online.jpg&amp;radius=10&amp;imagetype=jpeg&amp;backcolor=F9F9F9" height="200" width="640"  border="0" alt="RunningProfiles Is Now Online!" title="RunningProfiles Is Now Online!" />
  <img src="http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/images/profileofweek.jpg&amp;radius=10&amp;imagetype=jpeg&amp;backcolor=F9F9F9" height="200" width="640"  border="0" alt="Running Profile Of The Week" title="Running Profile Of The Week" />

  <img src="http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/images/clubadvert.jpg&amp;radius=10&amp;imagetype=jpeg&amp;backcolor=F9F9F9"  height="200" width="640" border="0" alt="New..Your Clubs Home Page" title="New..Your Clubs Home Page" />
   <img src="http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/images/addrace.jpg&amp;radius=10&amp;imagetype=jpeg&amp;backcolor=F9F9F9" height="200" width="640" border="0" alt="Add your race for FREE!!!" title="Running Profiles for FREE!!!" />
</div>
<div id="caption"></div>




</div>
<div id="forumstatsarea">
  

<div id="lightbox">

  <link href="../../css/Style.css" rel="stylesheet" type="text/css" />

 <div id="whatgoeson-wrap">

    <div id="comment-box">
      <form method="post" action="">
        <textarea  cols="8" rows="10" id="content"></textarea>
        <div id="button_block">
          <input name="submit" class="comment_button" type="submit" id="button" value=" Share "/>
          <input type="submit" id='cancel' value=" cancel" />
        </div>

      </form>
    </div>
    <div class="MainContainer">
      <div  id="update" class="timeline"></div>
       
      <ul id="Comments">
         
        <li class="comment">
  
          <h3><a href="Admin"> <b>Admin</b></a></h3>
                    <div class="delete">

            <div class="UIStory_Hide"><a href="http://www.runningprofiles.com/members/" id="de610" class="delete_update" title="Delete Update"><span style="FONT-SIZE: 10px;COLOR: #900000">X</span></a></div>
          </div>
                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p>test?</p>
          <div class="optionsreply"> <span style="FONT-SIZE: 10px; COLOR: #999; class='feed_link'">19 hours ago </span> <a href="http://www.runningprofiles.com/members/" class="comment" id="comment610"><span style="FONT-SIZE: 11px;">Reply</span></a> </div>

                    <div id="two_comments610">
                        <ul class="Comments-back">
               <li class="comment-back">                            <div class="thebox fullbox610">
                <div class="comment-form">
                  <form action="" method="post" name="post610" id="post610">
                    <textarea name="add_comment_text" style="height:18px" cols="46" class="flo" rows="1" onkeyup="AutoExpand(this, event)" onclick="startComment(this);" onblur="bye(this);"  id="textarea610" >Write a comment...</textarea>
                    <center>
                      <input type="button" value=" Comment " class="comment_submit" style="display:none" id="comsub610"/>

                    </center>
                  </form>
                </div>
              </div>
              </li>            </ul>
          </div>
        </li>
                <li class="comment">

                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Princessemma50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="Princessemma"><b>Princessemma</b></a> has posted a new race <a href="blank"><b>Race:test</b></a> on the 2011-02-10  </p>
          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>
          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999">February 10, 2011, 2:08 pm</span> </div>

                  </li>
                <li class="comment">
                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="Admin"><b>Admin</b></a> has posted a new race <a href="blank"><b>Race:test</b></a> on the 2011-02-10  </p>
          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>

          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999">February 10, 2011, 2:08 pm</span> </div>
                  </li>
                <li class="comment">
                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="Admin"><b>Admin</b></a> has posted a new race <a href="blank"><b>Race:Notts aaa</b></a> on the 2011-02-10  </p>

          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>
          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999">February 10, 2011, 11:56 am</span> </div>
                  </li>
        <li class="comment">
  
          <h3><a href="Admin"> <b>Admin</b></a></h3>
                    <div class="delete">

            <div class="UIStory_Hide"><a href="http://www.runningprofiles.com/members/" id="de605" class="delete_update" title="Delete Update"><span style="FONT-SIZE: 10px;COLOR: #900000">X</span></a></div>
          </div>
                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p>test</p>
          <div class="optionsreply"> <span style="FONT-SIZE: 10px; COLOR: #999; class='feed_link'">February 3, 2011, 10:51 am </span> <a href="http://www.runningprofiles.com/members/" class="comment" id="comment605"><span style="FONT-SIZE: 11px;">Reply</span></a> </div>

                    <div id="two_comments605">
                        <ul class="Comments-back">
               <li class="comment-back">                            <div class="thebox fullbox605">
                <div class="comment-form">
                  <form action="" method="post" name="post605" id="post605">
                    <textarea name="add_comment_text" style="height:18px" cols="46" class="flo" rows="1" onkeyup="AutoExpand(this, event)" onclick="startComment(this);" onblur="bye(this);"  id="textarea605" >Write a comment...</textarea>
                    <center>
                      <input type="button" value=" Comment " class="comment_submit" style="display:none" id="comsub605"/>

                    </center>
                  </form>
                </div>
              </div>
              </li>            </ul>
          </div>
        </li>
        <li class="comment">        <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>

        <p> <a href="Admin"><b>Admin</b></a> added a new training log for <a class="links" href="http://www.runningprofiles.com/members/index.php?page=traininglogs&amp;yr=2010&amp;usr=Admin&amp;mon=9">2nd September </a> </p>
        <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/training.jpg" width="30" border="0" /></div>
        <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999">September 2, 2010, 11:21 am</span> </div>
        </li>        <li class="comment">

                    <div class="user-image"><img src='http://runningprofiles.com/members/roundedCorners.php?src=http://www.runningprofiles.com/members/imageupload/test/Admin50.jpg&amp;radius=05&amp;imagetype=jpeg&amp;backcolor=ffffff' alt = "thumb_img" border="0" align="middle" /></div>
          <p> <a href="Admin"><b>Admin</b></a> is now friends with <a href="Princessemma"><b>Princessemma</b></a> </p>
          <div class="comment-img"><img height="40" alt="Pic" src="http://www.runningprofiles.com/images/addfriend.jpg" width="30" border="0" /></div>
          <div class="commenttime"> <span style="FONT-SIZE: 10px; COLOR: #999">October 28, 2010, 3:04 pm</span> </div>

                  </li>
              </ul>
    </div>
 
</div>   
</div>
 </div>  </div>
</div>
<!-- Main Area area End-->
</body>
</html>

Open in new window



(i know about the link errors in the html validation as these are in for testign in dreamweaver)
0
 
SSupremeCommented:
rows 40, 46, 66 should be in Head.
0
 
runnerjp2005Author Commented:
@ SSupreme i said (i know about the link errors in the html validation as these are in for testign in dreamweaver)
0
 
BardobraveCommented:
Do the links react inside the <li>s to hover? Do they change colour? Do you see their url on your browser status bar?

If there is no link reaction it could be for two main reasons:
1) The <a> tag is not correctly formed and the browser is not recognizing it as a link.
2) There is a transparent layer or something like that over the links that blocks mouse interaction over them
0
 
runnerjp2005Author Commented:
Hey Bardobrave... you can view what happens here -> http://www.runningprofiles.com/members

if you hover over the link it recognises  it and shows it in the bottom status bar...but when clicked it does nothing
0
 
SSupremeCommented:
Runnerjp2005, you have a problem with facebox.js .
To be more specific with this part:
/*
   * Public, $.fn methods
   */

  $.fn.facebox = function(settings) {
    if ($(this).length == 0) return

    init(settings)

    function clickHandler() {
      $.facebox.loading(true)

      // support for rel="facebox.inline_popup" syntax, to add a class
      // also supports deprecated "facebox[.inline_popup]" syntax
      var klass = this.rel.match(/facebox\[?\.(\w+)\]?/)
      if (klass) klass = klass[1]

      fillFaceboxFromHref(this.href, klass)
      return false
    }

    return this.bind('click.facebox', clickHandler)
  }

Open in new window

Cannot help you feather because it's JavaScript problem or feature of Facebox.  
0
 
runnerjp2005Author Commented:
ssuprime...how did you generate the error?
0
 
SSupremeCommented:
With basic knowledge of JavaScript by hands to be honest. I think its feature of Facebox... I mentioned that part because problem starts from it.
0
 
runnerjp2005Author Commented:
i have ran javascript debugger in firefox with nothing.

0
 
runnerjp2005Author Commented:
I REMOVED the facebox code and the issue still happens so its nothing to do with that
0
 
SSupremeCommented:
Anyway without all scripts it works, it means there is a problem with JavaScript.
You need to ask this question in JavaScript Zone.
But at last try to remove 251-256 lines from javascript.js
    $('.comment').live("click", function () {
        var ID = $(this).attr("id").replace('comment', '');
        $(".fullbox" + ID).show();
        $("#c" + ID).slideToggle(300);
        return false;
    });

Open in new window



after removal I'm able click links even with right click.
0
 
HagayMandelCommented:
Your links don't work cause they are broken:
<a href="Princessemma">
<a href="blank">
<a href="Admin">

etc.
0
 
runnerjp2005Author Commented:
Legend.... i was naming my divs the same as my javascript !!

it was blocking the links!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now