PDA

View Full Version : link highlighting misplaced


rwh
05-22-2006, 12:34 AM
Hi all,

We have a large HTML product that we package using iSiloX. We have a problem that shows up on some pages where the clickable area of some of the links do not line up properly with the link text. The clickable area is normally displaced above the link text. It seems to happen mostly where the links are in a table. On some pages all of the links are displaced by the same amount, on others the topmost link in the table is misplaced and the others are not.

iSiloX version used: 4.32 for Windows.
iSilo versions tested: 4.32 PPC, 4.32 Windows, 4.32 Palm.

I have attached a typical example. link_errors_pdb.zip contains the built pdb, and link_errors_src.zip contains the HTML, gif and CSS files.

It seems to be related to the margin-top style. We have been working around this problem by removing the margin-top style and putting a <br> before the table.

Incidentally, there is a time-limited trial of our product that can be downloaded from this page (http://www.tg.com.au/?sectionid=109).

Thanks for your help!

Robert

aschechtman
05-23-2006, 10:38 AM
Robert,

I checked out the file and source code and, unfortunately, I don't understand enough to provide any solutions for you. I'm sure other wiser contributors will chime in soon.

I followed the link to and checked out your 14 day, time-limited trial. I was wondering how you've created a time-limited trial version of your iSilo document. Do you re-compile it daily with a different expiration date? I don't know another method for doing this but would love to learn.

Andrew

rwh
05-25-2006, 08:16 PM
Hi Andrew,

You are correct... the time limited trial is rebuilt each night. I use a cron job, a shell script, a perl script and isiloxc for linux. The shell script is run by cron each night:
0 1 * * * /home/rwh/gen_minitg_trial/bin/gen_trial.shand looks like this:
cd /home/rwh/gen_minitg_trial/bin/
# do the search and replace on the ixl file
./replace.pl ../miniTG.ixl > ../miniTG.ixl.new
mv ../miniTG.ixl.new ../miniTG.ixl
# build the pdb
./isiloxc -x ../miniTG.ixl
# upload file to remote server (deleted for security reasons)The perl script simply does a search and replace on the .ixl file to update the expiry date:
#!/usr/bin/perl

use strict;

my $file=$ARGV[0];

open( FH, $file )
or die "can't open file: $file\n";

my $text;
my @lines;

my $curr_timestamp = time();
#add two weeks plus one day
$curr_timestamp+=2*7*24*60*60;
$curr_timestamp+=1*24*60*60;

(my $day, my $month, my $year)=(localtime($curr_timestamp))[3,4,5];

my $expiry=sprintf("%04d%02d%02d",$year+1900, $month+1, $day);

while( defined (my $line=<FH>) )
{
push( @lines, $line );
$line =~ s/<Date value=".*?"\/>/<Date value="$expiry"\/>/g;
$text .= "$line";
}

close( FH );

print $text;Cheers,

Robert

aschechtman
05-25-2006, 11:13 PM
Thanks for the detailed reply. I may try to replicate this with some assistance from my more-technically-inclined wife.

Andrew

iSilo
05-25-2006, 11:26 PM
This needs to be investigated for a fix to be worked in, but your observations look corect about it having to do with margins.

Hi all,

We have a large HTML product that we package using iSiloX. We have a problem that shows up on some pages where the clickable area of some of the links do not line up properly with the link text. The clickable area is normally displaced above the link text. It seems to happen mostly where the links are in a table. On some pages all of the links are displaced by the same amount, on others the topmost link in the table is misplaced and the others are not.

iSiloX version used: 4.32 for Windows.
iSilo versions tested: 4.32 PPC, 4.32 Windows, 4.32 Palm.

I have attached a typical example. link_errors_pdb.zip contains the built pdb, and link_errors_src.zip contains the HTML, gif and CSS files.

It seems to be related to the margin-top style. We have been working around this problem by removing the margin-top style and putting a <br> before the table.

Incidentally, there is a time-limited trial of our product that can be downloaded from this page (http://www.tg.com.au/?sectionid=109).

Thanks for your help!

Robert