Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Should i use html setup on page that will be loaded with AJAX

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #158687
    Anonymous
    Inactive

    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?

    #158689
    Anonymous
    Inactive

    the external pages that will be loaded onto the div are PHP. So it doesn’t mater?

    #158707
    chrisburton
    Participant

    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.

    #158818
    Anonymous
    Inactive

    Would that be worth the effort?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.