Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - A really strange problem which has me baffled

 
Thread Tools Search this Thread
Old 06-16-2006, 09:49 AM   #1
Default A really strange problem which has me baffled


Hi,

I don't know if this problem is with JS, PHP or the the code..

http://www.smmp.salford.ac.uk/staff/music-index.shtml

The page lists and biogs are generated in PHP with a MySQL backend.
There are two sections under the green banner - a small list on the left
and the big list on the right. Same PHP generates the name and links
etc.

If you click on the top name on the left (King, David [Prof]), a JS
window appears with the correct details in. If you just place the mouse
over the link, the URL appears and it points to the right place.

Now, if you go to the biography bit on the right, put the mouse over the
link and it gives the same URL. Click on it and you go somewhere
completely different (different member of staff). However, if you open
the link in a new window, it goes to the right place.

This *only* happens with the person at the top of the biography lists on
the right hand side.

Okay, I know there are a couple of errors on the page (should the
DOCTYPE go before any php i.e.

<DOCTYPE ...>
<?php
..
{
?>
<html>
)

but I can't see a reason why the top person on the list should open to
some random person!

Any advice would be appreciated.

TTFN

Paul
--
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who



Paul
  Reply With Quote
Old 06-16-2006, 10:16 AM   #2
Brian Cryer
 
Posts: n/a
Default Re: A really strange problem which has me baffled

"Paul" <> wrote in message
news:...
> Hi,
>
> I don't know if this problem is with JS, PHP or the the code..
>
> http://www.smmp.salford.ac.uk/staff/music-index.shtml


I know its not the problem you describe, but if I visit that page I get two
errors:

Unterminated string constant (script error)

then

Unable to connect to the database (message box)

and I don't see the links you described.
--
Brian Cryer
www.cryer.co.uk/brian


  Reply With Quote
Old 06-16-2006, 10:24 AM   #3
Paul
 
Posts: n/a
Default Re: A really strange problem which has me baffled

Hi,

On Fri, 2006-06-16 at 10:16 +0100, Brian Cryer wrote:
> "Paul" <> wrote in message
> news:...


> > http://www.smmp.salford.ac.uk/staff/music-index.shtml

>
> I know its not the problem you describe, but if I visit that page I get two
> errors:
>
> Unterminated string constant (script error)
>
> then
>
> Unable to connect to the database (message box)
>
> and I don't see the links you described.


Dang - mysql server went down. Now up. Instead of music-index.sthml, use
media-index.shtml please.

TTFN

Paul

--
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who

  Reply With Quote
Old 06-16-2006, 12:02 PM   #4
Brian Cryer
 
Posts: n/a
Default Re: A really strange problem which has me baffled

"Paul" <> wrote in message
news:...
> Hi,
>
> On Fri, 2006-06-16 at 10:16 +0100, Brian Cryer wrote:
>> "Paul" <> wrote in message
>> news:...

>
>> > http://www.smmp.salford.ac.uk/staff/music-index.shtml

>>
>> I know its not the problem you describe, but if I visit that page I get
>> two
>> errors:
>>
>> Unterminated string constant (script error)
>>
>> then
>>
>> Unable to connect to the database (message box)
>>
>> and I don't see the links you described.

>
> Dang - mysql server went down. Now up. Instead of music-index.sthml, use
> media-index.shtml please.


Seems to work as it should - I don't get the behaviour you described in your
original post. I'm clicking (or right click open) on the "King David
(Professor)" link in the right bit of the page and both take me to the same
page. Have I misunderstood your directions?

Just a thought - are you running any scripts on the page that might redirect
a visitor to another page? I only ask because i still get the script error
when opening the pages.
--
Brian Cryer
www.cryer.co.uk/brian


  Reply With Quote
Old 06-16-2006, 12:12 PM   #5
JDS
 
Posts: n/a
Default Re: A really strange problem which has me baffled

On Fri, 16 Jun 2006 09:49:35 +0100, Paul wrote:

> I don't know if this problem is with JS, PHP or the the code..


WEll, first of all, are you really using PHP for these pages?

Also, I don't see the problem you are describing. It could be a browser
cache issue, visible only to you. Try

1) a different browser or browsers

2) flushing your browser cache and reloading

--
JDS |
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

  Reply With Quote
Old 06-16-2006, 12:22 PM   #6
Paul
 
Posts: n/a
Default Re: A really strange problem which has me baffled

Hi,

> > I don't know if this problem is with JS, PHP or the the code..

>
> WEll, first of all, are you really using PHP for these pages?


The page calls the php function which generates just about everything
you see.

Thanks for the comments folks - I think I've fixed the problem now

TTFN

Paul
--
"Logic, my dear Zoe, is merely the ability to be wrong with authority" -
Dr Who

  Reply With Quote
Old 06-16-2006, 03:36 PM   #7
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: A really strange problem which has me baffled

Paul wrote:

> Hi,
>
> I don't know if this problem is with JS, PHP or the the code..
>
> http://www.smmp.salford.ac.uk/staff/music-index.shtml


Coupla other recommendations.

1. assign a background-color. I see my ugly default purple.
2. list the people's name by First Last.
(King David, king of what?)
you can still keep the alphabetical list the same:
# David King (Professor)
# Phil Brissenden
# Enrico Caporale
# Marriane Cliff
# Robin Dewhurst
# Dr. Peter Graham
etc.

--
-bts
-Warning: I brake for lawn deer
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump