PDA

View Full Version : ????????Ajax?????



extusr
4 Jan 2010, 11:07 PM
??????
ExtJS3.0?????????Ajax?????????????????????

?Ajax????????? - ????????Ajax?????
http://ajax-world.sakura.ne.jp/extjs/howto/ajax/08.html

???????????????URL?Ajax?????????????????
??????????????URL?????? success ???????????????????
???JSON????URL??????????????????????

???????????URL???????????????PHP????????????????????????
?????????failure?????????????????

HTTP?????????????????????json?????????????????????

???????????????????????????????????????
???????????????

mashiki
5 Jan 2010, 5:17 AM
ext-base.js?ext-all.js?debug???????
FireBug?failure?????????????
????????????????

??HTTP???????????????????
??????????????????????php?
??????????????????????

???????
Content-Type: application/javascript
???????????
?????????????.js???????

extusr
7 Jan 2010, 4:08 AM
mashiki ??

??????????????????

??????????????????????????????????
???????????????????????????????????

???HTTP????PHP?????????????????
????????HTTP?????????????????PHP?readfile????????????????????
????????????????????

????????????????????????

mashiki
7 Jan 2010, 5:42 AM
???????
????php???????????????

extusr
9 Jan 2010, 3:22 PM
????????????????

????PHP????????


<?php
// ??: http://www.extjs.com/forum/topics-remote.php
// HTTP ???????????
// header("text/html");

readfile("http://www.extjs.com/forum/topics-remote.php");

exit;
?>

Tommy1969
11 Jan 2010, 4:09 AM
???????????????????????????????????????????

http://www.adamrocker.com/blog/102/javascript_simplest_jsonp.html
http://www.baldanders.info/spiegel/remark/archives/000222.shtml

# JSONP ??????????????????????????;)

extusr
11 Jan 2010, 4:19 PM
Tommy1969 ??
??????????????JSONP??????

????????????????
http://www.extjs.com/forum/topics-remote.php
??????????????????????

????

??????????????????

Tommy1969
11 Jan 2010, 5:15 PM
http://www.extjs.com/forum/topics-remote.php?callback=hoge

JSON, JSONP ?????????????????????;)

extusr
11 Jan 2010, 5:52 PM
Tommy1969 ??

?????????????????????????

???????????????
???????????????????????????????????????????????????

Ext.data.ScriptTagProxy ??????????????????????????????

??????
????????????????????????????