How best to highlight an an item...

How best to highlight an an item...

am 21.08.2007 10:12:04 von dorayme

I will be soon making up a page with a table of items. There will
be a fair few rows. All not high, all tabular.

People will be referencing parts of it via links that latch onto
ids that will be placed on the s. But while this will narrow
things down for folk, they will still see a whole lot of other
stuff depending on the vertical size of their browser window. I
was rather hoping there might be a neat way of also highlighting
the row concerned, not necessarily literally the row, but
something to mark it out as the one to be attended to. Need no
help with the actual css, more with how to let the browser or
server know which row needs the style.

Can't think of any normal html/css way of doing this. Not
particularly keen on a js way ...though I might consider it as it
is sort of an extra bit of help and not fundamentally bad if
anyone has it turned off.

Anyone know of a php way perhaps? Do I have to go to alt.php. or
alt.js.

Can't I please just stay here? I like it here in spite of my bad
treatment.

I am reminded of that php stuff that I have used to stick in an
id="current" on some list items depending on the html file being
accessed. Perhaps it will all be clear by morning. But if anyone
knows the way to go without blinding me with science... please,
do spill the beans.

--
dorayme

Re: How best to highlight an an item...

am 21.08.2007 10:29:14 von rf

"dorayme" wrote in message
news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au...
>I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
>
> Can't think of any normal html/css way of doing this. Not
> particularly keen on a js way ...though I might consider it as it
> is sort of an extra bit of help and not fundamentally bad if
> anyone has it turned off.
>
> Anyone know of a php way perhaps? Do I have to go to alt.php. or
> alt.js.
>
> Can't I please just stay here? I like it here in spite of my bad
> treatment.
>
> I am reminded of that php stuff that I have used to stick in an
> id="current" on some list items depending on the html file being
> accessed. Perhaps it will all be clear by morning. But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.

I do something similar in a CMS. There is a table of, say, pages. One of
those pages will be the current one being actioned (deleted, renamed, edited
or whatever).

// $arr is an array of rows from the database.
// $current is the index into this array of the page being actioned.
for ($i = 0;$i < count($arr);$i++)
{
echo ' if ($i == $current)
{
echo " class='current'";
}
// optional if you want rows coloured alternatively. Easier to read.
else if ($i % 2)
{
echo "class='odd'";
}
echo ">\r\n";
// echo a for each field in the row
echo "\r\n";
}

Flavour 'current' and 'odd' to taste, probably using background colour.

--
Richard.

Re: How best to highlight an an item...

am 21.08.2007 14:06:00 von Andy Dingley

On 21 Aug, 09:12, dorayme wrote:

> Can't think of any normal html/css way of doing this. Not
> particularly keen on a js way

No reliable :hover outside of , so you're stuck with either JS or
both. Both works fine. It's hardly a crucial feature, so a graceful JS
degradation shoudl be OK too.

Use standard JS rollover code to flip the class on the row. You should
be easily able to integrate this with your CSS rules for the :hover
selector too. Make sure that the JS doesn't wipe out any previous
class settings though, such as an even/odd indicator for a striped
table.

> Anyone know of a php way perhaps?

Nope. It's an asynchronous client-side event, you're going to have to
cope with it client-side.

Re: How best to highlight an an item...

am 21.08.2007 18:11:22 von mbstevens

dorayme wrote:
> I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.


You might modify one of these demos of meyers
to make an arrow appear at the
beginning (and/or end) of each row as it is hovered:

http://meyerweb.com/eric/css/edge/popups/demo.html
http://meyerweb.com/eric/css/edge/menus/demo.html

Re: How best to highlight an an item...

am 22.08.2007 00:05:56 von dorayme

In article <13cm3ho8f0e1081@corp.supernews.com>,
mbstevens wrote:

> dorayme wrote:
> > I will be soon making up a page with a table of items. There will
> > be a fair few rows. All not high, all tabular.
> >
> > People will be referencing parts of it via links that latch onto
> > ids that will be placed on the s. But while this will narrow
> > things down for folk, they will still see a whole lot of other
> > stuff depending on the vertical size of their browser window. I
> > was rather hoping there might be a neat way of also highlighting
> > the row concerned, not necessarily literally the row, but
> > something to mark it out as the one to be attended to. Need no
> > help with the actual css, more with how to let the browser or
> > server know which row needs the style.
>
>
> You might modify one of these demos of meyers
> to make an arrow appear at the
> beginning (and/or end) of each row as it is hovered:
>
> http://meyerweb.com/eric/css/edge/popups/demo.html
> http://meyerweb.com/eric/css/edge/menus/demo.html

Hi mb, hovering effects are nothing I want here.

It is like this: a company clerk somewhere in the world will be
looking at some url in some paperwork where he needs to go to
download something. The thing he needs will be in a row of a
table on a web page that I produce. He can easily scroll the
table and find it (all rational alpha numerical order), but it
would be nice if it jumped out at him in case he has had a heavy
night. The css is the easy bit. The harder bit is getting the
style to apply to the bit he wants when he clicks the url.

Sure, the url will have a #... tacked on and this gets the item
on the browser window. Very helpful. But the clerk has had a
_very_ heavy night and a bit more help for him would be nice.

I think rf has a route, I do not have a data base though. But I
will keep his code (thanks rf, if I have understood you?) for
future or mull over it a while.

There are many other ways I can work things but it would be nice
to get or make some script I could stick on the page in the head
to cause row 473 at url#473 to stand out. AD says it cannot be
done server-side. JS will do, I guess, for this. So now to think
about or find a js script to do the job. If anyone knows a
specific url to any js that would help, I would appreciate it.

About the actual styling I favour more than just background
colour, I rather fancy a lot more padding, that would grab the
clerk's attention.

--
dorayme

Re: How best to highlight an an item...

am 22.08.2007 00:42:46 von BootNic

dorayme wrote:
news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au:

> I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
[snip]
> I am reminded of that php stuff that I have used to stick in an
> id="current" on some list items depending on the html file being
> accessed. Perhaps it will all be clear by morning. But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.

[url] http://bootnic.atwebpages.com/DataRowSelectExample.php [/url]

--
BootNic Tuesday August 21, 2007 6:42 PM
Humor is an affirmation of dignity, a declaration of man's
superiority to all that befalls him.
*Romain Gary*

Re: How best to highlight an an item...

am 22.08.2007 01:35:20 von dorayme

In article ,
BootNic wrote:

