NAVIGATION
This shows you the differences between two versions of the page.
|
english:other-enhancements:foreign-content-of-phpwcms [2012/04/09 11:24] Claus |
english:other-enhancements:foreign-content-of-phpwcms [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| - | ==== Beschreibung ==== | + | ==== Description ==== |
| The notation: | The notation: | ||
| Line 96: | Line 96: | ||
| --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2011/03/01 22:19// | --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2011/03/01 22:19// | ||
| + | ==== More Possibilities ==== | ||
| + | <code> | ||
| + | $phpwcms['output_function_filter'] = array('trim', 'utf8_encode'); | ||
| + | </code> | ||
| + | or | ||
| + | <code> | ||
| + | To UTF-8 phpwcms_output_action=F-utf8_encode--S-EVENTS | ||
| + | From UTF-8 phpwcms_output_action=F-utf8_decode--S-EVENTS | ||
| + | </code> | ||
| + | |||
| + | ==== Load the appropriate CSS from another Server: ==== | ||
| + | By OG: Forum: [[http://forum.phpwcms.org/viewtopic.php?p=135105#p135105|remote CSS in den HEAD-Bereich injizieren]] \\ | ||
| + | |||
| + | |||
| + | <code js> | ||
| + | |||
| + | if(typeof load_remote_css == "undefined" || load_remote_css == true) { | ||
| + | |||
| + | var css_link = document.createElement('link'); | ||
| + | css_link.type = "text/css"; | ||
| + | css_link.rel = "stylesheet"; | ||
| + | css_link.href = "http://www.example.com/my.css"; | ||
| + | document.getElementsByTagName('head')[0].appendChild(css_link); | ||
| + | |||
| + | var load_remote_css = false; | ||
| + | |||
| + | } | ||
| + | </code> | ||
| + | |||
| + | |||
| + | |||
| + | ==== Load the appropriate JS from another Server: ==== | ||
| + | Von OG: Forum: [[http://forum.phpwcms.org/viewtopic.php?f=28&t=22654&start=15#p141854|remote CSS in den HEAD-Bereich injizieren]] \\ | ||
| + | <code js> | ||
| + | if(typeof load_remote_js == "undefined" || load_remote_js == true) { | ||
| + | var js_script = document.createElement('script'); | ||
| + | //js_script.async = 1; | ||
| + | js_script.src = "http://www.example.com/my.js"; | ||
| + | document.getElementsByTagName('head')[0].appendChild(js_script); | ||
| + | var load_remote_js = false; | ||
| + | } | ||
| + | </code> | ||