Announcement

Collapse
No announcement yet.

Pop-Up Problems

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

    Pop-Up Problems

    On Checkout Page 2 there is a link to view terms and conditions. When you click on it a pop-up window opens and the parent window is forced to refresh (as with all other pop-up windows on the site). However, because it is a checkout page you get the following message in Internet Explorer:

    "The page cannot be refreshed without resending the information..."

    You then get prompted to Retry or Cancel. If you click Retry it reloads the page but in front of the pop-up window.

    As I use extended info pop-ups on the site as well it would be really good if I could find a a way to prevent the parent page from reloading when a pop-up window opens.

    I found this article:http://www.joemarini.com/tutorials/t...es/window1.php

    but was unable to get it to work with the Actinic variable. I managed to get it to work by replacing the Actinic variable for the pop-up file name with the actual file name itself but then I was left with a pop-up window that I couldn't resize.

    I don't have much experience of javascript.

    Does anyone have any ideas about this?
    Actinic Web Design | Actinic Templates

    #2
    "The page cannot be refreshed without resending the information..."
    Im not seeing this on any of my sites.

    Comment


      #3
      Are you using Internet Explorer? I tested it on Jo's grail site:

      http://www.grail.pinbrook.net/

      to verify that it wasn't just on my site and I get the same thing. It may be a browser-specific issue. If you don't mind testing it on the above site it would help me.

      Thanks

      Rob
      Actinic Web Design | Actinic Templates

      Comment


        #4
        It doesn't happen to me using IE6 on grail

        Comment


          #5
          Hi Jo,

          Thanks for that. Very odd though. Do you get the page reloading when you open pop-ups?

          Rob
          Actinic Web Design | Actinic Templates

          Comment


            #6
            the page beneath the pop up flashes ie reloads but I don't get the message box

            Comment


              #7
              You have to go past the page where you enter your name, address and so on and then click the terms and conditions link at the bottom of the credit card details page.

              I just tested it on another PC with IE6 and get the same result on your site so maybe there's an IE setting that I have set differently?
              Actinic Web Design | Actinic Templates

              Comment


                #8
                Ok on the CC page I get the error message too

                Comment


                  #9
                  I would say this is a bug. We need to use a function other than 'ShowPopUp' for the pop-up terms and conditions pages in the checkout.

                  For now, you can just replace this code:

                  Code:
                  <p>Click <a href="javascript:ShowPopUp('<actinic:variable name="InfoPopupPageName" />',650,450);">here</a> to view the Terms and Conditions</p>
                  with something like this
                  Code:
                  <p>Click <a href="<actinic:variable name="InfoPopupPageName" />" target="_blank">here</a> to view the Terms and Conditions</p>

                  Comment


                    #10
                    Hi Chris,

                    I was beginning to think along similar lines myself. Is it possible to use this code for the extended info windows and is there a way of controlling the size of the new window when using 'target=blank' instead of 'ShowPopUp'?

                    Rob
                    Actinic Web Design | Actinic Templates

                    Comment


                      #11
                      You can edit the code of the extended info links just by selecting them in the 'Design' tab'. Just edit the code in the 'Standard Extended Information Links' layout.

                      You can't control the size of the window opened by target="blank". You need to find an alternative function for doing pop-ups, then add the function to 'actiniccore.js' and then call the function from the Actinic layouts.

                      Comment


                        #12
                        Ok I have found a way of stopping the parent page from refreshing by adding a new function to 'actinicccore.js' and amending the layout code accordingly as Chris suggested.

                        I noticed that in the Actinic ShowPopUp function there is a line that tells the page to reload. Any ideas why that is there? Here's the current Actinic code:

                        Code:
                        function ShowPopUp(sUrl, nWidth, nHeight)
                          	{  
                        	window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
                        	if (!bPageIsLoaded)
                        		{
                        		window.location.reload(true);
                        		}
                        	}
                        Actinic Web Design | Actinic Templates

                        Comment


                          #13
                          Hi - I have had the same problem that was initially reported in this thread using IE6. I used the following code so that I could still display the T&C's in a popup and not move away from the shopping cart page.

                          Click <a href="javascript:ShowPopUp('<actinic:variable name="WebSiteURL" />/acatalog/infopopup.html',650,450);">here</A> to view the Terms and Conditions
                          Regards
                          David

                          Comment


                            #14
                            I noticed that in the Actinic ShowPopUp function there is a line that tells the page to reload
                            If you open a popup while the page is still loading (e.g. big page - many images), then the page stops loading. Now the customer cannot see the rest of the page.

                            The JS only reloads the page if it was still loading when the popup was clicked.

                            If you've tinkered with the <body ...> line in your overall layout, you may have removed the code that sets the bPageIsLoaded variable (it's set when the PreloadImages routine runs).

                            A quick fix is to put

                            onload="bPageIsLoaded = true;"

                            into your <body> tag.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment

                            Working...
                            X