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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Javascript generating an error, used to work

    I have a pop up window that has terms and conditions for customers. There are two buttons on the bottom (I Agree, I Disagree). This window opens when the credit card number changes in the order form.

    The Agree button closed the pop up and returns to the order page. The Disagree closes the pop up, and returns them to the pricelist window.

    The code was working fine until I made some changes to my site. I added submneus to an existing flyout with Dreaweaver and Fireworks. This was done on a template and then updated to all my pages.

    Now when I test the form I get the following error
    'window,opener.top' is not an object on the Disagree button.
    The Agree button now generates a dialog box asking me if I want to close the window. This did not happen before either

    Any Ideas on what happened???

    Here is the code:

    <td><img src="images/agree.gif" width="100" height="30" onClick="javascript:window.close()"></td>
    <td><img src="images/disagr.gif" width="100" height="30" border="0" onClick="javascript:window.opener.top.location.href='pricelist.htm';
    window.top.close();">

  • #2
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JavaScript generating errors, used to work

    I think something in Dreaweaver is not documented. I went into my page opened up the behavior, reslected my tems page, saved and everything works. Not sure why but glad it is.

    Thanks for taking the time to look at my problem, if you have any ideas on what may have happened I'd be glad to hear them.


  •  

    Posting Permissions

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