Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Dynamic links in ie6?
Old 03-14-2010, 03:49 PM Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
 
Register now for full access!
Old 03-14-2010, 04:15 PM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Need a link NOT, PHP code.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-14-2010, 04:18 PM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
sorry, its dyamically created by php, which is why its not working i think! as to why i posted there!
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-14-2010, 04:37 PM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
PHP ISN'T causing the link NOT to be "clickable", there is either a problem with the RENDERED HTML or the CSS is causing an overlap of elements.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2010, 07:49 AM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
theres no overlap i dont think, how would i check that? Ive put a border around all elements and theres no overlap. ive even tried having just a simple link to the homepage with no variables etc. I just cant get it to work?
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-15-2010, 08:20 AM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
I just cant get it to work?
You never know, BUT when we see the HTML & CSS we might just be able to you.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2010, 08:23 AM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
sorry, heres the full code!

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


PHP Code:
    <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>
Code:
/* ----------------------------  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;
 }
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-15-2010, 08:32 AM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Rendered HTML. PHP is no use, we cannot recreate the page without your database, your images and YOUR server.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2010, 08:37 AM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
http://www.enetdesign.co.uk/onyx/view_vacancies.php
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-15-2010, 09:42 AM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
.vacancydetail_btn {
	width: 97px;
	height: 27px;
	position: relative;
	text-decoration: none;
	z-index: 2;
	}

.viewvacbut {
	margin: 0 0 0 0;
	width: 97px;
	height: 27px;
	position: relative;
	float: left;
	border: 0;
	text-decoration: none;
	z-index: 1;
	}
because of the stacking order (z-index) the anchor is UNDERNEATH

IE6 (&IE7) has "issues" with stacking orders
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2010, 02:22 PM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
really? but ive tried removing all styling except the actual link. so it just displays as a text link, which is visible, and underlined, but not clickable?

surely if it was the stacking order then when i removed all styling you wouldnt be able to see the link?
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-15-2010, 03:00 PM Re: Dynamic links in ie6?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Elements are transparent by default so you can see through them but not click through them to elements lower in the stacking order.

Give the "viewvacbut" in the ie6 style sheet a z-index of 10 rather than 1
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-15-2010, 03:34 PM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
you are right, it is the stacking order. Still cant get it to work. Its the grey vacancy holder div, i removed that and the links work. but it doesnt matter what z-index i set them to, still not clickable.

I will continue to play.

thanks for your help, and patience!!
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Old 03-15-2010, 03:42 PM Re: Dynamic links in ie6?
frobak's Avatar
Novice Talker

Posts: 10
Name: Alan Smith
Location: Milton Keynes
Trades: 0
i found another way round it. Someone in another forum said it was to do with my png fix script. so i made all the images jpg and now it works fine!

again, thanks for your help!
__________________

Please login or register to view this content. Registration is FREE
frobak is offline
Reply With Quote
View Public Profile Visit frobak's homepage!
 
Reply     « Reply to Dynamic links in ie6?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.78462 seconds with 12 queries