1 <?php
require_once 'common.php'; ?
>
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN
4 "http
://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en" lang
="en">
7 <title
>Ext test page
for csrf
-magic
</title
>
9 $loc = print_javascript('ext', 'http://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js');
13 <h1
>Ext test page
for csrf
-magic
</h1
>
14 <p
>Using
<?php
echo $loc; ?
></p
>
15 <textarea id
="js-output" cols
="80" rows
="4"></textarea
>
16 <script type
="text/javascript">
18 var textarea
= document
.getElementById('js-output');
19 textarea
.value
= "Ext " + Ext
.versions
.extjs +
"\n";
20 var callback
= function (transport
) {
21 textarea
.value +
= transport
.responseText
;
26 params
: { ajax
: 'yes', foo
: 'bar' }