PDA

View Full Version : Extended Info Manipulation


leej
23-Sep-2005, 08:21 AM
Hi there,

I have seen the post where people are using javascript to manipulate the pop up windows in Actinc.

Can anyone tell me if there is any code that I can add to Design | Text | Goto 2175 to make the window not resize and have no scrollbars.

Any help is greatly appreciated.

Lee.

Bruce
27-Sep-2005, 10:30 AM
Hi,

The window size is generally taken from the Extended Information tab on the Product Details, towards the bottom you have Width and Hight, if you set these values to a reasonable size, then you should not have the scrolling happen. If you have several products to do the update on, you could take a look at this file, SampleFlatImportFile.csv, which you will find in C:\Program Files\Actinic v7\Sites\Site1\Common on your PC. You can use this file to bring in the required data. Else you can make the inputs directly into the Access Database. Make a backup of the Database before making entries.

Open ActinicCatalog.mdb, and open the 'Product' table, here look for the columns 'nExtendedInfoWidth' and 'nExtendedInfoHight', Input teh required values here, save and exit. Update the site and you will do away with the issue.

Kind regards,

NormanRouxel
27-Sep-2005, 09:52 PM
The popup is controlled by this bit of JavaScript which you can find at the bottom of actiniccore.jsfunction ShowPopUp(sUrl, nWidth, nHeight)
{
window.open(sUrl, 'ActPopup', 'width=' + nWidth + ',height=' + nHeight + ',scrollbars, resizable');
if (!bPageIsLoaded)
{
window.location.reload(true);
}
}If you look up the window.open command in any JavaScript reference site it will tell you what commands can be added to that line. For example removing the fragment + ',scrollbars, resizable' may do what you want.

leej
28-Sep-2005, 12:29 PM
Norman,
Thanks once again for the suggestion. Made the relevant change and it works a treat!!!