Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…
I wonder if anyone can help?
I have designed a web site:
That I am content with (although I would welcome general comments about the site!)
The problem I am having is this. The domain is hosted on one server and has a DNS redirect to another server where the website code is located. All works fine when working normally from the start page as above. Where it goes wrong is if someone chooses a subpage directly (as for example coming from google) such as:
What was happening was that the page was loading without the frame being around it - so you would not know what the web site was (or why you had been directed there).
A friend has supplied some code which should work but for some reason it does load the main frame but ends up on the home page every time. Obviously this is better for me but not much use to the enquirer! Try the link above to see what I mean.
I am using a main page with an inline frame that starts off with the page introtext.html
Hope someone can point me in the right direction!
The site has some cgi scripts that the host server uses to forward replies to forms to me. Not sure if the domain host allows cgi scripts or could support them if they did.
Why use CGI and why use frames?
Why use CGI?
I do not know how to get the result of a form that a user has filled in sent to me - so I use a cgi (or maybe it is a Java Script code which means I have put everyone off the track!) script that was written for me to get this to happen.
Why use Frames?
I like inframes - they leave the outline of the websites there when pressing an option and only changes the information screen that needs to be changed. Probably there are better and slicker ways of doing just that - but i found inline frames worked and stuck with them.
p.s. I myself think it is most unprofessional when you click an option and everything on the website rebuilds itself. And some large company ones seem to work that way too! It is just my opinion though - so that is why!
p.p.s if there is a better way I would be very interested of course.
There certainly is a better way, and that is to build well-constructed, modern, accessible, secure and standards-compliant websites. Here are two good reasons to avoid frames:
 Search engines cannot reliably index the entire page content as seen by a user agent -- you have discovered that one already.
 Accessibility -- frames do not sit well with accessibility requirements.
CGI is definitely not the best way to run a form (and neither is JS, for the most part). Use PHP.
Thanks for the comments and I will be acting on them shortly
This thread is now locked and can not be replied to.