Author Topic: dynamic links in ie6, possible?  (Read 646 times)

0 Members and 1 Guest are viewing this topic.

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
dynamic links in ie6, possible?
« on: March 14, 2010, 04:05:02 PM »
Hi

Ive got some php code thats dynamically generating a div with a link inside. For some reason the link is not clickable in ie6. Is this right or have i done something wrong?


PHP Code
:
         <
div class='briefdesc'>
          <
div class='desc_title'>
           <
class='title_text'>$job_title</p>
           <
class='title_text'>$terms</p>
          </
div>
          <
div class='desc_details'>
           <
table>
            <
tr>
             <
td class='detail_text'>Location:
             </
td>
             <
td class='detail_text'>$location
             
</td>
            </
tr>
            <
tr>
             <
td class='detail_text'>Salary:
             </
td>
             <
td class='detail_text'>$salary
             
</td>
            </
tr>
            <
tr>
             <
td class='detail_text'>Contract:
             </
td>
             <
td class='detail_text'>$terms
             
</td>
            </
tr>
           </
table>
          </
div>
          <
div class='desc_more'>
           <
class='viewvacbut' href='view_vacancy_details.php?vacancy_id=$vacancy_id'><img class='no_marg' src='images/more_btn.png' /></a>
          </
div>
         </
div


so the link to view_vacancy_details.php is not clickable in ie6. Your thoughts. Should this work?

Offline slurpee

  • Irregular
  • Posts: 42
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #1 on: March 14, 2010, 04:24:10 PM »
Do you have a link to the page so we could check it out?  Using just the code you provided, that seems to work for me in IE6.

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #2 on: March 14, 2010, 04:27:24 PM »

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #3 on: March 15, 2010, 07:53:40 AM »
Ive tried this without any variables. So this code is just dynamically displaying a link?

why am i finding this difficult? surely im missing something really simple?

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #4 on: March 15, 2010, 08:05:45 AM »
Can we see your code in a little more context? its pretty difficult to see whats going on with that small snippet.

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #5 on: March 15, 2010, 08:20:35 AM »
Heres the code thats displaying a div and link depending on how many rows in the db. this works in ie7/ie8 all firefox versions, safari, everythign except the dreaded ie6.

thanks in advance1

	
	
	
	
<
div id="search_main_text">
	
	
	
	
	
<?
php
	
	
	
	
	
	
include(
"includes/db_connect.inc.php");
	
	
	
	
	
	

	
	
	
	
	
	
$query$filter;
	
	
	
	
	
	

	
	
	
	
	
	
$result=mysql_query($query);

	
	
	
	
	
	
$num=mysql_numrows($result);

	
	
	
	
	
	
mysql_close();

	
	
	
	
	
	
$i=0;
	
	
	
	
	
	
while (
$i $num) {

	
	
	
	
	
	
$vacancy_id mysql_result($result,$i,'vacancy_id');
	
	
	
	
	
	
$job_title mysql_result($result,$i,'job_title');
	
	
	
	
	
	
$salary mysql_result($result,$i,'salary');
	
	
	
	
	
	
$location mysql_result($result,$i,'location');
	
	
	
	
	
	
$terms mysql_result($result,$i,'terms');
	
	
	
	
	
	

	
	
	
	
	
	
echo 
"
	

	
	
	
	
	
	
	
	
	
<div class='briefdesc'>
	
	
	
	
	
	
	
	
	
	
<div class='desc_title'>
	
	
	
	
	
	
	
	
	
	
	
<p class='title_text'>
$job_title</p>
	
	
	
	
	
	
	
	
	
	
	
<p class='title_text'>
$terms</p>
	
	
	
	
	
	
	
	
	
	
</div>
	
	
	
	
	
	
	
	
	
	
<div class='desc_details'>
	
	
	
	
	
	
	
	
	
	
	
<table>
	
	
	
	
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>Location:
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>
$location
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>Salary:
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>
$salary
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
	
	
	
	
<tr>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>Contract:
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
	
<td class='detail_text'>
$terms
	
	
	
	
	
	
	
	
	
	
	
	
	
</td>
	
	
	
	
	
	
	
	
	
	
	
	
</tr>
	
	
	
	
	
	
	
	
	
	
	
</table>
	
	
	
	
	
	
	
	
	
	
</div>
	
	
	
	
	
	
	
	
	
	
<div class='desc_more'>
	
	
	
	
	
	
	
	
	
	
	
<a class='viewvacbut' href='view_vacancy_details.php?vacancy_id=
$vacancy_id'><img class='no_marg' src='images/more_btn.png' /></a>
	
	
	
	
	
	
	
	
	
	
</div>
	
	
	
	
	
	
	
	
	
</div>
	
	
	
	
	
	
	
"
;
	
	
	
	
	
	
$i++;
	
	
	
	
	
	
}
	
	
	
	
	
?>
	
	
	
	
</div>
	
	
	
</div>

Offline thorpe

  • Administrator
  • 'Mind Boggling!'
  • *
  • Posts: 29,255
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #6 on: March 15, 2010, 08:29:19 AM »
What does the outputted html source look like in relation to this link?

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #7 on: March 15, 2010, 08:32:25 AM »
heres the source from the output, looks ok to me!

