Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    22
    Member #
    16878
    Hi,
    I posted a problem a while ago where I wanted to pass a url through to a page with an iframe and got a javascript soloution;

    Link:
    <a href="../new/newboatsframe.html#http://www.searanger.com/">

    Frame:
    <div id="iframe">
    <iframe id="myiframe" height="600" scrolling="auto" src ="#" width="100%"></iframe>
    </div>

    Script:
    <script type="text/javascript">
    var myUrl = window.location.href;
    var myPos = myUrl.indexOf("#");
    var src = myUrl.substring(myPos + 1, myUrl.length);
    document.getElementById( 'myiframe' ).src = src;
    </script>

    My problem now is that while this works fine in most cases it doesn't on the page it links to which also holds the links.

    You can go to http://www.bjmarine.net/new/newboatsframe.html#http://www.ferretti-yachts.com/ to see for yourself. When you click on the links again the url changes but the page doesn't refresh.

    Does anyone have a solution?
    Thanks,
    Denis

    Edit: Site link changed

  2.  

  3. #2
    Junior Member
    Join Date
    May 2008
    Posts
    22
    Member #
    16878
    I've now managed to get it working with

    onClick="window.location.reload(true);

    but only in IE. Can anyone help with FF?

    Denis

  4. #3
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    It should be

    onclick="window.location.reload();"

  5. #4
    Junior Member
    Join Date
    May 2008
    Posts
    22
    Member #
    16878
    Thats works, thanks!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:42 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com