Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Alternative to iframes without java?

    Hey everyone!

    I used to use iframes to load external content without resetting the parent page. After reading the disadvantage of iframes, I've been looking for alternatives.

    I Googled and found different solutions, however with a problem: what I found are all scripts that require Java, meaning my design would be rendered useless in a java-disabled browser.

    So is there a safe method I can use, one allowing me to have navigation tabs on a single page that loads content into a div/or any kind of alternative to an iframe (without resetting the page) ?



    Thanks in advance.
    Nat
    Last edited by NatalieHijazi; 07-16-2011 at 04:24 PM. Reason: typo

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    I believe you are referring to JavaScript, not Java.

    Short answer, no. not without a page refresh

  • Users who have thanked DanInMa for this post:

    NatalieHijazi (07-27-2011)

  • #3
    New Coder
    Join Date
    Apr 2010
    Location
    Norfolk, England
    Posts
    63
    Thanks
    1
    Thanked 14 Times in 14 Posts
    Hi NatalieHijazi

    Not really i'm afraid

    for dynamic content, javascript/ajax and frames are really your only choices.

    As an alternative for iframes that are used simply to include one page in lots of different pages (like a menu for example), so only one page has to be updated, can be replaced by SSI (Server-side includes) however these are static after page load, unless of course, altered through some form of javascript.

    May I ask, why you are avoiding re-loading the entire page?
    //Improvement in coding is iterative, each 'failure' is just the next step on your learning curve, some knowledge and logic can get you a long way.//

  • Users who have thanked thesam101 for this post:

    NatalieHijazi (07-27-2011)

  • #4
    New Coder
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by thesam101 View Post
    May I ask, why you are avoiding re-loading the entire page?
    Oh yes you may

    I have a sliding design for my basic website. Just trying to make it a little interesting than the usual static pages. So while the overall concept worked fine I realized there were a few impractical issues that would break the consistency of sliding pages.

    For example, A contact/message form: after filling it in, the page would need to refresh for the confirmation message to load, next the visitor will have to return to the previous page. It's the back-and-forth and breaking of consistency that I would like to avoid.

    I think I am going to settle for an iframe, as it's not really a very important element for the site's overall functionality. If you're curious to have a look at my mess of an attempt to build my own site, you can see it here. Still in it's VERY sketchy phase! So there's not much to see.

  • #5
    New Coder
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DanInMa View Post
    I believe you are referring to JavaScript, not Java.
    And I believe you are right! Though I've read up on the difference between Java and JavaScript, I still make the same mistake over and over.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •