Log in

View Full Version : Anyone know why some visitors to my site can see it while others only see blank page



Tapps
07-04-2007, 02:47 PM
Hi all

Anyone know why some visitors to my site can see it while others only see a blank page?

my site is www.nativeground.co.uk

many thanks

Nic

jc_gmk
07-04-2007, 02:59 PM
Looking at your source code, the entire page is made up from javascript.
If i had javascript disabled in my browser I would see nothing!
Try making it user freindly for all browsers!

Tapps
07-04-2007, 07:53 PM
Many thanks for that...is there any way that I can detect and inform users they need to enable javascript?

thetestingsite
07-04-2007, 07:58 PM
Using <noscript> tags you can do this; however, it is a much better idea to make your site accessible to all browsers (even those with Javascript disabled).

Hope this helps.

Tapps
07-04-2007, 08:44 PM
Many thanks....wish I knew how to use <noscript> tags

Nic

thetestingsite
07-04-2007, 09:32 PM
Very simple example:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv=content-type content="text/html; charset=UTF-8">
<title>Testing</title>
</head>
<body>
<script type="text/javascript">

document.write('This is written using Javascript');

</script>

<noscript>
This is seen if Javascript is not enabled in the browser.
</noscript>

</body>
</html>


Hope this helps.

Tapps
07-05-2007, 08:54 AM
Thanks so much - I'll have a go.

cheers

Nic