Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
web:js [2016/02/15 23:21] – created Bernard Condrauweb:js [2024/11/03 13:20] (current) – [Minifiers] Bernard Condrau
Line 1: Line 1:
 ====== Javascript ====== ====== Javascript ======
  
-Modify an elements value in an iFrameRemember, cross site access to iFrame properties is not possible (security).+==== Minifiers ==== 
 +  * [[https://www.toptal.com/developers/javascript-minifier|Online JavaScript Minifier Tool and Compressor]] 
 +  * [[https://jscompress.com/|JSCompress]] 
 +  * [[https://www.giftofspeed.com/javascript-compressor/|JavaScript Compressor]] 
 +  * [[https://www.digitalocean.com/community/tools/minify#top|JavaScript Minify Tool (Digital Ocean)]] 
 +  * [[https://www.minifier.org/|Minify JS / CSS]] 
 + 
 +==== Modify an elements value in an iFrame ==== 
 + 
 +Remember, cross site access to iFrame properties is not possible (security).
   <script>   <script>
   setTimeout(function() {   setTimeout(function() {
Line 11: Line 20:
   </script>   </script>
  
 +==== Pass POST variable through Javascript ====
 +
 +  myvar = document.createElement('input');
 +  myvar.setAttribute('name', 'somename');
 +  myvar.setAttribute('type', 'hidden');
 +  myvar.setAttribute('value', 'somevalue');
 +  form.appendChild(myvar);
 +
 +==== iFrames ====
 +
 +  * [[http://stackoverflow.com/questions/13214419/alternatives-to-iframe-srcdoc|Alternatives to iframe srcdoc]]
 +  * [[http://stackoverflow.com/questions/236073/why-split-the-script-tag-when-writing-it-with-document-write|Why split the <script> tag when writing it with document.write()]]
 +  * [[http://www.w3schools.com/tags/tag_iframe.asp|HTML <iframe> Tag]]
 +  * [[http://caniuse.com/#feat=iframe-srcdoc|srcdoc attribute for iframes]]
 +
 +==== Crypto ====
 +  * [[https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest#converting_a_digest_to_a_hex_string|SubtleCrypto.digest()]]