Re: [WSG] Trying to add a back to top link

2004-04-26 Thread Jake Badger
I think it's something like

echo a href=\$_SERVER['PHP_SELF'].$_SERVER
[QUERY_STRING].#top\top/a;

but that's off the top of my head (as we don't have an SQL enviroment 
at work for me to test it with).

Jake

 Hello,
 
 I am trying to add a back to top of page link to PHP dynamically 
generated
 pages. The header and footers for these page never change so the 
anchor is
 in the header and the link in the footer.
 
 Header Anchor:
 
 a name=top/a
 
 HARD CODE link used in the body of the static pages (which I want to 
pull
 out to place in the footer!)
 
 a href=index.php?main_page=index#top title=Back to Topimg
 src=images/button_top.gif alt=Back to top width=86 height=20
 border=0 class=rollover //a
 
 Now my PHP skills are weak but growing stronger, which is why I am 
asking
 for the help here. As the pages are long in many cases (requiring 
two or
 more page-downs), I desperately want to improve accessibility by 
including
 the back to top link on all pages.
 
 So what I want to make happen is to is have the a href= tag
 index.php?main_page=index (or whatever page this happens to be on) 
filled in
 by the php and then add the #top at the end so that is it all 
autonomous and
 I can put this on ANY and all pages)
 
 While I have it working in some pages as a hard coded link, I can't 
figure
 out what to place where in regards to the PHP. I am trying
 basename($PHP_SELF) but am lost now as I am over my head here.
 
 Thanks
 
 *
 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] Trying to add a back to top link

2004-04-26 Thread Jake Badger
whoops, still haven't been able to test it, but I see I'm, missing a 
dot, so it should be:

echo a href=\.$_SERVER['PHP_SELF'].$_SERVER
[QUERY_STRING].#top\top/a;

 I think it's something like
 
 echo a href=\$_SERVER['PHP_SELF'].$_SERVER
 [QUERY_STRING].#top\top/a;
 
 but that's off the top of my head (as we don't have an SQL 
enviroment 
 at work for me to test it with).
 
 Jake
 
  Hello,
  
  I am trying to add a back to top of page link to PHP dynamically 
 generated
  pages. The header and footers for these page never change so the 
 anchor is
  in the header and the link in the footer.
  
  Header Anchor:
  
  a name=top/a
  
  HARD CODE link used in the body of the static pages (which I want 
to 
 pull
  out to place in the footer!)
  
  a href=index.php?main_page=index#top title=Back to Topimg
  src=images/button_top.gif alt=Back to top width=86 
height=20
  border=0 class=rollover //a
  
  Now my PHP skills are weak but growing stronger, which is why I am 
 asking
  for the help here. As the pages are long in many cases (requiring 
 two or
  more page-downs), I desperately want to improve accessibility by 
 including
  the back to top link on all pages.
  
  So what I want to make happen is to is have the a href= tag
  index.php?main_page=index (or whatever page this happens to be on) 
 filled in
  by the php and then add the #top at the end so that is it all 
 autonomous and
  I can put this on ANY and all pages)
  
  While I have it working in some pages as a hard coded link, I 
can't 
 figure
  out what to place where in regards to the PHP. I am trying
  basename($PHP_SELF) but am lost now as I am over my head here.
  
  Thanks
  
  *
  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
 * 
 
 
 


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



[WSG] Trying to add a back to top link

2004-04-24 Thread theGrafixGuy
Hello,

I am trying to add a back to top of page link to PHP dynamically generated
pages. The header and footers for these page never change so the anchor is
in the header and the link in the footer.

Header Anchor:

a name=top/a

HARD CODE link used in the body of the static pages (which I want to pull
out to place in the footer!)

a href=index.php?main_page=index#top title=Back to Topimg
src=images/button_top.gif alt=Back to top width=86 height=20
border=0 class=rollover //a

Now my PHP skills are weak but growing stronger, which is why I am asking
for the help here. As the pages are long in many cases (requiring two or
more page-downs), I desperately want to improve accessibility by including
the back to top link on all pages.

So what I want to make happen is to is have the a href= tag
index.php?main_page=index (or whatever page this happens to be on) filled in
by the php and then add the #top at the end so that is it all autonomous and
I can put this on ANY and all pages)

While I have it working in some pages as a hard coded link, I can't figure
out what to place where in regards to the PHP. I am trying
basename($PHP_SELF) but am lost now as I am over my head here.

Thanks

*
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] Trying to add a back to top link

2004-04-24 Thread Ben Bishop
Have you considered using a href=#top.../a ?

--Ben
http://www.daemon.com.au/
theGrafixGuy wrote:

I am trying to add a back to top of page link to PHP dynamically generated
pages. The header and footers for these page never change so the anchor is
in the header and the link in the footer.
a href=index.php?main_page=index#top title=Back to Topimg
src=images/button_top.gif alt=Back to top width=86 height=20
border=0 class=rollover //a
*
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] Trying to add a back to top link

2004-04-24 Thread theGrafixGuy
Yes and that goes back to the root index page - as mentioned these pages are
dynamic!

Brian

-Original Message-
From: Ben Bishop [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 24, 2004 2:50 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Trying to add a back to top link

Have you considered using a href=#top.../a ?

--Ben
http://www.daemon.com.au/


theGrafixGuy wrote:

I am trying to add a back to top of page link to PHP dynamically generated
pages. The header and footers for these page never change so the anchor is
in the header and the link in the footer.

a href=index.php?main_page=index#top title=Back to Topimg
src=images/button_top.gif alt=Back to top width=86 height=20
border=0 class=rollover //a

*
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] Trying to add a back to top link

