?
Solved

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

Posted on 2011-02-15
16
Medium Priority
?
351 Views
Last Modified: 2012-05-11
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
Comment
Question by:runnerjp2005
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
16 Comments
 
LVL 6

Expert Comment

by:akajohn
ID: 34895904
<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
 
LVL 3

Expert Comment

by:mmarketing
ID: 34895921
Line 41 ;

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


I don't see a closing of the li statement </li>
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 34896022
Add <!DOCTYPE> at the top.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:runnerjp2005
ID: 34896067
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
 
LVL 16

Expert Comment

by:SSupreme
ID: 34896085
rows 40, 46, 66 should be in Head.
0
 

Author Comment

by:runnerjp2005
ID: 34896103
@ SSupreme i said (i know about the link errors in the html validation as these are in for testign in dreamweaver)
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 34896226
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
 

Author Comment

by:runnerjp2005
ID: 34896276
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
 
LVL 16

Expert Comment

by:SSupreme
ID: 34896318
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
 

Author Comment

by:runnerjp2005
ID: 34896349
ssuprime...how did you generate the error?
0
 
LVL 16

Expert Comment

by:SSupreme
ID: 34896386
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
 

Author Comment

by:runnerjp2005
ID: 34896412
i have ran javascript debugger in firefox with nothing.

0
 

Author Comment

by:runnerjp2005
ID: 34896441
I REMOVED the facebox code and the issue still happens so its nothing to do with that
0
 
LVL 16

Accepted Solution

by:
SSupreme earned 2000 total points
ID: 34896644
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
 
LVL 16

Expert Comment

by:HagayMandel
ID: 34896689
Your links don't work cause they are broken:
<a href="Princessemma">
<a href="blank">
<a href="Admin">

etc.
0
 

Author Closing Comment

by:runnerjp2005
ID: 34897484
Legend.... i was naming my divs the same as my javascript !!

it was blocking the links!!!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question