Announcement

Collapse
No announcement yet.

Pop-up window error

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

    Pop-up window error

    On the page at http://www.natorigin.co.uk/acatalog/info.html about half way down I am using a pop-up window to show our PCI DSS certificate but the pop-up window appears the wrong shape.

    Can't seem to get it right. The code I have on the page is:
    <a href="https://sealserver.trustkeeper.net/compliance/cert.php?code=w6oj3BctHtNV4gUyxZfZ1ViTpDG8Ww&style=normal&size=105x54&language=en" target="popup" onClick="wopen('https://sealserver.trustkeeper.net/compliance/cert.php?code=w6oj3BctHtNV4gUyxZfZ1ViTpDG8Ww&style=normal&size=105x54&language=en', 'popup', 555, 410); return false;"><img src="TrustwareSeal.jpg" width="95" height="49" border="0" alt="Trusted Commerce"/></a></font><br>

    But the pop-up window doesn’t appear to be 555, 410.

    Any help appreciated.

    James
    www.butterflies-healthcare.co.uk
    www.viteyes.co.uk - vitamins for macular degeneration
    www.natorigin.co.uk - natural/organic cosmetics and skin care for sensitive skin & eyes
    www.butterflies-eyecare.co.uk - eye drops, vitamins and other eye care products
    www.prescription-swimming-goggles.co.uk - optical and prescription swimming goggles

    #2
    James,

    I think the issue may be the javascript missing the 'px'
    i.e. try changing
    Code:
    function wopen(url, name, w, h)
    {
    // Fudge factors for window decoration space.
    // In my tests these work well on all platforms & browsers.
    w += 32;
    h += 96;
    var win = window.open(url,
    name, 
    'width=' + w + ', height=' + h + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=no, resizable=no');
    win.resizeTo(w, h);
    win.focus();
    }
    to
    Code:
    function wopen(url, name, w, h)
    {
    // Fudge factors for window decoration space.
    // In my tests these work well on all platforms & browsers.
    w += 32;
    h += 96;
    var win = window.open(url,
    name, 
    'width=' + w + 'px, height=' + h + 'px, ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=no, resizable=no');
    win.resizeTo(w, h);
    win.focus();
    }
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      The actinic function for this is called 'ShowPopUp' not 'popup', that'd be the first thing I try been as it already exists and works. I think the sizings are fine without the px added, actinic never adds them AFAIK.

      Comment


        #4
        Deleting the (redundant as the window is earlier opened to just the required size) line

        win.resizeTo(w, h);


        Seems to fix it.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks guys - they all seem to provide a solution
          www.butterflies-healthcare.co.uk
          www.viteyes.co.uk - vitamins for macular degeneration
          www.natorigin.co.uk - natural/organic cosmetics and skin care for sensitive skin & eyes
          www.butterflies-eyecare.co.uk - eye drops, vitamins and other eye care products
          www.prescription-swimming-goggles.co.uk - optical and prescription swimming goggles

          Comment

          Working...
          X