2004-04-24 Thread Anders Ebdrup
Hi Brian

I think this subject is OT, but I think Ben is right; I have a dynamic
php-side, and I am using Ben's solution.

Regards
Anders

- Original Message - 
From: theGrafixGuy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 24, 2004 1:03 PM
Subject: RE: [WSG] Trying to add a back to top link


 Yes and that goes back to the root index page - as mentioned these pages
are
 dynamic!

 Brian

 -Original Message-
 From: Ben Bishop [mailto:[EMAIL PROTECTED]
 Sent: Saturday, April 24, 2004 2:50 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [WSG] Trying to add a back to top link

 Have you considered using a href=#top.../a ?

 --Ben
 http://www.daemon.com.au/


 theGrafixGuy wrote:

 I am trying to add a back to top of page link to PHP dynamically
generated
 pages. The header and footers for these page never change so the anchor
is
 in the header and the link in the footer.
 
 a href=index.php?main_page=index#top title=Back to Topimg
 src=images/button_top.gif alt=Back to top width=86 height=20
 border=0 class=rollover //a
 
 *
 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
 *


*
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] Trying to add a back to top link

2004-04-24 Thread theGrafixGuy
I think I have the right track here if I can figure out how to write it??? I
know that one can't stick php in a tag like that:-/

a href=? $_SERVER['PHP_SELF'] ?#top

-Original Message-
From: Anders Ebdrup [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 24, 2004 4:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Trying to add a back to top link

Hi Brian

I think this subject is OT, but I think Ben is right; I have a dynamic
php-side, and I am using Ben's solution.

Regards
Anders

- Original Message - 
From: theGrafixGuy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 24, 2004 1:03 PM
Subject: RE: [WSG] Trying to add a back to top link


 Yes and that goes back to the root index page - as mentioned these pages
are
 dynamic!

 Brian

 -Original Message-
 From: Ben Bishop [mailto:[EMAIL PROTECTED]
 Sent: Saturday, April 24, 2004 2:50 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [WSG] Trying to add a back to top link

 Have you considered using a href=#top.../a ?

 --Ben
 http://www.daemon.com.au/


 theGrafixGuy wrote:

 I am trying to add a back to top of page link to PHP dynamically
generated
 pages. The header and footers for these page never change so the anchor
is
 in the header and the link in the footer.
 
 a href=index.php?main_page=index#top title=Back to Topimg
 src=images/button_top.gif alt=Back to top width=86 height=20
 border=0 class=rollover //a
 
 *
 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
 *


*
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] Trying to add a back to top link

2004-04-24 Thread Lea de Groot
On Sat, 24 Apr 2004 04:03:41 -0700, theGrafixGuy wrote:
 Yes and that goes back to the root index page - as mentioned these pages are
 dynamic!

(This is really OT, but it should be quick and easy -)
Have you put a base statement in your HTML?
That'll point the #... to the wrong page. 

If you really want to specify the current page, have you tried 
$_SERVER['REQUEST_URI'] ?

Lea
-- 
Lea de Groot
Elysian Systems - http://elysiansystems.com/
Brisbane, Australia
*
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] Trying to add a back to top link

2004-04-24 Thread Manuel González Noriega
El sáb, 24-04-2004 a las 13:41, theGrafixGuy escribió:
 I think I have the right track here if I can figure out how to write it??? I
 know that one can't stick php in a tag like that:-/
 
 a href=? $_SERVER['PHP_SELF'] ?#top

Yes, you can. You are only lacking the echo part
a href=? echo $_SERVER['PHP_SELF'] ?#top

or the shortcut notation

a href=?=$_SERVER['PHP_SELF'] ?#top
-- 
Manuel González Noriega
Simplelógica, construcción web  
URL: http://simplelogica.net
EMAIL: [EMAIL PROTECTED]
TELEFONO: (+34) 985 22 12 65
   
Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/
/pThat's right. We said Frontpage./p

*
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] Trying to add a back to top link

2004-04-24 Thread theGrafixGuy
Yes there is a base statement built in to the system.

And sorry if it is OT, as I am trying very hard to add accessibility in
steps as I can, but I am really stuck here and grasping at straws

Essentially, I am trying to figure out how to wrap the URL the PHP or vice
versa - as this ain't working casue it ain't written right ;-/

 a href=? $_SERVER['PHP_SELF'] ?#top

Brian

-Original Message-
From: Lea de Groot [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 24, 2004 4:46 AM
To: [EMAIL PROTECTED]
Subject: RE: [WSG] Trying to add a back to top link

On Sat, 24 Apr 2004 04:03:41 -0700, theGrafixGuy wrote:
 Yes and that goes back to the root index page - as mentioned these pages
are
 dynamic!

(This is really OT, but it should be quick and easy -)
Have you put a base statement in your HTML?
That'll point the #... to the wrong page. 

If you really want to specify the current page, have you tried 
$_SERVER['REQUEST_URI'] ?

Lea
-- 
Lea de Groot
Elysian Systems - http://elysiansystems.com/
Brisbane, Australia
*
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] Trying to add a back to top link

2004-04-24 Thread Chris Bentley

Have you considered using a href=#top.../a ?
Yes and that goes back to the root index page - as mentioned these 
pages are
dynamic!
Are you using the BASE element?
 #top is a reference to a local fragment,  the page shouldn't reload 
or load another page unless you have set a base URI.

...or am I missing something?

chris

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