Refreshing my website!

5 replies
  • WEB DESIGN
  • |
So I was here like 2 weeks ago and I got such wonderful help I thougt I should come here asking for help again!


This was mainly made so I could test my coding etc. Anyway, I need to know how I can make it so that whenever I hit i.e. "Contact Me" the whole page won't refresh but the content changes, not the header, footer nor sidebar. I've seen it in a lot of portfolios and I'd love to have mine functioning like that

If you don't understand what I mean please do, tell me and I'll try to explain it a little better
#refreshing #website
  • Profile picture of the author Daniel Rickfold
    what you are trying to do is use frames
    HTML element - Wikipedia, the free encyclopedia

    I don't really recommend it...
    Signature

    Be The Change You Want To See In The World

    {{ DiscussionBoard.errors[2161693].message }}
  • Profile picture of the author Aaron Sustar
    Yes, you can do exactly that with frames (or an alternative that is a little bit less outdated, "iframes"), but you will have a hard time finding a web developer that would recommend something like that.

    Another way to refresh just a single part of your website is to use AJAX. In this case, you use javascript to get the new "subpage" from your server and then you simply insert it into the right place on your website.

    However, 99% of modern websites simply refresh the whole thing when displaying various subpages, such as "Contact Me" and I'm pretty confident that it should work well enough for you as well.

    Modern browsers cache a lot of data and even if you reload the whole website when loading a subpage, your users won't even notice that - if you have a decent server, of course.

    I really hope that helped you at least a little bit.

    Aaron
    {{ DiscussionBoard.errors[2162386].message }}
  • Profile picture of the author GalactekDesign
    I would say switch it to php instead of frames frames are pretty played out and not to attractive.
    {{ DiscussionBoard.errors[2171999].message }}
  • Profile picture of the author Cstuff
    I agree, frames are old, ugly and are horrible for search engine optimization. Follow Aaron Sustar's tips.
    {{ DiscussionBoard.errors[2174368].message }}
  • Profile picture of the author infibook
    you can use frame thorough html but actually lots of wesite use <div>, <table>, <tr, td>

    div is more useful than frame well in such condition,,,,


    but every code has their own function and they make it for suitable conditions;... try it for your self and make a study about the magically can make with a code.....

    thanks
    {{ DiscussionBoard.errors[2188041].message }}

Trending Topics