Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > javascript redirect usability

Reply
Thread Tools

javascript redirect usability

 
 
Thomas McCarthy
Guest
Posts: n/a
 
      07-17-2003
Hi! I am keeping my portfolio at Http://www.lambelly.com. This is a site
utilizing PHP templates. My question is this: I could think of no good way
of linking the index.html page to the php templates other than using a
javascript redirect. In theory, this could cause problems in some
browsers, however. I was wondering if anyone had any better ideas about
how to do this in a more failsafe way, or if
anybody had any comments on the site in general.

Thanks!
Tom McCarthy
 
Reply With Quote
 
 
 
 
William Tasso
Guest
Posts: n/a
 
      07-17-2003
Thomas McCarthy wrote:
> Hi! I am keeping my portfolio at Http://www.lambelly.com. This is a
> site utilizing PHP templates. My question is this: I could think of
> no good way of linking the index.html page to the php templates other
> than using a javascript redirect. In theory, this could cause
> problems in some browsers,


nearly right: in practice some visitors will get a blank screen

> however. I was wondering if anyone had any
> better ideas about how to do this in a more failsafe way,


actually using the home/index page would work well
configure the server to deliver your real home-page
permanent redirect is next favourite
meta refresh may provide some fall-back
placing a link on the page is mandatory in case all others fail.

> or if
> anybody had any comments on the site in general.
>


nice background

--
William Tasso - http://www.WilliamTasso.com


 
Reply With Quote
 
 
 
 
Toby A Inkster
Guest
Posts: n/a
 
      07-17-2003
On Thu, 17 Jul 2003 11:38:05 -0400, Thomas McCarthy wrote:

> Hi! I am keeping my portfolio at Http://www.lambelly.com. This is a site
> utilizing PHP templates. My question is this: I could think of no good way
> of linking the index.html page to the php templates other than using a
> javascript redirect.


Firstly, not answering your question, but take a look at:

http://www.lambelly.com/template.php

It is a good idea to have a fall-back page if ?include=something is
missing! Probably you should set '?include=home' if none is given.

Now, on to your question. Create a plain text file called '.htaccess'
(note: the leading dot is important!)

It should have one line of text:

DirectoryIndex template.php?include=home

This specifies a 'default page'.

--
Toby A Inkster BSc (Hons) ARCS | private.php?do=newpm&u= | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)
 
Reply With Quote
 
Thomas McCarthy
Guest
Posts: n/a
 
      07-22-2003
Thanks! Those are all really good tips


On Thu, 17 Jul 2003 11:38:05 -0400, Thomas McCarthy wrote:

> Hi! I am keeping my portfolio at Http://www.lambelly.com. This is a site
> utilizing PHP templates. My question is this: I could think of no good way
> of linking the index.html page to the php templates other than using a
> javascript redirect. In theory, this could cause problems in some
> browsers, however. I was wondering if anyone had any better ideas about
> how to do this in a more failsafe way, or if
> anybody had any comments on the site in general.
>
> Thanks!
> Tom McCarthy


 
Reply With Quote
 
AndyEd
Guest
Posts: n/a
 
      07-22-2003
"Thomas McCarthy" <> wrote in message news:<>. ..
> My question is this: I could think of no good way
> of linking the index.html page to the php templates other than using a
> javascript redirect. In theory, this could cause problems in some


If you do stick with a javascript redirect, look into
document.location.replace(url) instead of setting document.location
directly.

This prevents the first page from being entered into history.

hth,
Andy Edmonds
Uzilla LLC. "Tools for a Usable Web"
http://www.uzilla.net
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Big usability problem with validators Alan Silver ASP .Net 4 02-27-2006 03:54 PM
Gripe: usability problems with directory listing in .Net 2 Tim_Mac ASP .Net 2 12-15-2005 10:37 PM
jboss usability Okros Peter Java 5 08-05-2005 07:07 PM
Usability of Multi-Select ListBox George Durzi ASP .Net 2 06-02-2005 05:56 PM
Basic Q - Response.Redirect, all redirect to first Response.Redirect statement Sal ASP .Net Web Controls 1 05-15-2004 03:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57