Avatar of pmg67
pmg67
Flag for Sweden asked on

How do i get the parameters from .xml file to .js file?

I am developing a module for Joomla!
I dont want to set the size of the width and height as this (in the .js file)!
I want the administrator to be able to set width and height in the administrator parameters (the .xml file).
I'm stuck, can someone point me in the right direction?
How do i get the parameters from the .xml file to the .js file?

This is the .js file.
var newwindow;
function poptop(url)
{
   newwindow=window.open(url,'name','height=400,width=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
   if (window.focus) {newwindow.focus()}
}

Open in new window

Web DevelopmentScripting LanguagesJavaScript

Avatar of undefined
Last Comment
pmg67

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
-null-

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pmg67

ASKER
Hello
Your help has saved me hundreds of hours of internet surfing.
fblack61