> dorayme wrote:
> news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au:
>
> > I will be soon making up a page with a table of items. There will
> > be a fair few rows. All not high, all tabular.
> >
> > People will be referencing parts of it via links that latch onto
> > ids that will be placed on the s. But while this will narrow
> > things down for folk, they will still see a whole lot of other
> > stuff depending on the vertical size of their browser window. I
> > was rather hoping there might be a neat way of also highlighting
> > the row concerned, not necessarily literally the row, but
> > something to mark it out as the one to be attended to. Need no
> > help with the actual css, more with how to let the browser or
> > server know which row needs the style.
> [snip]
> > I am reminded of that php stuff that I have used to stick in an
> > id="current" on some list items depending on the html file being
> > accessed. Perhaps it will all be clear by morning. But if anyone
> > knows the way to go without blinding me with science... please,
> > do spill the beans.
>
> [url] http://bootnic.atwebpages.com/DataRowSelectExample.php [/url]


This looks very promising to me. I need to study it further.
After breakfast. My quick test just now was:

I clicked on one of your blue links at top. This got me an
address I wanted to see in the url bar. I got

o70001>

I notice that to get a different row I need to change both the
"row=..." and of course, the end number 7000... in the url bar.
This does the trick of directing a complete outsider to the table
with a particular row highlighted. This might well do me! Thanks
for this. I am almost sure to use it. Will let you know how it
goes.

(Hey BootNic, because the php is not linked and named, how can I
name it in your honour as with a previous bit of js you made a
while back? I will have to sprinkle some comments about in the
html )

--
dorayme

Re: How best to highlight an an item...

am 22.08.2007 02:52:17 von BootNic

dorayme wrote: news:doraymeRidThis-
054704.09352022082007@news-vip.optusnet.com.au:

> In article ,
> BootNic wrote:
[snip]
>> [url] http://bootnic.atwebpages.com/DataRowSelectExample.php [/url]
>
> This looks very promising to me. I need to study it further.
> After breakfast. My quick test just now was:
>
> I clicked on one of your blue links at top. This got me an
> address I wanted to see in the url bar. I got
>
> > o70001>
>
> I notice that to get a different row I need to change both the
> "row=..." and of course, the end number 7000... in the url bar.
> This does the trick of directing a complete outsider to the table
> with a particular row highlighted. This might well do me! Thanks
> for this. I am almost sure to use it. Will let you know how it
> goes.

If you are pulling this out of a data base perhaps the id and row should
be based on the uniqueId, and not the row count as in my very simple
example. Same basic ideal, just matching it to something a bit more
dependable.

> (Hey BootNic, because the php is not linked and named, how can I
> name it in your honour as with a previous bit of js you made a
> while back? I will have to sprinkle some comments about in the
> html )

You are giving me more credit then I deserve. This is nothing new at all.
However if you like, I would not object to:



--
BootNic Tuesday August 21, 2007 8:52 PM
Sometimes I think the surest sign that intelligent life exists
elsewhere in the universe is that none of it has tried to contact us.
*Bill Watterson*

Re: How best to highlight an an item...

am 22.08.2007 03:18:51 von dorayme

In article ,
BootNic wrote:

> > > > o70001>
> >
> > I notice that to get a different row I need to change both the
> > "row=..." and of course, the end number 7000... in the url bar.
> > This does the trick of directing a complete outsider to the table
> > with a particular row highlighted. This might well do me! Thanks
> > for this. I am almost sure to use it. Will let you know how it
> > goes.
>
> If you are pulling this out of a data base perhaps the id and row should
> be based on the uniqueId, and not the row count as in my very simple
> example. Same basic ideal, just matching it to something a bit more
> dependable.

I left out of my previous message some queries about this matter.
Just thought I would first look at your script more closely.
Ideally, I would like to id each row because it
would be nice not to have to ask my client to put text with
row="..." in as part of their code. It is desirable to make the
code for the product exactly the same as this id. I have nothing
to do with my client's database. I just want to make sure that
they have a unique address for each product in my table, there is
one product per row and each row can have an id. This way there
is a simple rule for the client to make a unique url for any
product whatsoever, namely:

Put # followed by the code onto a base url.

Whereas with your scheme, I have to tell them the exact appendage
for each product, or they have to look to see the row it is on
(There are other categorization issues I have left out for
simplicity, the rows will be broken up and there will probably
end up being more than one table).

So, I will have to look at this more closely.

--
dorayme

Re: How best to highlight an an item...

am 22.08.2007 04:49:03 von mbstevens

dorayme wrote:

> It is like this: a company clerk somewhere in the world will be
> looking at some url in some paperwork where he needs to go to
> download something. The thing he needs will be in a row of a
> table on a web page that I produce. He can easily scroll the
> table and find it (all rational alpha numerical order), but it
> would be nice if it jumped out at him in case he has had a heavy
> night. The css is the easy bit. The harder bit is getting the
> style to apply to the bit he wants when he clicks the url.

OK, I _think_ I see what you're trying to do now.
What server side languages do you have available?

If the visitor has a CGI link like, e.g., "x.com?450,"
then you can change not only the page's content, but
the generated page's CSS given the stuff after the question
mark (in this case, 450).

If you don't have a data base, as you say, that is too bad. But if
the number of possible generated pages is not really huge, you can
easily keep CSS highlighting information in, e.g., a "450.template" file along with
the particular content for that generated page. Then you use the
information in that file as a template for the generated page.

Whether this is practicable depends on how many possible pages there are
and how you calculate the content. Even if you had SQL or such available,
the general practice of storing specialized CSS with specialized content
should work. If the number and size of changes on possible pages is quite
small, you can even store it inside the program itself in an associative
array.

Re: How best to highlight an an item...

am 22.08.2007 08:09:37 von dorayme

In article <13cn8taksdmn6d0@corp.supernews.com>,
mbstevens wrote:

> dorayme wrote:
>
> > It is like this: a company clerk somewhere in the world will be
> > looking at some url in some paperwork where he needs to go to
> > download something. The thing he needs will be in a row of a
> > table on a web page that I produce. He can easily scroll the
> > table and find it (all rational alpha numerical order), but it
> > would be nice if it jumped out at him in case he has had a heavy
> > night. The css is the easy bit. The harder bit is getting the
> > style to apply to the bit he wants when he clicks the url.
>
> OK, I _think_ I see what you're trying to do now.
> What server side languages do you have available?

I have php. Probably cgi ...

--
dorayme

Re: How best to highlight an an item...

am 22.08.2007 12:31:37 von Norman Peelman

dorayme wrote:
> I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
>
> Can't think of any normal html/css way of doing this. Not
> particularly keen on a js way ...though I might consider it as it
> is sort of an extra bit of help and not fundamentally bad if
> anyone has it turned off.
>
> Anyone know of a php way perhaps? Do I have to go to alt.php. or
> alt.js.
>
> Can't I please just stay here? I like it here in spite of my bad
> treatment.
>
> I am reminded of that php stuff that I have used to stick in an
> id="current" on some list items depending on the html file being
> accessed. Perhaps it will all be clear by morning. But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.
>


