ThemeDisplay
Type

Message

Available fromThis can be left blank unless the How To is only available for a specific version of iShare


Overview

This is a neat way of sending a message to users when iShare GIS is first loaded in the browser. This can be useful for maintenance messages such as:

The popup can either contain plain text or text with a link to a URL e.g.

Remember you are editing the main .aspx page for the iShare GIS application front-end and any typos or incorrect syntax etc. will cause the entire application to fail. We would suggest that, if you have a test instance of iShare GIS, that you first make the change here.

Step-by-step guide

If you would like help from Astun in adding this feature then this can be done using call off time.

   <script type="text/javascript">
        Event.observe(window, 'load', function() {
            Astun.JS.IncludeJS('gis', function() {
                window.astun.app = new Astun.JS.MapApp("#ishare-gis", "gis",
					{
					    branding: "<h1><a href=\"https://astuntech.atlassian.net/wiki/x/14AgAQ\">iShare GIS</a></h1>"
					}
				);
            });

	/* Add the window.FlashMessage.info in here */

        });
    </script>
	window.FlashMessage.info('iShare GIS maintenance is scheduled for Fri 16 October. <a href="https://www.yourURL">More info</a>',{
		appear_delay: 5000, 	// Delay before flash message appears
		progress: true, 	// Shows progress bar
		theme: 'default',	//available: default, dark
		timeout: 20000 		// Flash message timeout
	});
   <script type="text/javascript">
        Event.observe(window, 'load', function() {
            Astun.JS.IncludeJS('gis', function() {
                window.astun.app = new Astun.JS.MapApp("#ishare-gis", "gis",
					{
					    branding: "<h1><a href=\"https://astuntech.atlassian.net/wiki/x/14AgAQ\">iShare GIS</a></h1>"
					}
				);
            });
	window.FlashMessage.info('iShare GIS maintenance is scheduled for Fri 16 October. <a href="https://www.yourURL">More info</a>',{
		appear_delay: 5000, 	// Delay before flash message appears
		progress: true, 	// Shows progress bar
		theme: 'default',	//available: default, dark
		timeout: 20000 		// Flash message timeout
	});
        });
    </script>