Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: [DHTML] Correct URL in frameset based site

  1. #11
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well, better. But now just link to that url, rather than still not updating the url.
    We've always been able to get around frames, but having to manually find a url and bookmark that, etc., is just a pain.
    Since you've setup direct urls that work, use 'em.
    Plus, it seems like you can make it shorter than what actually shows up there; I'd suggest working on that, too.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. #12
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Hello Daniel,
    Thanks for the comment.
    But what do you mean by 'But now just link to that url, rather than still not updating the url. ... We've always been able to get around frames, but having to manually find a url and bookmark that, etc., is just a pain.?'
    You mean 'put the url in the address bar?'. And what is 'manually'? I don't do that in the script.
    Apologies for my rather slow 'understanding capacities'.

    Arie M.

  3. #13
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well, the links still use a target attribute.

    Instead of doing that, you should use the DIRECT link.

    Remove this:
    <base target="main">

    Then it will change the url in the address bar and *should* still work to load in the frames.

    But, then again, it will also reload everything, sorta defeating the point.

    My inclination with this would be to try using a # url, like #page1, and then using Javascript based on that.

    If I get a bit of time, I may try something like that.

    It will both allow for the direct url to work and no reload.

    The whole point of this script should be to find a way to update the URL in the address bar. That's the big advantage.

    How would this work, including a nonJS fallback:
    <a href="http://www.let.rug.nl/~molendyk/CorrectUrl/page3.html" onClick="main.location=this.href; return '#page3.html';">
    Or
    <a href="http://www.let.rug.nl/~molendyk/CorrectUrl/page3.html" onClick="main.location=this.href; top.location='#page3.html'; return false;">

    I'm not quite sure that will work, but the idea should be clear.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #14
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Daniel,
    Without the <base target="main">, your links load page 3 in the left frame.
    I tried before to do things implying a change of the URL in the address bar, but that invariably caused a reload of 'everything'.

    Thanks anyhow for your comment; I'll experiment with it.

    Arie M.

  5. #15
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well, more correctly, it should be
    <base target="_top">

    I'm thinking that the # method will work because that doesn't always cause a reload. Play with it.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #16
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I'll let you know as soon as I got something.
    Thanks a lot in the meantime.

    Ik heet Arie Molendijk
    My name is Arie Molendijk
    Ich heisse Arie Molendijk
    Je m'appelle Arie Molendijk
    Mihi nomen Arie Molendijk

Bookmarks

Posting Permissions

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