Francois

in order to use the non-compressed JS files you need to define the path 
in the config XML to

<pm_javascript_location>javascript/src</pm_javascript_location>

Which will then use the single files from the "src" dir.

The "compression" of the files was done with a PHP script from the 
utilities folder, now not any more included in the releases, available 
from the SVN

http://svn.pmapper.net/trac/browser/trunk/utils/compress_js

The loading of the JS files is done via PHP script adding an entry in 
the <head> section for every *.js file it finds in the directory defined 
under <pm_javascript_location> (and the subdir "jquery" under it)

The problem for updating the JS files directly is that you need to take 
care applying all changes for any new release in case you want to update 
your application code. A possible way to avoid this is using the 
possibility described here

http://svn.pmapper.net/trac/wiki/FaqCustomizations#CustomizationsofCSSandJavaScript

I always use the jQuery function $.extend() for overwriting existing 
functions in the custom JS files. Or for larger modifications and new 
functionality maybe consider putting everything in a plugin.

Armin

On 29/12/2011 17:14, Francois Prunayre wrote:
> Hi list, I'm new to p.mapper and I was looking for a way to update
> some JS files (at least pm.query.js) and then check my changes.
>
> I did not find a way to run p.mapper in "debug" mode using the plain
> JS instead of the merged one.
> Is there any parameters to use plain JS or any utilities to create the
> merged pm_cjs.js file ?
>
> Thanks a lot for your help.
>
> Cheers.
>
> Francois
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to