csen

Frequently Asked Questions

DIV type

The Active Area element can also work as a placeholder for your web component. In the runtime, mySCADA will create an empty DIV component in the location and size of your active area. This DIV component can be manipulated in View Scripts.

9.5.1

Select HTML -> Div Element. Fill in the ID of your DIV (active area) component. With this ID you can access your component in the View Scripts using the function

document.getElementById ("ID")

Example

In the following example, we will use the Active Area to display a Google map. First of all, create a view and insert it into the active area. Then set the type to HTML -> Div Element in the Init Value. Type in ‘googlemap’ into the ID type field.

9.5.2

Now all we need to do is to initialize the DIV element with Google maps. This can be done in View Scripts. Open the view script and enter the code for initialization into the Init function field.

9.5.3

There are two interesting parts in this code:

1. This part dynamically loads external JavaScript from the Internet – in our case Google map API:

var script = document.createElement('script'); //create script element
script.src = "http://maps.google.com/maps/api/js?sensor=true&callback=gmap_draw"; //url to the script
document.head.appendChild(script);  //load and append js

2. This piece of code will find our DIV element (e.g. Active area) with googlemap id

document.getElementById("googlemap")

3. And finally the result:

9.5.4

 

Didn't find what you were looking for?

Contact us.
CALL US
  • +420 541 217 220
Or write to us and we will get back to you.
  • Sales department
  • Technical support
  • Service / Complaints
  • Webmaster

AMiT Automation s.r.o.

  • info@amit-automation.cz
  • +420 541 217 220
    +420 549 210 403
    +420 549 210 276

Vídeňská 186/118

619 00 Brno

Czech Republic

Company ID: 276 52 203

TIN: CZ27652203

MODERN ELECTRONICS FOR INDUSTRIAL AUTOMATION AND BUILDING AUTOMATION

Copyright © — AMiT Automation
Login and registration
By registering, you agree to our terms and conditions and the processing of personal data.

We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.

Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.

You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.

No, you don’t have to create an account. But there are a few advantages if you create an account.

  • You never have to enter your billing and shipping address again

  • Find all of your orders, subscriptions and addresses in your account

  • Download invoices of your orders

No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.

From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.

Tab Content

This is a basic text element.
Login and registration
By registering, you agree to our terms and conditions and the processing of personal data.

We often send out our newsletter with news and great offers. We will never disclose your data to third parties and you can unsubscribe from the newsletter at any time.

Unfortunately, we’re unable to offer free samples. As a retailer, we buy all magazines from their publishers at the regular trade price. However, you could contact the magazine’s publisher directly to ask if they can send you a free copy.

You can create a new account at the end of the order process or on the following page. You can view all of your orders and subscriptions in your customer account. You can also change your addresses and your password.

No, you don’t have to create an account. But there are a few advantages if you create an account.

  • You never have to enter your billing and shipping address again

  • Find all of your orders, subscriptions and addresses in your account

  • Download invoices of your orders

No, we don’t have a physical store location at the moment. We accept only orders through our online shop and we’re shipping all orders with the Swiss Post Service. Please visit our shipping section for more details.

From time to time you will find us at design fairs and popup markets in Switzerland. Subscribe to our newsletter and you’ll receive the latest news.

Tab Content

This is a basic text element.
Delete account?
Are you sure you want to delete your account?

This action cannot be undone.
Billing and shipping details

You must be logged in to view this form.

Forgot password

Enter your e-mail address and we will send you a link to reset your password.

Add to list
+ Add new list