![]() |
|
|
|||||||
![]() |
HTML - A really strange problem which has me baffled |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
"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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
"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 |
|
|
|
#5 |
|
Posts: n/a
|
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/ |
|
|
|
#6 |
|
Posts: n/a
|
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 |
|
|
|
#7 |
|
Posts: n/a
|
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 |
|