Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Designing > HTML/CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-20-2007, 05:24 PM
Junior Member
 
Join Date: Aug 2007
Posts: 2
Default sometimes a link wont work.. why?

http://www.crahncss.com

this is a site i have been working on for the last two day, on the navigation, using firefox, sometimes the 'Scripts' button will work, and sometimes it wont. The others seem fine.

I would very much appriciate it if someone who knows abit more than me could have a scan over the code and see if they know whats wrong with it.

Thanks in advance!

Colin.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 08-20-2007, 05:39 PM
Junior Member
 
Join Date: Aug 2007
Posts: 2
Default

I solved it by adding:

Code:
onclick="window.location='?module=scripts'"
in addition to the:

Code:
<a href="scripts"></a>
... just as a backup.

still wondering what was wrong though.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 05:20 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 288
Send a message via MSN to BigAlReturns
Default

I don't know if you changed the code since you posted this, but I couldn't see a reason why it would work unreliably. What I would recommend though is always using absolute links in hrefs, not relative - i.e. include the full link address, http://www.etc even if its to another page on your own site. This helps prevent errors, and has the added advantage of giving you incoming links if some thieving no good type scrapes your content!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-08-2008, 01:16 AM
ryanhellyer's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 685
Default

Quote:
Originally Posted by BigAlReturns
.. has the added advantage of giving you incoming links if some thieving no good type scrapes your content!!
That's a very good point. I hadn't thought of that issue.

Content scraping seems to be an increasing problem for blogs in particular and any way to help either direct visitors back to your site or at least direct some page rank back would be helpful in the war on scrapers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 08:03 PM
Junior Member
 
Join Date: Jan 2008
Posts: 17
Default sometimes a link wont work.. why?

Quote:
Originally Posted by cvsouth View Post
I solved it by adding:

Code:
onclick="window.location='?module=scripts'"
in addition to the:

Code:
<a href="scripts"></a>
Can i just ask where exactly in the code this goes?

..as this may solve my problem of some pages having scripts that work fine and others that don't...

much appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 08:39 PM
BigAlReturns's Avatar
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 288
Send a message via MSN to BigAlReturns
Default

Quote:
Originally Posted by simonejones View Post
Can i just ask where exactly in the code this goes?
The onClick is an attribute of the anchor tag, so combined they would look like this:

HTML Code:
<a href="scripts" onclick="window.location='?module=scripts'"></a>
To be honest though I don't see a reason why this would fix anything, although obviously it did for the OP. If this doesn't solve your problem then come back and link us to an example of a script not working and we'll be happy to have a look through the code and hopefully offer a solution.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link Exchange linkmore Search Engine Optimization 5 12-09-2008 01:01 AM
code behind code doesnt work skat Server-Side Scripting 0 01-08-2008 02:47 PM
outgoing link with a advertisement in it javaneeded Scripts and Software 12 01-05-2008 05:50 PM
Link Exchanges Norton Search Engine Optimization 4 12-08-2007 06:44 PM

All times are GMT -5. The time now is 07:33 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.