- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘Other’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I’m working on a website that will load external pages onto a div with AJAX. These external pages are for example contact.html and in that page what i have is something like this
<form>
<input type="text"/>
</form>
I don’t have this
<html>
<head>
</head>
<body>
<form>
<input type="text">
</form>
</body>
</html>
is it ok to do this since the index page has all that, does the AJAX-loaded page need it too along with meta tags and page title?
the external pages that will be loaded onto the div are PHP. So it doesn’t mater?
Are you saying that you have a main index file and that you’re using AJAX to .load() other files into it? From there you’re asking if it is okay to do that since the titles and meta tags will be the same on every file that is being loaded into the main index page?
You could possibly write an if statement that tells the meta tags and title to update once those files are loaded in.
Would that be worth the effort?