Announcement

Collapse
No announcement yet.

Extended Info page - Auto resizing

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

    Extended Info page - Auto resizing

    Is it possible to set an auto resize for the extended info page instead of manually setting the size?

    I thought something as basic as this would be included in actinic. I did want the extended info to reload in the current page to prevent pop-up issues with browsers.

    When I realised that this caused all sorts of additional problems I reverted to extended popup pages. Having to set the size of the page makes it look a mess and unprofessional.

    If there could be an auto-resize method for the page it would solve this issue.
    Leigh Robinson

    Hand forged, hand folded custom swords
    http://www.masterforge.co.uk

    #2
    Hello Leigh

    Are you looking to automatically resize the window based on the size of the image? If so, perhaps this code will help:

    http://community.actinic.com/showthr...575#post129575

    Comment


      #3
      I want to resize it based on the information on the page. This includes the picture and the information.

      I think your solution may only work for the image size?

      It there a solution that resizes to the contents of the page?
      Leigh Robinson

      Hand forged, hand folded custom swords
      http://www.masterforge.co.uk

      Comment


        #4
        Resizing the entire page to exactly hold the contents poses many difficulties.

        Only the client's browser knows what text size has been specified as the default. Just counting the words on the page won't help a lot as the font and any formatting can dramatically alter the space required to display them all. Also some pages may be bigger than the clients window will allow. Some browsers security settings now force popup page to be contained within the parent browser window.

        A "close enough solution" might be to use some Actinic-side PHP to examine the length of the product description and the image size. Then allow enough space for the image and add some extra height and width based on the text length.

        The Advanced guide article on "Displaying only the 1st 10 words of a product description" will give you some pointers.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Sounds like a complex solution to a very simple need.

          This really should be basic stuff for actinic. I only opted for the popup version because opening in the same window causes all sorts of problems.

          Thanks for your advice.

          I might just leave it or make the popup a bit bigger by specifying the dimensions.
          Leigh Robinson

          Hand forged, hand folded custom swords
          http://www.masterforge.co.uk

          Comment


            #6
            This really should be basic stuff for actinic.
            I'm afraid that hoping that something is "basic", doesn't make it so.

            As I explained, it's a complicated solution to a complex problem. And it would have to work on IE6, IE7, Firefox, Opera, Safari, etc.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X