Announcement

Collapse
No announcement yet.

Ext Info Popup Positioning

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

    Ext Info Popup Positioning

    Hi there,

    Does anyone know how you go about setting the positioning of the extended info popup boxes?

    Setting the size is of course nice and easy - but it would be great for me to get them to pop up in the top left hand corner of the screen.

    I'm a novice so any help will need to be easy to follow! ( ie. which templates need editing etc etc )

    Thanks in advance.

    #2
    Hi Graham,

    Please check this link, which may sort this problem.

    Hope this helps you.
    Cheers,
    Suresh Babu G

    Comment


      #3
      Thanks for replying Suresh, but I'm still struggling

      Do I need to edit the actiniccore.js by adding the screenX and screenY references? (If so, how?)

      If it helps, here's a link on our test site to an example of one of the pages with the popups.

      Thanks in advance.

      Comment


        #4
        Figured it out!

        This seems to work with no obvious side-effects!

        1. Open up the actiniccore.js file from the Site1 folder (and back it up just in case!!!)

        2. Change the code at the bottom of the file from...

        function ShowPopUp(sUrl, nWidth, nHeight)
        {
        window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
        }


        to this...


        function ShowPopUp(sUrl, nWidth, nHeight, top, left)
        {
        window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',top=15,left=15,scrollbars, resizable');
        }


        where top=15, left=15 is the distance you want the popup from the top left corner.


        Much better

        Comment

        Working...
        X