[mapguide-users] Automatic custom javascript loading in AjaxViewer
Bruno Scott
bscott at geomapgis.com
Wed Jan 14 08:25:52 EST 2009
Kenneth Skovhede, GEOGRAF A/S wrote:
>
> This would load all js files for every weblayout application?
> Could this be tweaked to somehow take the WebLayout into consideration,
> so layout1 loads some files, and layout2 loads others?
>
This is a good idea
It would be easy to mofify that code to include specific weblayout js files
Lets take for an example
library://Samples/Sheboygan/Layouts/SheboyganAsp.WebLayout
we could end up with something like this
www/
----Customjs/
--------jsFileCommonForAllLayout.js
--------Samples/
------------Sheboygan/
----------------Layouts/
--------------------jsFileCommonForAllSheboyganLayout.js
--------------------SheboyganAsp/
------------------------jsFileOnlyForSheboyganAsp.js
or
www/
----Customjs/
--------jsfileCommonForAllLayout.js
--------Samples.Sheboygan.Layouts.jsFileCommonForAllSheboyganLayout.js
--------Samples.Sheboygan.Layouts.SheboyganAsp.jsFileOnlyForSheboyganAsp.js
Kenneth Skovhede, GEOGRAF A/S wrote:
>
> The problem with including such functionality, is that there are three
> different languages (php, jsp and aspx),
> and you will need all three versions of the code before it can be
> included in an official release.
>
I understand this and there is no problem writing the patch for all 3
languages
Bruno Scott
--
View this message in context: http://n2.nabble.com/Automatic-custom-javascript-loading-in-AjaxViewer-tp2156302p2156859.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list