タグ

ブックマーク / faces.jp (3)

  • FACEs: $.appendSWF(embedSWF) と $.dispatch

    どっちかで対応してくれればいいのにと思ってる人、ちょっと書けばOK //こんな感じで $('#View').appendSWF("swf/FlashVideoPlayer.swf",this.file,"100%",flashHeight); //JS側から着火 $(window).resize(function(e){ $('.FlashPlayer').dispatch({ type :'WindowResized', innerWidth :window.innerWidth, innerHeight :window.innerHeight }); }); $.appendSWF $.fn.extend({ appendSWF:function(swf,vars,width,height) { var p = {json:escape($.toJSON(vars)),about:'d

  • FACEs: PsdReader.js

    PSDから画像を取得。Chrome、FireFoxのみ。 FileReader メモ ・Safari とスマホに FileReader がない。 File API も最小限。 ・FireFox は File API に lastModifiedDate がない。 //こんな感じで使う。 var reader = new FileReader(file); var uploader = new FileUploader(); var psd; reader.onload = function(e){ psd = new PsdReader(e.target.result); var base64 = psd.getDataURL().split(',').pop() uploader.upload(base64); } reader.readAsBinaryString(file); P

    wakuworks
    wakuworks 2011/09/04
    PSDから画像を取得。Chrome、FireFoxのみ。
  • FACEs: PHP:Mixiアプリモバイルの RESTful API を RESTful に使う

    Auth を気にすることなくサクサク書けます。 require_once('MixiAppMobileApi.php'); // APIのURLなどの詳細は以下を参照。 // http://developer.mixi.co.jp/appli/appli_mobile/lets_enjoy_making_mixiappmobile/for_partners $personApi = 'http://****************************************'; $persistenceApi = 'http://****************************************'; $mixi = new MixiAppMobileApi; // owner(viewer) データ取得 print_r($mixi->get($personApi)); /

  • 1