I'd say this is best done server-side, that's where the code is
received to begin with. You simply need to output a different css style
for the desired row as you output the rows. Like:

$desired_row = isset($_GET['row']) ? $_GET['row'] : false;
if ($desired_row === false)
{ // do error checking, etc
}

//and then in your output code

for($loop = 0; $loop<=$num_rows; $loop++)
{
....
if ($loop == $desired_row)
{
//output an id, class for this row - define this class in the main
html/css file
// echo the row
....
}

outside of that you need to ask in a PHP group... no need for js, etc.

Norm

Re: How best to highlight an an item...

am 22.08.2007 15:44:11 von BootNic

dorayme wrote:
news:doraymeRidThis-3BA7EF.11185122082007@news-vip.optusnet. com.au:

> In article ,
> BootNic wrote:
[snip]
> I left out of my previous message some queries about this matter.
> Just thought I would first look at your script more closely.
> Ideally, I would like to id each row because it
> would be nice not to have to ask my client to put text with
> row="..." in as part of their code. It is desirable to make the
> code for the product exactly the same as this id. I have nothing
> to do with my client's database. I just want to make sure that
> they have a unique address for each product in my table, there is
> one product per row and each row can have an id. This way there
> is a simple rule for the client to make a unique url for any
> product whatsoever, namely:

Can be done with id if that is what is desired. The basic ideal remains.

> Put # followed by the code onto a base url.

How about using / in place of #?

> Whereas with your scheme, I have to tell them the exact appendage
> for each product, or they have to look to see the row it is on
> (There are other categorization issues I have left out for
> simplicity, the rows will be broken up and there will probably
> end up being more than one table).

Not an issue :-) Modifications were made see if its a bit more suitable.

[url} http://bootnic.atwebpages.com/DataRowSelectExample.php [/url]

[snip]

--
BootNic Wednesday August 22, 2007 9:44 AM
You can discover what your enemy fears most by observing the means he
uses to frighten you.
*Eric Hoffer*

Re: How best to highlight an an item...

am 23.08.2007 04:30:01 von El Kabong

"dorayme" wrote in message
news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au...
>I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
>
> Can't think of any normal html/css way of doing this. Not
> particularly keen on a js way ...though I might consider it as it
> is sort of an extra bit of help and not fundamentally bad if
> anyone has it turned off.
>
> Anyone know of a php way perhaps? Do I have to go to alt.php. or
> alt.js.
>
> Can't I please just stay here? I like it here in spite of my bad
> treatment.
>
> I am reminded of that php stuff that I have used to stick in an
> id="current" on some list items depending on the html file being
> accessed. Perhaps it will all be clear by morning. But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.
>

I've never done it but according to "CSS Cookbook" by Christopher Schmitt,
(available at Amazon for $29.69 USD,) you can "use the target pseudo-class
to define the look of the elements when the user clicks on the anchored
link."