Code: [Select]
<div class='briefdesc'>
<div class='desc_title'>
<p class='title_text'>Senior Project Accountant - Cyprus</p>
<p class='title_text'>Permanent</p>
</div>
<div class='desc_details'>
<table>
<tr>
<td class='detail_text'>Location:
</td>
<td class='detail_text'>Limassol, Cyprus
</td>
</tr>
<tr>
<td class='detail_text'>Salary:
</td>
<td class='detail_text'>£70,000 - £110,000
</td>
</tr>
<tr>
<td class='detail_text'>Contract:
</td>
<td class='detail_text'>Permanent
</td>
</tr>
</table>
</div>
<div class='desc_more'>
<a class='viewvacbut' href='view_vacancy_details.php?vacancy_id=MT 1001-13'><img class='no_marg' src='images/more_btn.png' /></a>
</div>
</div>

Offline Adam

  • Guru
  • Fanatic
  • *
  • Posts: 4,702
  • Gender: Male
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #8 on: March 15, 2010, 08:37:38 AM »
I'd guess this is a CSS issue if it's just IE6 having problems... What's the CSS look like for those divs?
Ronnie Wood, true or false?

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #9 on: March 15, 2010, 08:39:09 AM »
/* ----------------------------  styles for job /vacancies page -------------------------------*/


#add_vacancy{
   margin: 20px 0 0 0;
   width: 805px;
   position: relative;
   float: left;
   }

#search_main_text{
   margin: 0px 0 25px 0;
   padding: 25px 0 15px 0;
   width: 798px;
   height: 370px;
   overflow: auto;
   position: relative;
   float: left;
   border: 2px solid #cccccc;
   }
   
.briefdesc {
   margin: 0px 0 10px 27px;
   padding: 0;
   width: 729px;
   height: 113px;
   position: relative;
   float: left;
   background: url(../images/vacancy_holder.png) no-repeat;
   }
   
   
.desc_title{
   margin: 20px 5px 0px 20px;
   padding: 0;
   width: 300px;
   height: 70px;
   position: relative;
   float: left;
   }
   
.desc_details{
   margin: 20px 5px 0px 0px;
   padding: 0;
   width: 270px;
   height: 70px;
   position: relative;
   float: left;
   }
   
.desc_more{
   margin: 20px 5px 0px 0px;
   padding: 0;
   width: 100px;
   height: 70px;
   position: relative;
   float: left;
   }
   
img.more {
   margin: 50px 0px 0px 0px;
   padding: 0;
   width: 96px;
   height: 27px;
   position: relative;
   float: left;
   border: 0;
   }
   
.title_text {
   margin: 0px 0 5px 0px;
   padding-top: 0;
   font-size: 12pt;
   font-weight: bold;
   color: #3366ff;
   text-decoration: none;
   font-family: tahoma, sans-serif;
   }
   
.detail_text {
   height: 20px;
   margin: 0px 0 10px 0px;
   padding-top: 0;
   font-size: 9pt;
   font-weight: bold;
   color: black;
   text-decoration: none;
   font-family: tahoma, sans-serif;
   }
   
   
#search_filter {
   margin: 0px 0 15px 40px;
   width: 740px;
   height: 45px;
   position: relative;
   float: left;
   }

#filter_form {
   margin: 13px 0 0px 40px;
   width: 250px;
   height: 30px;
   position: relative;
   float: left;
   }
   
img.filter {
   margin: 0px 0 0px 0px;
   position: relative;
   float: left;
   }
   
.vacancydetail_btn {
   position: absolute;
   top: 60px;
   left: 600px;
   border: 0;
   text-decoration: none;
   }

.viewvacbut {
   margin: 40px 0 0 0;
   width: 97px;
   height: 27px;
   position: relative;
   float: left;
   border: 0;
   text-decoration: none;
   }   
« Last Edit: March 15, 2010, 08:40:09 AM by frobak »

Offline Adam

  • Guru
  • Fanatic
  • *
  • Posts: 4,702
  • Gender: Male
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #10 on: March 15, 2010, 12:11:22 PM »
The problem's with your PNG transparency fix script.
Ronnie Wood, true or false?

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #11 on: March 15, 2010, 02:23:55 PM »
mmmm, i think not. how did you come to that conclusion?

if i remove all styling, the text link is visible and underlined, but just not clickable?

Offline Adam

  • Guru
  • Fanatic
  • *
  • Posts: 4,702
  • Gender: Male
    • View Profile
Re: dynamic links in ie6, possible?
« Reply #12 on: March 15, 2010, 03:33:44 PM »
I removed the $(document).pngFix() call, and it worked.
Ronnie Wood, true or false?

Offline frobakTopic starter

  • Enthusiast
  • Posts: 67
  • Gender: Male
    • View Profile
    • Web design Milton Keynes
Re: dynamic links in ie6, possible?
« Reply #13 on: March 15, 2010, 03:40:35 PM »
thanks Mr Adam. I didnt alter the png fix, i just made the buttons jpg instead, which worked fine. Thanks for pointing me in the right direction.

been stuck on this for about a week  :'(