cvs: presentations / oscon_tut07.xml /slides/intro php_js1.xml php_js2.xml
| From: | Rasmus Lerdorf | Date: | Sun, 22 Jul 2007 14:07:12 +0000 |
| Subject: | cvs: presentations / oscon_tut07.xml /slides/intro php_js1.xml php_js2.xml | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1415@lists.php.net to get a copy of this message | ||
rasmus Sun Jul 22 14:07:12 2007 UTC
Added files:
/presentations/slides/intro php_js1.xml php_js2.xml
Modified files:
/presentations oscon_tut07.xml
Log:
2 more slides
http://cvs.php.net/viewvc.cgi/presentations/oscon_tut07.xml?r1=1.1&r2=1.2&diff_format=u
Index: presentations/oscon_tut07.xml
diff -u presentations/oscon_tut07.xml:1.1 presentations/oscon_tut07.xml:1.2
--- presentations/oscon_tut07.xml:1.1 Sat Jul 21 14:02:54 2007
+++ presentations/oscon_tut07.xml Sun Jul 22 14:07:12 2007
@@ -24,6 +24,10 @@
<slide>slides/intro/php_yui4.xml</slide>
<slide>slides/intro/php_yui5.xml</slide>
+<slide>slides/intro/php_js1.xml</slide>
+<slide>slides/intro/php_js2.xml</slide>
+<slide>slides/intro/php_js3.xml</slide>
+
<slide>slides/intro/security_title.xml</slide>
<slide>slides/intro/xss_basic.xml</slide>
<slide>slides/intro/xss_yrisk.xml</slide>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_js1.xml?view=markup&rev=1.1
Index: presentations/slides/intro/php_js1.xml
+++ presentations/slides/intro/php_js1.xml
<slide title="Communication">
<break lines="1"/>
<blurb fontsize="7em">
PHP to Javascript on initial page load
</blurb>
<example result="1" fontsize="1.5em"><![CDATA[<script>
var foo = <?php echo json_encode(array('bar1'=>'This',
'bar2'=>'Works'))?>;
document.write(foo.bar1+' '+foo.bar2);
</script>]]></example>
</slide>
http://cvs.php.net/viewvc.cgi/presentations/slides/intro/php_js2.xml?view=markup&rev=1.1
Index: presentations/slides/intro/php_js2.xml
+++ presentations/slides/intro/php_js2.xml
<slide title="Communication">
<break lines="1"/>
<blurb fontsize="7em">
Javascript to PHP (and back)
</blurb>
<example title="Server-side PHP" result="0"
fontsize="1.5em"><![CDATA[<?php
echo strrev($_REQUEST['str']);
?>]]></example>
<example title="Client-side Javascript" result="1"
fontsize="1.5em"><![CDATA[<script type="text/javascript"
src="http://yui.yahooapis.com/2.2.2/build/utilities/utilities.js">
</script>
<script>
var callback = {
success: handleResponse = function(o) {
alert(o.responseText);
}
};
YAHOO.util.Connect.asyncRequest('GET','/rpc.php?str=Rasmus', callback);
</script>]]></example>
</slide>