Announcement

Collapse
No announcement yet.

Adding popup window to checkout page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding popup window to checkout page

    I am trying to add a link into the last checkout page where the order details are confirmed. I want the link to load up a popup page as soon as the last order pages is loaded. This popup will just conatain a little bit of info about our new online customer feedback forms.

    I have tried pasting this in the BODY tag of the order04.htm page. What I pasted was:

    "javascript:window.open('survey.htm','survey','HEIGHT=350,WIDTH=200,')"

    Because the onLoad function is already present in this page:

    OnLoad="PreloadImages()

    I pasted it like this so both would work:

    OnLoad="PreloadImages();javascript:window.open('survey.htm','survey','HEIGHT=350,WIDTH=200,')"

    However, nothing happens with this.

    When I remove the "PreloadImages() part and just put:

    OnLoad="javascript:window.open('survey.htm','survey','HEIGHT=350,WIDTH=200,')"

    It seems to work.

    What am I doing wrong to get it to work with the exisiting PreLoadimages function?

    #2
    Could it be a paths issue if the checkout is on a HTTPS server and the rest are on the HTTP server?


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      An example of this is found in the Nifty Corners Cube example 13
      This is used to run more than one 'onload' consecutivley.

      <script type="text/javascript">
      window.onload=function(){
      alert("oload catched: now nifty corners are ready to round!");
      }
      </script>
      <script type="text/javascript" src="niftycube.js"></script>
      <script type="text/javascript">
      NiftyLoad=function(){
      Nifty("div#box","big");
      }
      </script>

      Obviously you will need to adapt this accordingly but the downside is your customer will have one extra click to make and who knows it might be the 'Off' buton
      Your one stop shop for spares.
      Washing Machine Spare Parts

      Comment

      Working...
      X