johnsmith153
May 14th 2008, 6:49 am
I want to show a php page with heavy php code.
After all php processing is done, it then:
1. Uses <noscript> in the <head> to check if js on or not - if so, no problem
2. If not, will show this on screen:
Javascript not on
Turn on then click here / or, click to view basic version of our site (js not needed)
What I need to do is, if js is not on, then prevent the page from viewing, including all my echo php commands that are in the body tag below.
Originally I had an idea to automatically redirect to a nojavascript.html page - but cant as I have no js to do a location.href.
I need (1) a way to redirect without js OR
(2) A way to prevent showing page if js is not on
Oh, I don't use loads of unnecessary js, but I use DHTML/AJAX a lot so would look strange and not have any useability.
After all php processing is done, it then:
1. Uses <noscript> in the <head> to check if js on or not - if so, no problem
2. If not, will show this on screen:
Javascript not on
Turn on then click here / or, click to view basic version of our site (js not needed)
What I need to do is, if js is not on, then prevent the page from viewing, including all my echo php commands that are in the body tag below.
Originally I had an idea to automatically redirect to a nojavascript.html page - but cant as I have no js to do a location.href.
I need (1) a way to redirect without js OR
(2) A way to prevent showing page if js is not on
Oh, I don't use loads of unnecessary js, but I use DHTML/AJAX a lot so would look strange and not have any useability.