Re: [WSG] semantically correct markup for "pagination"

2005-07-04 Thread Patrick H. Lauke

Webmaster wrote:

Sorry Patrick. I was way off.


No worries...happens to me most of the time as well :)


Now to tackle those Googlers.


That's the spirit!

--
Patrick H. Lauke
__
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



RE: [WSG] semantically correct markup for "pagination"

2005-07-04 Thread Webmaster
Sorry Patrick. I was way off. I thought he was asking how to achieve the
task in its enirety. I've revisited the originel email and, in my defence,
it really wasn't terribly explicit.

Now to tackle those Googlers.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Patrick H. Lauke
Sent: Tuesday, 5 July 2005 1:29 PM
To: wsg@webstandardsgroup.org
Subject: Re: [WSG] semantically correct markup for "pagination"

Webmaster wrote:
> I wasn't aware this could be achieved dynamically using HTML.

Nobody said anything about HTML creating the pagination links dynamically.

> Have I missed
> something? Does PHP not represent well-formed and meaningful data?

PHP outputs whatever HTML markup you tell it to output, once you've done all
your totalresults/blahblah stuff. But, what should you print or echo? *That*
is what the original question was. A paragraph with a series of links? An
unordered list of links? A definition list?

> Perhaps all this time I've invested in server-side scripting has been 
> wasted.

You seem to have missed the point of the original question.

> I'd best let the developers at Google know. :)

Yes, let them know that their pages should really be marked up with
structural HTML or XHTML... :)

--
Patrick H. Lauke
__
re.dux (adj.): brought back; returned. used postpositively [latin : re-, re-
+ dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
**



Re: [WSG] semantically correct markup for "pagination"

2005-07-04 Thread Patrick H. Lauke

Webmaster wrote:

I wasn't aware this could be achieved dynamically using HTML.


Nobody said anything about HTML creating the pagination links dynamically.


Have I missed
something? Does PHP not represent well-formed and meaningful data?


PHP outputs whatever HTML markup you tell it to output, once you've done 
all your totalresults/blahblah stuff. But, what should you print or 
echo? *That* is what the original question was. A paragraph with a 
series of links? An unordered list of links? A definition list?



Perhaps all this time I've invested in server-side scripting has been
wasted.


You seem to have missed the point of the original question.


I'd best let the developers at Google know. :)


Yes, let them know that their pages should really be marked up with 
structural HTML or XHTML... :)


--
Patrick H. Lauke
__
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



Re: [WSG] semantically correct markup for "pagination"

2005-07-04 Thread Patrick H. Lauke

Webmaster wrote:
In what language, Marco? 


As he asked for "semantically correct markup", how's about HTML? ;)

I'd be tempted to say "ordered list of links" on this one.

--
Patrick H. Lauke
__
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]
www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com
__
Web Standards Project (WaSP) Accessibility Task Force
http://webstandards.org/
__

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
**



RE: [WSG] semantically correct markup for "pagination"

2005-07-04 Thread Webmaster
Title: semantically correct markup for "pagination"



In what language, Marco? This type of functionality is 
built into almost any site's search page. You can find examples of it 
everywhere.
 
Using PHP you would just set a couple of variables and then 
perform a numrows count and repeat of the same query with a LIMIT of 10 or 
so.
 
e.g. $totalResults+4/10; and then a LIMIT $StartPos, 10;, 
where $StartPos = ($PageNo-1)*10; and PageNo is a hidden field in your 
form.
 
You then just add the Prev and Next buttons with an onclick 
event of document.results.PageNo.value= -- and value = ++.
 
Sorry I couldn't write it more clearly but I dont think 
this presents any accesibility issues. It's just a few lines of code and it will 
be different for every occasion and language used. 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Marco Della 
PinaSent: Tuesday, 5 July 2005 1:12 AMTo: 
wsg@webstandardsgroup.orgSubject: [WSG] semantically correct markup 
for "pagination"

Hi all, 
does anybody have an example of a semantically 
correct markup for a "pagination" like on www.google.com with previous and 
next links?
Best regards from Germany, 
Marco Della Pina