Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Development help please! (non Vanilla related, sorry!)

blizeHblizeH ✭✭
edited August 2006 in Vanilla 1.0 Help
I figured here would be a good place to ask anyway since most other development forums seem to be blocked at work :(

I'm currently using a Javascript redirect to point a web address to a different location (window.location) but ideally I need it to open the page in a new window and close the old one... I know it sounds lame, but basically we're developing the human resources section of an intranet, and currently their link puts our website into an absolutely hideous frame and we'd like to lose it if we can :-)

Thanks guys.

Comments

  • How about instead of making it open in a new window target it to top instead of a new window.
    target="_top" within a link tag causes the new page to load in the full body of the window, which is useful if you ever want to break out of the frameset you have created and have a frameless page.
    e.g. How to Break out of Frames with Javascript.
  • blizeHblizeH ✭✭
    edited July 2006
    Thanks for that mate, I think I might have to resort to using an actual link though because the Javascript doesn't seem to be working, my code is as follows... (comments removed for ease of pasting)

    <head> <script language="JavaScript" type="text/javascript"> <!-- function breakout_of_frame() { if (top.location != location) { top.location.href = document.location.href ; } } --> </script> </head> <SCRIPT LANGUAGE="JavaScript"> window.location="hr/new/index.asp"; // --> </script>

    Still displaying it in that horrible frame though...
    image
  • It doesn't look like you're calling breakout_of_frame() anywhere in the code you posted.
  • blizeHblizeH ✭✭
    edited July 2006
    Many thanks mate, just done added that line of code and it works an absolute treat now!
  • blizeHblizeH ✭✭
    edited August 2006
    Okay, another problem! My friend from work has come up with this design, but for some reason setting the div to 100% just isn't working correctly,and there's a large space at the bottom which causes the page to scroll. Any suggestions very welcome, ty. (you'll need a highish resolution to see the error) http://www.thebelfryhotel.co.uk/zest/des/template.html
  • hmmm, my edit css extension for firefox is removing images when I try to use it so I can't test things. I've got a feeling that it's the content height being 100% that's the problem. Have you tried setting it to auto?
This discussion has been closed.