Hi Alex,

 

> regarding the Javascript update:
> | Javascript stuff is now present only on the html pages that
> | really need it. Please, use <& /lib/javascript.mhtml &> to include
> | javascripts in a page. I did not test smartcard_personalization,
> | the rest seems working.
> My idea was that the Javascript is actually included in every page using
> <script src="..."> so that it is only loaded once but available
> everywhere. Is there any reason why we shouldn't do it this way? I
> believe this provides a bit more flexibility ...



There are two reasons why I chose use of /lib/javascript.mhtml.




1. 

I aimed to remove onloading of enumCSP function from the autohandler. 

Being onloaded for every page this function does a lot of useless job in IE. 

So I moved its call to the /lib/javascript.mhtml. Now direct using of 

/lib/javascript.mhtml will load both javascript/vbscript stuff and enumCSP 

function.

 

2. 

I noticed that the same approach was used for the files in the htdocs/binary

directory: files include /lib/javascript.mhtml only if needed.

 

As only several pages really need javascript/vbscript I decided that this 

solution would be OK. And I did not change the code a lot :). So if you 

completely disagree it would be easy to add some other changes 

without rollback.

 

Best regards,

Julia.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to