Giter Club home page Giter Club logo

ajax-qrcode's Introduction

🎮 ahu

(q=_=>( // This is a self-replicating program (the so-called Quine). RUN ME!
  {
    profile: {
      name: /^ahu(?:glajbclajep)?$/,
      birthdate: new Date("1997/3/12"),
      hobbies: ["programming", "gaming", "reading"],
    },
    accounts: {
      twitter: "https://twitter.com/ahuglajbclajep",
      github: "https://github.com/ahuglajbclajep",
      steam: "https://steamcommunity.com/id/ahuglajbclajep",
    },
    posts: {
      notes: "https://scrapbox.io/ahuglajbclajep",
      hobbies: "https://ahuglajbclajep.hatenadiary.jp",
    },
  }
,console.log(`(q=${q})()`)))()

ajax-qrcode's People

Contributors

ahuglajbclajep avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ajax-qrcode's Issues

QRコードが表示されない

どうやら画面遷移こそしていないものの画面を更新しているっぽい
submitとajaxは併用すべきではなかった

今後の方針

とりあえず

  • まずサーブレットでQRコードを生成する
    フロントからGET(ハッシュつき)がきたらQRコードを生成して画像をそのまま返す
  • フロントは生JSでAjax、DOM操作

その後

  • JAX-RSに挑戦してみる
  • jQueryでAjax、DOM操作
  • Bootstrapを使ってみる

fetchAPIではエラー処理ができない?

FetchAPIの概説には

fetch('flowers.jpg').then(function(response) {
  if(response.ok) {
    response.blob().then(function(myBlob) {
      var objectURL = URL.createObjectURL(myBlob);
      myImage.src = objectURL;
    });
  } else {
    console.log('Network response was not ok.');
  }
})
.catch(function(error) {
  console.log('There has been a problem with your fetch operation: ' + error.message);
});

とあるがうまくcatchできなかった

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.