Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts

    Question Can't get document.write function to open frameset on all browsers

    Hi, we're trying to integrate an externally hosted shopping cart into our non framed site, and I've set up the document.write script below to create a frameset, to handle this - however it only works in IE5+ (Mac). As much use as a fart in a spacesuit! Any sugestions in getting it to work on IE4+ (Mac/Windows) and even better NN4+ (Mac/Windows).

    I have to confess my virginity with Javascript, I'm a cut/paste man + trial/error slave.
    Any alternative code would be most appreciated.

    An example link code to access the page below would be

    <title>Example Framed Shopping Cart</title>
    <script language="JavaScript">
    var input = location.search.substring(1);
    var ampersand = input.indexOf('&');
    document.write('<frameset rows="131,321*" cols="*" frameborder="NO" border="0" framespacing="0"');
    document.write('<frame name="cartftop" scrolling="NO" noresize src="carttopbarj2.htm">');
    document.write('<frameset cols="130,591*" frameborder="NO" border="0" framespacing="0" rows="*">');
    document.write('<frame name="cartfleft" scrolling="NO" src="cartsidebarj2.htm" noresize>');
    document.write('<frame name="cartfmainwindow" src="' + input.substring (0) + '"scrolling="yes">');

  2. #2
    New to the CF scene
    Join Date
    Jun 2002
    Thanked 0 Times in 0 Posts
    Thanks Dave.

    No the question wasn't dumb at all, but you've probably guessed this isn't my area of speciality.

    Tried it out and works perfectly.

    Simple when your shown how.


    Tekman (Bernie)


Posting Permissions

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