[mapguide-users] Automatic custom javascript loading in AjaxViewer

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Fri Jan 16 03:03:24 EST 2009


I personally prefer the direcetory based system.

Regards, Kenneth Skovhede, GEOGRAF A/S



Bruno Scott skrev:
> 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
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090116/85e73c01/attachment.html


More information about the mapguide-users mailing list