Announcement

Collapse
No announcement yet.

Automatic Popup Resize - Please Help

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

    Automatic Popup Resize - Please Help

    Hi All ,

    First I would like to say what a superb community this is, I have run into 10's of problems since starting to build my own website 7 days ago, all have been solved by using the search, excellent database of problems already!

    BUT,

    I cannot find an answer to this.

    I followed the instructions in Normans post #5 here:
    http://community.actinic.com/showthread.php?t=26591

    I eventually managed to get the images working fine. My question is: I need to make this windows auto resize to the image, I have seen that this can be done on the extended info popup, but how would I go about doing this with the method I am using (Post 5)

    I hope someone can help. I have never used Actinic until one week ago and am AMAZED at how my site is progressing, wow .

    Regards

    Mark

    #2
    Is there any reason why this is the 3rd time you have posted an identical thread. Is this a game of some kind? You post the thread, you get your answers and then you delete it and start the exact process again?

    Cappa?

    Comment


      #3
      Lee - answering a thread you know will get deleted ... thats madness

      Oh - so did I


      Bikster
      SellerDeck Designs and Responsive Themes

      Comment


        #4
        Actually its not

        Hi,

        For some reason when I went to reply to the thread it got wiped out. I have had no answers to my question, or none that I have seen

        I have no idea what is going on

        Anyway, I'm sure that your post is safe is this thread , hopefully. Has anyone any ideas how I go about solving my problem? I am currently 200 miles offshore accessing this forum, so it takes me some time to download a single page, just hoping this one is still here when I refresh...

        Mark

        Comment


          #5
          On a quick look, as I understand it Norman's post #5 you refer to doers not auto resize the pop up - it automates whether there is a filename filled in to a custom variable and if so will add the code for it to pop up - but in a fixed size window.

          I think the AUG has info in it about auto-resizing popups.

          Comment


            #6
            Originally posted by drounding
            On a quick look, as I understand it Norman's post #5 you refer to doers not auto resize the pop up - it automates whether there is a filename filled in to a custom variable and if so will add the code for it to pop up - but in a fixed size window.

            I think the AUG has info in it about auto-resizing popups.
            Hi,

            I can find code relating to the extended window popup in the AUG, but am unsure of the actual code, and where to place it using the method I am using, sorry for my lack of knowledge.

            Apart from this problem everthing has been going fine, just this one has got me stumped. Is there a layout I need to add the code from the AUG too? Can someone help me with the code, and to where I need to place it?

            Thanks

            Mark

            Comment


              #7
              Originally posted by drounding
              On a quick look, as I understand it Norman's post #5 you refer to doers not auto resize the pop up - it automates whether there is a filename filled in to a custom variable and if so will add the code for it to pop up - but in a fixed size window.

              I think the AUG has info in it about auto-resizing popups.
              For your information, this is the code that I have placed in my product layout, with a variable called extraimage created:

              <actinic:blockif="%3cactinic%3avariable%20name%3d%22ExtraImage1%22%20%2f%3e%20%20%21%3d%20%22%22"/><a href="javascript:ShowPopUp('<actinic:variablename="ExtraImage1"encoding="perl"selectable="false"/>',400,500)">ExtraImage1</a>
              </actinic:block>

              I presume that I need to add the code somewhere into where it says 400,500, but am unsure on the coding, I can find information in the AUG on the "Extended Info popup" but it seems like its specific to the extended info and not suitable for me. Anybody?

              Apart from the resizing issue, the code works perfect!

              Comment


                #8
                THe method given in the AUG is not the same as Norman's popup code you have inserted.

                You need to follow the instructions on page 38 of the AUG - this is nothing to do with the code you have pasted above.

                Comment


                  #9
                  Originally posted by drounding
                  THe method given in the AUG is not the same as Norman's popup code you have inserted.

                  You need to follow the instructions on page 38 of the AUG - this is nothing to do with the code you have pasted above.
                  I understand that, I used Normans code to enable me to add the extra images links the product layout. And easily add images using the properties tab of the product, i.e. to automate the process of adding the links to images.

                  What I want to know is, the AUG refers to the extended popup, I am not using this, and just using a a popup as created by the code above, where, and what exactly do I need to add to enable my popups to resize.

                  Sorry for any confusion, just getting my head around all this. Thanks everyone.

                  Comment


                    #10
                    Out of my knowledge - you will need someone to 'blend' the two then.

                    Comment


                      #11
                      Originally posted by drounding
                      Out of my knowledge - you will need someone to 'blend' the two then.
                      I have no knowledge so its out of mine too, ha ha ha. I know what I want, I just don't know how to do it, Actinic you are the devil!

                      I guess that I need to add some script into the product layout where I pasted the popup links? see, they have no html names, they just create a popup from the file. Confused

                      Please, someone help, I'm nearing the end here....

                      Comment


                        #12
                        A quick serach on the internet brought up just what you need:
                        http://www.codelifter.com/main/javas...magepopup.html

                        Although to save the code being on every page I think you could place the script into a it's own js file and just reference it in the outer layout.

                        Comment


                          #13
                          Originally posted by drounding
                          A quick serach on the internet brought up just what you need:
                          http://www.codelifter.com/main/javas...magepopup.html

                          Although to save the code being on every page I think you could place the script into a it's own js file and just reference it in the outer layout.
                          Wow, that looks like it will do the job.

                          Newbie question approaching, where are the JS files kept, and how would you reference is neatly?

                          Thanks, I really appreciate your help. Simply superb.

                          Mark

                          Comment


                            #14
                            One step at a time. Get that script working as is first.
                            Then look at the design of your outer layout, close to the top you will see other js files referenced.

                            Comment


                              #15
                              Originally posted by drounding
                              One step at a time. Get that script working as is first.
                              Then look at the design of your outer layout, close to the top you will see other js files referenced.
                              OK! I have made the JS file, added to outer layout, and placed the references within the product layout success, WELL KIND OF.

                              The first link to the extra image works, but the other 5 do not, weird. It says File not found. I have checked the files, they are all there. They are all in the site1 folder as recommended on here, and are referenced by the variable, which I pick from the product properties. Weird how the first is the only one that works?

                              I did notice something, when hovering over the links in preview mode, I notice that the link that works has 2 back slashes in between folder locations, and the ones that do not work, only have one backslash, what would cause that? Bug?

                              Regards

                              Mark

                              Comment

                              Working...
                              X