(Hope he doesn't mind me quoting him.)

Here's how I think it would work in your example:

..sku th,td:target {
background-color: #FFFF00;
color: #00000
font-weight: 800;
}

And then you would include class="sku" in appropriate cell elements... I
think... maybe.

If it works for you I may try it myself.

El

Re: How best to highlight an an item...

am 23.08.2007 05:26:56 von dorayme

In article ,
"El Kabong" wrote:

> "dorayme" wrote in message
> news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au...
> >I will be soon making up a page with a table of items. There will
> > be a fair few rows. All not high, all tabular.
> >

> I've never done it but according to "CSS Cookbook" by Christopher Schmitt,
> (available at Amazon for $29.69 USD,) you can "use the target pseudo-class
> to define the look of the elements when the user clicks on the anchored
> link."
>
> (Hope he doesn't mind me quoting him.)
>
> Here's how I think it would work in your example:
>
> .sku th,td:target {
> background-color: #FFFF00;
> color: #00000
> font-weight: 800;
> }
>
> And then you would include class="sku" in appropriate cell elements... I
> think... maybe.
>
> If it works for you I may try it myself.


I wonder if we can do this a little differently El? There will be
a side-splitting joke in it for you. My instinct tells me this
will not work.

Go to http://tinyurl.com/24y5hp and copy the source code. Please
try out your suggestion on it. (Don't forget to put a semicolon
after "color: #000". Leave out that font-weight too perhaps) and
test in different browsers.

You are the man, you have the book with the secrets.

--
dorayme

Re: How best to highlight an an item...

am 23.08.2007 05:42:47 von dorayme

In article ,
BootNic wrote:

> dorayme wrote:
> news:doraymeRidThis-3BA7EF.11185122082007@news-vip.optusnet. com.au:
>
> > In article ,
> > BootNic wrote:
>
> > with your scheme, I have to tell them the exact appendage
> > for each product, or they have to look to see the row it is on
> > (There are other categorization issues I have left out for
> > simplicity, the rows will be broken up and there will probably
> > end up being more than one table).
>
> Not an issue :-) Modifications were made see if its a bit more suitable.
>
> [url} http://bootnic.atwebpages.com/DataRowSelectExample.php [/url]
>

You might have noticed that I am sorting out other basic issues
first but I really would like to apply this sort of php as it
should provide a nice touch. It sure works nice on your example.
Pardon me for some haphazard comments here but I will come back
to this issue later:

Your latest replaces having to add

row=1#j-klo70001

to a base url if one wants a unique address with

id=j-klo70001#j-klo70001

This a bit longer in fact but easier to operate with for my
client, they do not need to refer to rows anymore. They know the
item code (j-klo70001 or whatever) from their end

For internal linking, either of your schemes is fine.

I have to work out how to dovetail it to my code.

In the meantime, my work is accepted and there is now no urgent
need for the client to do other than refer all people to one
simple url (of the page) on which is an internal menu. That is
where your php should be nice for further negotiation of the page.

--
dorayme

Re: How best to highlight an an item...

am 23.08.2007 07:20:25 von BootNic

dorayme wrote:
news:doraymeRidThis-9C9E48.13424723082007@news-vip.optusnet. com.au:

[snip]
> Your latest replaces having to add
>
> row=1#j-klo70001
>
> to a base url if one wants a unique address with
>
> id=j-klo70001#j-klo70001
>
> This a bit longer in fact but easier to operate with for my
> client, they do not need to refer to rows anymore. They know the
> item code (j-klo70001 or whatever) from their end

Its really much shorter and easier then that, the actual link would be
something like:
[url]
http://bootnic.atwebpages.com/DataRowSelectExample.php/j-klo 70001
[/url]
then the php converts and redirects to:
[url]
http://bootnic.atwebpages.com/DataRowSelectExample.php?id=j- klo70001#j-kl
o70001
[/url]

[snip]

--
BootNic Thursday August 23, 2007 1:19 AM
Optimism and humor are the grease and glue of life. Without both of
them we would never have survived our captivity.
*Philip Butler, Vietnam POW*

Re: How best to highlight an an item...

am 23.08.2007 16:46:14 von El Kabong

"dorayme" wrote in message
news:doraymeRidThis-F73CF8.13265623082007@news-vip.optusnet. com.au...
> In article ,
> "El Kabong" wrote:
>
>> "dorayme" wrote in message
>> news:doraymeRidThis-4F2D6C.18120421082007@news-vip.optusnet. com.au...
>> >I will be soon making up a page with a table of items. There will
>> > be a fair few rows. All not high, all tabular.
>> >
>
>> I've never done it but according to "CSS Cookbook" by Christopher
>> Schmitt,
>> (available at Amazon for $29.69 USD,) you can "use the target
>> pseudo-class
>> to define the look of the elements when the user clicks on the anchored
>> link."
>>
>> (Hope he doesn't mind me quoting him.)
>>
>> Here's how I think it would work in your example:
>>
>> .sku th,td:target {
>> background-color: #FFFF00;
>> color: #00000
>> font-weight: 800;
>> }
>>
>> And then you would include class="sku" in appropriate cell elements... I
>> think... maybe.
>>
>> If it works for you I may try it myself.
>
>
> I wonder if we can do this a little differently El? There will be
> a side-splitting joke in it for you. My instinct tells me this
> will not work.
>
> Go to http://tinyurl.com/24y5hp and copy the source code. Please
> try out your suggestion on it. (Don't forget to put a semicolon
> after "color: #000". Leave out that font-weight too perhaps) and
> test in different browsers.
>
> You are the man, you have the book with the secrets.

But, but, I was trying to avoid being terminally embarrassed by letting you
work out the ugliness.

Oh well, I'll read a little more of the book, maybe.

:-|

El

Re: How best to highlight an an item...

am 24.08.2007 10:51:46 von dorayme

In article ,
BootNic wrote:

> dorayme wrote:
> news:doraymeRidThis-9C9E48.13424723082007@news-vip.optusnet. com.au:
>
> [snip]

>
> Its really much shorter and easier then that, the actual link would be
> something like:
> [url]
> http://bootnic.atwebpages.com/DataRowSelectExample.php/j-klo 70001
> [/url]
> then the php converts and redirects to:
> [url]
> http://bootnic.atwebpages.com/DataRowSelectExample.php?id=j- klo70001#j-kl
> o70001
> [/url]
>

I have been a bit shy of saying this, I like your idea and now
that I am well under way to finishing all the basics on the page
I have been working on (a lot of it involved sorting out artwork
and zipping the packages up) I am ready for the "enhancement" of
this highlighting business. But when I came to _actually_ do it,
I am finding it none too easy. I thought it would be easy given
your source code and all. My page is .html for a start. The
server it is going to is set to process any php code, includes
etc on .html pages. So is my home server.

What is the very first thing I need to do to adapt it to my page?
Suppose that is a reasonable
simplified model. What are the steps I need to take please?

(Please rf, no smart remarks... it is pretty hard to admit my
fallibility and innocence this publicly. Go ski down some hill...)

--
dorayme

Re: How best to highlight an an item...

am 24.08.2007 12:21:29 von Neredbojias

Well bust mah britches and call me cheeky, on Fri, 24 Aug 2007 08:51:46
GMT dorayme scribed:

> Suppose that is a reasonable
> simplified model. What are the steps I need to take please?

Hey, that source is rendered reasonably decently! Whatever you did there,
stick with it.

--
Neredbojias
Half lies are worth twice as much as whole lies.

Re: How best to highlight an an item...

am 24.08.2007 12:55:26 von dorayme

In article
,
Neredbojias wrote:

> Well bust mah britches and call me cheeky, on Fri, 24 Aug 2007 08:51:46
> GMT dorayme scribed:
>
> > Suppose that is a reasonable
> > simplified model. What are the steps I need to take please?
>
> Hey, that source is rendered reasonably decently! Whatever you did there,
> stick with it.

What on earth are you talking about. Get with the program, as my
daughter would say. Read the thread. This is a different thread
to the other one. Which thread is that? I knew you would wonder.
Hint: look them both up and compare them side by side.

--
dorayme

Re: How best to highlight an an item...

am 24.08.2007 13:20:04 von rf

"dorayme" wrote in message
news:doraymeRidThis-

> (Please rf, no smart remarks... it is pretty hard to admit my
> fallibility and innocence this publicly. Go ski down some hill...)

Fuck off.

--
Richard.

Re: How best to highlight an an item...

am 24.08.2007 16:46:44 von BootNic

dorayme wrote:
news:doraymeRidThis-B7931F.18514624082007@news-vip.optusnet. com.au:

[snip]
> I have been a bit shy of saying this, I like your idea and now
> that I am well under way to finishing all the basics on the page
> I have been working on (a lot of it involved sorting out artwork
> and zipping the packages up) I am ready for the "enhancement" of
> this highlighting business. But when I came to _actually_ do it,
> I am finding it none too easy. I thought it would be easy given
> your source code and all. My page is .html for a start. The
> server it is going to is set to process any php code, includes
> etc on .html pages. So is my home server.
>
> What is the very first thing I need to do to adapt it to my page?
> Suppose that is a reasonable
> simplified model. What are the steps I need to take please?
[snip]

There is usually more then one way to go about it all. However I need more
information, as I only have access to what is rendered by php, I would
really need to see the php source to give a reasonable suggestion.

Specifically I need to know how the list of links and table are generated,
in order to assign the class to them. In my example the table and link is
checked during the assembly and if a match is found a class is added. If
the links and table are not assembled by php then a search and replace
could be used to assign a class to them.

The redirection part of my example could be added to the top of the page
and do its thing independent of the part that assigns the class to the
desired elements.

If your example is php, then you could add just a bit of code to the page
to display the php source such as I have in my example.

What I use to display the php source follows:
$this_page = file_get_contents($_SERVER["SCRIPT_FILENAME"]);
echo '








PHP SOURCE
'.
htmlentities($this_page).
'
';
?>

Take the precaution to ensure that you do not expose any user name or
password that may be in the php file.

--
BootNic Friday August 24, 2007 10:46 AM
Every time I close the door on reality it comes in through the
windows.
*Jennifer Unlimited*

Re: How best to highlight an an item...

am 24.08.2007 22:36:21 von mbstevens

dorayme wrote:

> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
>
> But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.
>

Sorry, doreme, to be a couple of days getting around to doing this,
but I was doing other things.

Here, try:
http://www.mbstevens.com/test/js_table_hlt.html?A
http://www.mbstevens.com/test/js_table_hlt.html?B

It is (yucch) JavaScript, but should degrade gracefully.
Works fine in Opera and Firefox, but I have not opened
my laptop to test it in IE yet. If it doesn't work,
some small modification probably will.

Re: How best to highlight an an item...

am 25.08.2007 00:34:40 von dorayme

In article ,
BootNic wrote:

> dorayme

> > What is the very first thing I need to do to adapt it to my page?
> > Suppose that is a reasonable
> > simplified model. What are the steps I need to take please?
> [snip]
>
> There is usually more then one way to go about it all. However I need more
> information, as I only have access to what is rendered by php, I would
> really need to see the php source to give a reasonable suggestion.

I write out the page in HTML, there is no relevant php in my
page.[1] In the model at the above address, what you see in the
View Source is exactly what is in my html text file. All the id's
are put in by typing directly. Nothing is generated.[2]

The file internalLinking.html sits on a server and the dummy pic
"red.gif" referred to in the html is in a folder under it. Low
tech extreme.

Basically, if you give me the very first step or two I might
cotton on. Starting with I am staring at my own file called
internalLinking.html in my text editor and I am looking at your
webpage in a browser.

_______________
[1] I have some php includes for footers, etc but this is not
relevant.

[2] I used some GREP to grab the info from the under the
called Code and make up an id in the s... but this is
just my construction in my text editor before uploading the file.

--
dorayme

Re: How best to highlight an an item...

am 25.08.2007 03:13:39 von dorayme

In article <13cug67pr17kif4@corp.supernews.com>,
mbstevens wrote:

> dorayme wrote:
>
> > People will be referencing parts of it via links that latch onto
> > ids that will be placed on the s. But while this will narrow
> > things down for folk, they will still see a whole lot of other
> > stuff depending on the vertical size of their browser window. I
> > was rather hoping there might be a neat way of also highlighting
> > the row concerned, not necessarily literally the row, but
> > something to mark it out as the one to be attended to. Need no
> > help with the actual css, more with how to let the browser or
> > server know which row needs the style.
> >
> > But if anyone
> > knows the way to go without blinding me with science... please,
> > do spill the beans.
> >
>
> Sorry, doreme, to be a couple of days getting around to doing this,
> but I was doing other things.
>
> Here, try:
> http://www.mbstevens.com/test/js_table_hlt.html?A
> http://www.mbstevens.com/test/js_table_hlt.html?B
>
> It is (yucch) JavaScript, but should degrade gracefully.
> Works fine in Opera and Firefox, but I have not opened
> my laptop to test it in IE yet. If it doesn't work,
> some small modification probably will.

Thanks mb. I am testing it right now. Looks interesting and
simple and I got it working on my own file but there are some
issues with various browsers. Will report back.

--
dorayme

Re: How best to highlight an an item...

am 25.08.2007 03:22:56 von mbstevens

dorayme wrote:
> In article <13cug67pr17kif4@corp.supernews.com>,
> mbstevens wrote:
>
>> dorayme wrote:
>>
>>> People will be referencing parts of it via links that latch onto
>>> ids that will be placed on the s. But while this will narrow
>>> things down for folk, they will still see a whole lot of other
>>> stuff depending on the vertical size of their browser window. I
>>> was rather hoping there might be a neat way of also highlighting
>>> the row concerned, not necessarily literally the row, but
>>> something to mark it out as the one to be attended to. Need no
>>> help with the actual css, more with how to let the browser or
>>> server know which row needs the style.
>>>
>>> But if anyone
>>> knows the way to go without blinding me with science... please,
>>> do spill the beans.
>>>
>> Sorry, doreme, to be a couple of days getting around to doing this,
>> but I was doing other things.
>>
>> Here, try:
>> http://www.mbstevens.com/test/js_table_hlt.html?A
>> http://www.mbstevens.com/test/js_table_hlt.html?B
>>
>> It is (yucch) JavaScript, but should degrade gracefully.
>> Works fine in Opera and Firefox, but I have not opened
>> my laptop to test it in IE yet. If it doesn't work,
>> some small modification probably will.
>
> Thanks mb. I am testing it right now. Looks interesting and
> simple and I got it working on my own file but there are some
> issues with various browsers. Will report back.
>
I did a version with #named_links, too. The problem was
that after looking at the first, most browsers had to use the
reload button to see the next link's highlights, because the browser
thought that it was looking at the same link. There is probably
a way around that, too, but I have not investigated it at any
length.

Re: How best to highlight an an item...

am 25.08.2007 04:06:28 von BootNic

dorayme wrote:
news:doraymeRidThis-E61BBA.08344025082007@news-vip.optusnet. com.au:

[snip]
> I write out the page in HTML, there is no relevant php in my
> page.[1] In the model at the above address, what you see in the
> View Source is exactly what is in my html text file. All the id's
> are put in by typing directly. Nothing is generated.[2]
>
> The file internalLinking.html sits on a server and the dummy pic
> "red.gif" referred to in the html is in a folder under it. Low
> tech extreme.
>
> Basically, if you give me the very first step or two I might
> cotton on. Starting with I am staring at my own file called
> internalLinking.html in my text editor and I am looking at your
> webpage in a browser.

[url] http://bootnic.atwebpages.com/dorayme.php [/url]

[snip]

--
BootNic Friday August 24, 2007 10:06 PM
"If you want to test your memory, try to recall what you were
worrying about one year ago today."
*Rotarian*

Re: How best to highlight an an item...

am 25.08.2007 06:03:09 von dorayme

In article <13cv0vel552i920@corp.supernews.com>,
mbstevens wrote:


> >> Here, try:
> >> http://www.mbstevens.com/test/js_table_hlt.html?A
> >> http://www.mbstevens.com/test/js_table_hlt.html?B
> >>
> >> It is (yucch) JavaScript, but should degrade gracefully.
> >> Works fine in Opera and Firefox, but I have not opened
> >> my laptop to test it in IE yet. If it doesn't work,
> >> some small modification probably will.
> >
> > Thanks mb. I am testing it right now. Looks interesting and
> > simple and I got it working on my own file but there are some
> > issues with various browsers. Will report back.
> >
> I did a version with #named_links, too. The problem was
> that after looking at the first, most browsers had to use the
> reload button to see the next link's highlights, because the browser
> thought that it was looking at the same link. There is probably
> a way around that, too, but I have not investigated it at any
> length.

Yes that was something that I noticed. I am starting to wonder if
any technique that I am likely to comprehend and implement will
be worth it. Just for now, I have kept the internal links, styled
the whole to my satisfaction, and the punters will be armed with
the base address and the item number that they need to download
for.

The ultimate good degradability: don't put in anything that needs
to degrade.

I had some fun with your script and even changed a few things to
make a whole row have a nice backgound colour, good in some
browsers. Tried some padding to make the row cells huger but
with zero success.

[I know, I am feeling defeatest! The weather is so lousy here!
This afternoon I will replace my power booster on my Ford XY.
There is a technique to do it without having to remove the master
cylinder that I want to try. You unbolt it and yank the latter
out of the way, dragging the pipes along - easier said than done.
The booster then takes a few mins to replace. Otherwise there is
the well known miserable job of removing the master and having to
bleed and worst of all: stripping threads on the three unions to
the cylinder, one is underneath and simply cannot be seen! I wish
there was a _lively_ ng on these old buses, there isn't it seems!
So pardon me making this reference to this matter. Poor alt.html,
it is not fair what you all have to put up with.]

--
dorayme

Re: How best to highlight an an item...

am 25.08.2007 15:04:55 von mbstevens

dorayme wrote:
> In article <13cv0vel552i920@corp.supernews.com>,
> mbstevens wrote:
>
>
>>>> Here, try:
>>>> http://www.mbstevens.com/test/js_table_hlt.html?A
>>>> http://www.mbstevens.com/test/js_table_hlt.html?B
>>>>
>>>> It is (yucch) JavaScript, but should degrade gracefully.
>>>> Works fine in Opera and Firefox, but I have not opened
>>>> my laptop to test it in IE yet. If it doesn't work,
>>>> some small modification probably will.
>>> Thanks mb. I am testing it right now. Looks interesting and
>>> simple and I got it working on my own file but there are some
>>> issues with various browsers. Will report back.
>>>
>> I did a version with #named_links, too. The problem was
>> that after looking at the first, most browsers had to use the
>> reload button to see the next link's highlights, because the browser
>> thought that it was looking at the same link. There is probably
>> a way around that, too, but I have not investigated it at any
>> length.
>
> Yes that was something that I noticed. I am starting to wonder if
> any technique that I am likely to comprehend and implement will
> be worth it. Just for now, I have kept the internal links, styled
> the whole to my satisfaction, and the punters will be armed with
> the base address and the item number that they need to download
> for.

Yes, I tested internal named links with an id matching the name
and used the same JS file. The first time a punter is sent to that
link you will get the highlighting. Subsequent visits to the page
will require them to do a reload to see it, though. You can put in
a 'show highlights' button to do that wtih JS's document.reload()
function, but that is not ideal of course.

>
> The ultimate good degradability: don't put in anything that needs
> to degrade.
>
> I had some fun with your script and even changed a few things to
> make a whole row have a nice backgound colour, good in some
> browsers. Tried some padding to make the row cells huger but
> with zero success.
>
> [I know, I am feeling defeatest! The weather is so lousy here!
> This afternoon I will replace my power booster on my Ford XY.
> There is a technique to do it without having to remove the master
> cylinder that I want to try. You unbolt it and yank the latter
> out of the way, dragging the pipes along - easier said than done.
> The booster then takes a few mins to replace. Otherwise there is
> the well known miserable job of removing the master and having to
> bleed and worst of all: stripping threads on the three unions to
> the cylinder, one is underneath and simply cannot be seen! I wish
> there was a _lively_ ng on these old buses, there isn't it seems!
> So pardon me making this reference to this matter. Poor alt.html,
> it is not fair what you all have to put up with.]
>
Recently did a new radiator for my old civic. Some fun. Had to
smith a new mount for the after-factory radiator.

Re: How best to highlight an an item...

am 26.08.2007 03:24:02 von dorayme

In article ,
BootNic wrote:

> dorayme wrote:
> news:doraymeRidThis-E61BBA.08344025082007@news-vip.optusnet. com.au:
>
> [snip]

> > Basically, if you give me the very first step or two I might
> > cotton on. Starting with I am staring at my own file called
> > internalLinking.html in my text editor and I am looking at your
> > webpage in a browser.
>
> [url] http://bootnic.atwebpages.com/dorayme.php [/url]

I returned to the issue this morning and achieved one success:
previously copying your code into my text editor resulted in
millions of errors. Finally nailed it down to spaces that were
not being translated right on this Mac machine.

What I did was select all the page at your kindly provided web
page above in the browser window and paste into my editor. I am
not sure whether I am supposed to change anything? If so, sorry,
it is just not obvious to me. Running the file (I called it
bootnic2.html) through my home server by simply typing the url to
it ending in .../enclosingFolder/bootnic2.html, two things happen
at once:

(1) The url changes to end with
..../enclosingFolder/?id=bootnic2.html

(2) The page goes from what it was (blank) to a directory window
showing all the files in the folder 'enclosingFolder' including
the one called bootnic2.html

Clicking bootnic2.html keeps me same place (albeit a little of
flashing in the url bar as it negotiates the link, like throwing
a ball up in the air a foot or two and it coming back into the
hand).

When I put it on an external server, a standard Unix one, it
shows a parse error: Parse error: syntax error, unexpected T_IF
on line 1.

Methinks it is a bit hard without me understanding more about the
nuts and bolts of php programming.

--
dorayme

Re: How best to highlight an an item...

am 26.08.2007 04:55:13 von BootNic

dorayme wrote:
news:doraymeRidThis-A8B21E.11240226082007@news-vip.optusnet. com.au:

[snip]
> I returned to the issue this morning and achieved one success:
> previously copying your code into my text editor resulted in
> millions of errors. Finally nailed it down to spaces that were
> not being translated right on this Mac machine.
>
> What I did was select all the page at your kindly provided web
> page above in the browser window and paste into my editor. I am
> not sure whether I am supposed to change anything? If so, sorry,
> it is just not obvious to me. Running the file (I called it
> bootnic2.html) through my home server by simply typing the url to
> it ending in .../enclosingFolder/bootnic2.html, two things happen
> at once:
>
> (1) The url changes to end with
> .../enclosingFolder/?id=bootnic2.html
>
> (2) The page goes from what it was (blank) to a directory window
> showing all the files in the folder 'enclosingFolder' including
> the one called bootnic2.html
>
> Clicking bootnic2.html keeps me same place (albeit a little of
> flashing in the url bar as it negotiates the link, like throwing
> a ball up in the air a foot or two and it coming back into the
> hand).
>
> When I put it on an external server, a standard Unix one, it
> shows a parse error: Parse error: syntax error, unexpected T_IF
> on line 1.
>
> Methinks it is a bit hard without me understanding more about the
> nuts and bolts of php programming.

Humm, well I don't know, but perhaps the shortcut I took in making the
original kind os screwed it up.

However there is now a different version of it up that copies fine for
me.

[url] http://bootnic.atwebpages.com/dorayme.php [/url]

There is also a text version and a live version. Give it a go and see
what happens.

[url] http://bootnic.atwebpages.com/dorayme.txt.php [/url]
[url] http://bootnic.atwebpages.com/doraymeLiveExample.php [/url]

--
BootNic Saturday August 25, 2007 10:55 PM
A well-developed sense of humor is the pole that adds balance to your
step as you walk the tightrope of life
*William Arthur Ward*

Re: How best to highlight an an item...

am 26.08.2007 23:52:54 von dorayme

In article ,
BootNic wrote:

> Humm, well I don't know, but perhaps the shortcut I took in making the
> original kind os screwed it up.
>
> However there is now a different version of it up that copies fine for
> me.
>
> [url] http://bootnic.atwebpages.com/dorayme.php [/url]
>
> There is also a text version and a live version. Give it a go and see
> what happens.
>
> [url] http://bootnic.atwebpages.com/dorayme.txt.php [/url]
> [url] http://bootnic.atwebpages.com/doraymeLiveExample.php [/url]

Good morning, gorgeous sunny day in Sydney seems to be starting.
I ran the last url and was _incensed_ to see it working so well
on your server It is like a shiny toy that I am trying to grab
but which seems always out of my reach!

There is something I need to do which I have not done. What?

The position remains basically unchanged from last time. Thanks
for the text version but this only avoided a problem that I had
solved anyway. In other words, if I use your text version to make
my file destined for my home server or an external server, I get
no problems of translation at all, the html all validates fine,
no errors show up in my text editor (I have a function that
checks it for valid html according to the doctype). But this is a
stage I reached before via replacing lots of unwanted characters
by normal spaces on this Mac.

The file I made from the text version is at

tVersion.html>

and is now doing essentially the same thing on both my off line
server and the server above. Namely: when you type the above into
a browser url bar, it changes to

mTextVersion.html>

and shows a directory listing. I have left the directory listing
to this folder open for you to see. I know, you cannot see the
file but it is simply the text version copied and then saved as
..html.

--
dorayme

Re: How best to highlight an an item...

am 27.08.2007 02:22:47 von BootNic

dorayme wrote: news:doraymeRidThis-
F560D6.07525427082007@news-vip.optusnet.com.au:

> In article ,
> BootNic wrote:
[snip]
>> [url] http://bootnic.atwebpages.com/dorayme.php [/url]
[snip]
>> [url] http://bootnic.atwebpages.com/dorayme.txt.php [/url]
>> [url] http://bootnic.atwebpages.com/doraymeLiveExample.php [/url]
[snip]
> The file I made from the text version is at
>
> > tVersion.html>
>
> and is now doing essentially the same thing on both my off line
> server and the server above. Namely: when you type the above into
> a browser url bar, it changes to
>
> > mTextVersion.html>
>
> and shows a directory listing. I have left the directory listing
> to this folder open for you to see. I know, you cannot see the
> file but it is simply the text version copied and then saved as
> .html.

Appear to have something to do with the redirect part of the php.

Rather then trying to trouble shoot it, I just rewrote it. With any luck
this version may work for you. This version I had a few attempts to get
it to work online and local, with the online server being the difficult
one. Online and local servers are completely different, different OS,
different apache versions, different php versions, so again with a little
luck it may work.

url's are the same, content changed.

--
BootNic Sunday August 26, 2007 8:22 PM
When men are pure, laws are useless; when men are corrupt, laws are
broken.
*Benjamin Disraeli*

Re: How best to highlight an an item...

am 27.08.2007 02:33:43 von BootNic

BootNic wrote:
news:Xns9998CF52C1CBBBootNic@216.168.3.70:

> dorayme wrote: news:doraymeRidThis-
> F560D6.07525427082007@news-vip.optusnet.com.au:
[snip]
> Appear to have something to do with the redirect part of the php.
>
> Rather then trying to trouble shoot it, I just rewrote it. With any
> luck this version may work for you. This version I had a few attempts
> to get it to work online and local, with the online server being the
> difficult one. Online and local servers are completely different,
> different OS, different apache versions, different php versions, so
> again with a little luck it may work.
>
> url's are the same, content changed.

Ah well, I had a bit of a problem with the silly thing. Fixed now so if
you got to it before this post you may want to try it again.

--
BootNic Sunday August 26, 2007 8:33 PM
The only thing wrong with immortality is that it tends to go on
forever.
*Herb Caen*

Re: How best to highlight an an item...

am 27.08.2007 03:28:19 von dorayme

In article ,
BootNic wrote:

> dorayme wrote: news:doraymeRidThis-
> F560D6.07525427082007@news-vip.optusnet.com.au:
>
> > In article ,
> > BootNic wrote:
> [snip]
> >> [url] http://bootnic.atwebpages.com/dorayme.php [/url]
> [snip]
> >> [url] http://bootnic.atwebpages.com/dorayme.txt.php [/url]
> >> [url] http://bootnic.atwebpages.com/doraymeLiveExample.php [/url]
> [snip]
> > The file I made from the text version is at
> >
> > > > tVersion.html>
> >
> > and is now doing essentially the same thing on both my off line
> > server and the server above. Namely: when you type the above into
> > a browser url bar, it changes to:
> >
mTextVersion.html>
> >
> > and shows a directory listing. I have left the directory listing
> > to this folder open for you to see. I know, you cannot see the
> > file but it is simply the text version copied and then saved as
> > .html.
>
> Appear to have something to do with the redirect part of the php.
>
> Rather then trying to trouble shoot it, I just rewrote it. With any luck
> this version may work for you. This version I had a few attempts to get
> it to work online and local, with the online server being the difficult
> one. Online and local servers are completely different, different OS,
> different apache versions, different php versions, so again with a little
> luck it may work.
>
> url's are the same, content changed.

Now we are cooking with gas. Well done BootNic! Online and local
server behaving identically (as was the case, btw, _just_ prior
to your latest edit. But this time with a success in both).

I am delighted just to see it working on my servers. It works on
my quick tests just now to highlight the given item from the
navigation on the page. That's great, of course.

If I wanted to give a more specific address to someone, suppose
they need to download a particular zipped package, I can append
#RA_TK1 (for example) to the url after the html. This gets the
said item onto the page (at least in compliant browsers) but no
highlighting occurs. If one then scrolls up to top and clicks the
menu item concerned, highlighting does occur (ie. that part still
works good).

Is there anything that can be done to enable highlighting to
occur from simply entering a specific /...html#RA_TK1 into the
url bar?

Whether yes or no, this is very interesting to me and I now look
to using it, especially in pages where people are not likely to
be coming to a particular item from outside. I have a few of
these and they are perfectly apt for your code.

The particular facility I have made that prompted all this is a
bit special in that people will not be coming to browse but
_always_ coming for a specific item. What I have already, does
the job. But I have been considering dispensing with the big
table altogether and instead, having a page for each item with an
included menu for all the other items/pages (The latter for
convenience of the main client and myself and anyone who needs to
print more than one item). I understand that one can generate
such pages on the fly depending on the link sought. In other
words, just one page really and some php that would blossom into
any one of a 100 or more pages. Either 100 pages or one, this may
be the way I will go on this particular little project. It is
very easy for me to make 100 near identical pages with an
included menu to all. All low tech. But it is simply interesting
to learn cleverer ways.

--
dorayme

Re: How best to highlight an an item...

am 27.08.2007 03:37:18 von dorayme

In article ,
BootNic wrote:

> Ah well, I had a bit of a problem with the silly thing. Fixed now so if
> you got to it before this post you may want to try it again.

Well, I am not sure I was having any problem, just finished
acknowledging a success. But I am assuming the business of
specific addresses is not the glitch you referred to. Anyway, I
will update anyway.

btw, my iCab browser reports:

CSS Error (11/24): Invalid property value ³rgb².
CSS Error (11/25): Unknown CSS property ³².

I have not looked into this yet, sure to be nothing much.

--
dorayme

Re: How best to highlight an an item...

am 27.08.2007 04:08:42 von Norman Peelman

dorayme wrote:
> I will be soon making up a page with a table of items. There will
> be a fair few rows. All not high, all tabular.
>
> People will be referencing parts of it via links that latch onto
> ids that will be placed on the s. But while this will narrow
> things down for folk, they will still see a whole lot of other
> stuff depending on the vertical size of their browser window. I
> was rather hoping there might be a neat way of also highlighting
> the row concerned, not necessarily literally the row, but
> something to mark it out as the one to be attended to. Need no
> help with the actual css, more with how to let the browser or
> server know which row needs the style.
>
> Can't think of any normal html/css way of doing this. Not
> particularly keen on a js way ...though I might consider it as it
> is sort of an extra bit of help and not fundamentally bad if
> anyone has it turned off.
>
> Anyone know of a php way perhaps? Do I have to go to alt.php. or
> alt.js.
>
> Can't I please just stay here? I like it here in spite of my bad
> treatment.
>
> I am reminded of that php stuff that I have used to stick in an
> id="current" on some list items depending on the html file being
> accessed. Perhaps it will all be clear by morning. But if anyone
> knows the way to go without blinding me with science... please,
> do spill the beans.
>

You could probably check into the $_SERVER superglobal in PHP. Create
your id and css based on the query string.

Norm

Re: How best to highlight an an item...

am 27.08.2007 05:42:56 von BootNic

dorayme wrote:
news:doraymeRidThis-6D2D70.11281927082007@news-vip.optusnet. com.au:

[snip]
> If I wanted to give a more specific address to someone, suppose
> they need to download a particular zipped package, I can append
> #RA_TK1 (for example) to the url after the html. This gets the
> said item onto the page (at least in compliant browsers) but no
> highlighting occurs. If one then scrolls up to top and clicks the
> menu item concerned, highlighting does occur (ie. that part still
> works good).
>
> Is there anything that can be done to enable highlighting to
> occur from simply entering a specific /...html#RA_TK1 into the
> url bar?

Replace # with /

This one will go to #FU_TK1 but not highlighted:
[url] http://bootnic.atwebpages.com/doraymeLiveExample.php#FU_TK1 [/url]

This one will go to #FU_TK1 and highlighted:
url] http://bootnic.atwebpages.com/doraymeLiveExample.php/FU_TK1 [/url]

[snip]
--
BootNic Sunday August 26, 2007 11:42 PM
Have no fear of perfection - you'll never reach it.
*Salvador Dali*

Re: How best to highlight an an item...

am 27.08.2007 06:16:19 von dorayme

In article ,
BootNic wrote:

> dorayme wrote:
> news:doraymeRidThis-6D2D70.11281927082007@news-vip.optusnet. com.au:
>
> [snip]
> > If I wanted to give a more specific address to someone, suppose
> > they need to download a particular zipped package, I can append
> > #RA_TK1 (for example) to the url after the html. This gets the
> > said item onto the page (at least in compliant browsers) but no
> > highlighting occurs. If one then scrolls up to top and clicks the
> > menu item concerned, highlighting does occur (ie. that part still
> > works good).
> >
> > Is there anything that can be done to enable highlighting to
> > occur from simply entering a specific /...html#RA_TK1 into the
> > url bar?
>
> Replace # with /
>
> This one will go to #FU_TK1 but not highlighted:
> [url] http://bootnic.atwebpages.com/doraymeLiveExample.php#FU_TK1 [/url]
>
> This one will go to #FU_TK1 and highlighted:
> url] http://bootnic.atwebpages.com/doraymeLiveExample.php/FU_TK1 [/url]
>


I think you or someone mentioned about this / instead of the #
earlier on and I missed the significance then. But with greater
success comes greater focus.

That does it in the modern browsers I tested on my Mac. So now
your code works for the two main purposes I had in mind. You must
know I am well pleased with this. Thanks a lot for this. I am
sure it will be of benefit to others too. Yet another bootnic.php
child script hits the net.

--
dorayme

Re: How best to highlight an an item...

am 27.08.2007 06:23:44 von BootNic

dorayme wrote:
news:doraymeRidThis-333C8A.14161927082007@news-vip.optusnet. com.au:

[snip]
> I think you or someone mentioned about this / instead of the #
> earlier on and I missed the significance then. But with greater
> success comes greater focus.
>
> That does it in the modern browsers I tested on my Mac. So now
> your code works for the two main purposes I had in mind. You must
> know I am well pleased with this. Thanks a lot for this. I am
> sure it will be of benefit to others too. Yet another bootnic.php
> child script hits the net.

I glad your happy with it.

No need to test it in different browsers that I know of, its the server
that is doing the work not the browser.

--
BootNic Monday August 27, 2007 12:23 AM
All things come to him who waits - provided he knows what he is
waiting for.
*Woodrow T. Wilson*