• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Embedding map and including form value

Embedding map and including form value 8 months 1 week ago #43596

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
I am using RSForms Directory, and for my 'Details Layout' I need to embed a map using Javascript, but I have a value from the form which I need to call in the Javascript code, I've tried the following but it's not using the value from my form:

The value I'm calling from the form is {MMSI: value}

<script type="text/javascript">
width = '100%'; //the width of the embedded map in pixels or percentage
height = 550; //the height of the embedded map in pixels or percentage
border = 0; //the width of border around the map. Zero means no border
notation = false; //true or false to display or not the vessel icons and options at the left
shownames = true; //true or false to dispaly ship names on the map
latitude = 37.4460; //the latitude of the center of the map in decimal degrees
longitude = 24.9467; //the longitude of the center of the map in decimal degrees
zoom = 9; //the zoom level of the map. Use values between 2 and 17
maptype = 3; //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain
trackvessel = {MMSI: value} //the MMSI of the vessel to track, if within the range of the system
fleet = ''; //the registered email address of a user-defined fleet to display
remember = false; //true or false to remember or not the last position of the map
</script>
<script type="text/javascript" src="www.marinetraffic.com/ais/embed.js"></script>


This loads the map, but without tracking the correct vessel (the MMSI value is essentially the registration of the vessel).

Any ideas how I can get this to work please?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!