Announcement

Collapse
No announcement yet.

second extended info page problem

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

    second extended info page problem

    I'm having problems with second extended info pop up page since upgrading from v9.01 to v10.2.

    When the user clicks on the link the pop up page appears, then the web page disappears, leaving a blank page with the word "false" in the top left hand corner. The user then has to click the back button on their browser to restore the web page.

    The problem occurs in all browsers except Google Chrome!

    URL is www.flowergallery.co.uk and the link is on each product page with the text "click here to launch extra information page"

    Any suggestions?
    Brian
    www.flowergallery.co.uk
    Same day flower delivery to UK
    Same day flower delivery to Republic of Ireland
    International Flower Delivery

    Located in Argyll, Scotland, UK

    #2
    The pop up JavaScript has changed between v9 and v10. If you have multisite you can licence a new site and look at the pop up code.

    Comment


      #3
      Thanks Duncan.
      Unfortunately I don't have multisite. Any other suggestions?
      Brian
      www.flowergallery.co.uk
      Same day flower delivery to UK
      Same day flower delivery to Republic of Ireland
      International Flower Delivery

      Located in Argyll, Scotland, UK

      Comment


        #4
        Locate the code in the design library instead then, use the compare facility if the checkboxes highlight it as an altered layout, that will show you the standard code.

        Comment


          #5
          Post the code you are using (including the usual Extended Info link) and we can show you hpow to fix it.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks Norman.

            This is the code I'm using
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageGenerated%22%20%2f%3e">
            <actinic:variable name="ExtendedInfoPageDesign"/>
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22ExtendedInformationType%22%20%2f%3e%20%3d%3d%20%22Opens%20in%20a%20Pop%2dUp%20Window%22" >
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpDisplayedByTextLink%22%20%2f%3e" >
            <br />
            <a href="<actinic:variable name="ExtendedInfoPageEncoded" />" target="ActPopup" onclick="return ShowPopUp('<actinic:variable name="ExtendedInfoPageEncoded" />',<actinic:variable name="ExtInfoWindowWidth" />,<actinic:variable name="ExtInfoWindowHeight" />);">
            <actinic:variable encoding="actinic" name="ExtendedInfoLinkText" />
            </a>
            <br/>
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageDisplayedByButton%22%20%2f%3e" >
            <br />
            <actinic:variable name="ExtendedInfoButton" />
            </actinic:block>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22ShowSecondPopUp%22%20%2f%3e" >

            <actinic:variable name="AltInformationPage" />

            <br />

            <a href="javascript:ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',700,600);">Click here to launch extra information page</a>

            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22ExtendedInformationType%22%20%2f%3e%20%3d%3d%20%22Opens%20in%20the%20Same%20Window%22" >
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpDisplayedByTextLink%22%20%2f%3e" >
            <br />
            <a href="<actinic:variable name="ExtendedInfoPageName" />">
            <actinic:variable encoding="actinic" name="ExtendedInfoLinkText" />
            </a>
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPopUpPageDisplayedByButton%22%20%2f%3e">
            <br />
            <actinic:variable value="Button Image Opens In Same Window" name="ExtendedInfoButton" />
            </actinic:block>
            </actinic:block>
            </actinic:block>
            Thanks Lee. When I try this the standard code doesn't show anything for the second extended info. I had it working in v9 but the upgrade must have removed the code, because when a user clicked on the on the alternative link they were taken to the standard extended info page instead. I inserted the code from the knowledge base into my layout and since then I've had the problem with the page disappearing.
            Brian
            www.flowergallery.co.uk
            Same day flower delivery to UK
            Same day flower delivery to Republic of Ireland
            International Flower Delivery

            Located in Argyll, Scotland, UK

            Comment


              #7
              Managed to sort the problem. For anyone else who may affected by this, the problem seems to be that the info in the Knowledge Base needs to be updated.

              In the Knowledge Base it advises the following code:-

              3. Copy and paste the following code somewhere in the product layout:

              <actinic:block if="%3cactinic%3avariable%20name%3d%22ShowSecondPopUp%22%20%2f%3e" >

              <actinic:variable name="AltInformationPage" />

              <br />

              <a href="javascript:ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',400,400);">Click here to launch extra information page</a>

              </actinic:block>
              However, I checked the Upgrade File created when I upgraded to v10 and found the following code
              ---------------------------------------------------------------------------------

              -

              - Standard Extended Information Links modified on 09th September 2010 03:56:41 PM

              -

              ---------------------------------------------------------------------------------

              Replaced

              >>>Original Code Start

              <a href="javascript:ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',700,500);">

              >>>Original Code End

              With

              <<<New Code Start

              <a href="<actinic:variable name="ExtendedInfoPageEncoded" />" target="ActPopup" onclick="return ShowPopUp('<actinic:variable name="ExtendedInfoPageEncoded" />',<actinic:variable name="ExtInfoWindowWidth" />,<actinic:variable name="ExtInfoWindowHeight" />);">

              <<<New Code End



              'Standard Extended Information Links' has been marked for update
              I amended this code
              <a href="javascript:ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',700,500);">
              to
              <br />
              <a href="<actinic:variable name="ExtendedInfoPageEncoded" />" target="ActPopup" onclick="return ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',700,500);">
              Everything works fine now.
              Brian
              www.flowergallery.co.uk
              Same day flower delivery to UK
              Same day flower delivery to Republic of Ireland
              International Flower Delivery

              Located in Argyll, Scotland, UK

              Comment


                #8
                Originally posted by brian.mc View Post
                I'm having problems with second extended info pop up page since upgrading from v9.01 to v10.2.

                When the user clicks on the link the pop up page appears, then the web page disappears, leaving a blank page with the word "false" in the top left hand corner. The user then has to click the back button on their browser to restore the web page.
                The reason for this is the change in the ActinicCore.js file, the latest code for the fuction ShowPopup, now always returns a value of false, before in V9 (up to V9.0.5) the function did not return a value.

                The function was rewritten for V10 so that it could be used with onclick=, this modification breaks the code when used with addons from versions earlier than V10.

                Malcolm

                SellerDeck Accredited Partner,
                SellerDeck 2016 Extensions, and
                Custom Packages

                Comment


                  #9
                  Your last bit of posted code could do with a minor change. Try:
                  Code:
                  <br />
                  <a href="<actinic:variable name="ProductID"/>_alt_popup.html"
                   target="ActPopup"
                   onclick="return ShowPopUp('<actinic:variable name="ProductID"/>_alt_popup.html',700,500);">
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    There's a final "gotcha" in this tweak. It uses ProductId to create the filenames for the additional extended info pages. You will run into problems if your product ID's contain characters like / as they are invalid in filenames.

                    A better way of doing this would be to replace everywhere:
                    Code:
                    <actinic:variable name="ProductID"/>_alt_popup.html
                    With:
                    Code:
                    alt_<actinic:variable name="EncodedProductAnchor"/>_popup.html
                    As this always contains valid filename characters.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment

                    Working...
                    X