C#

スプラッシュフォーム

public partial class frmSplash : Form {

    public frmSplash() {

        InitializeComponent();

        Application.Idle += new EventHandler(Application_Idel);

    }

    private void Application_Idel(object sender, EventArgs e) {

        Application.Idle -= new EventHandler(Application_Idel);

        this.Close();

        this.Dispose();

    }

}

static void Main() {

    Application.EnableVisualStyles();

    Application.SetCompatibleTextRenderingDefault(false);

    frmSplash sp = new frmSplash();

    sp.Show();

    Application.Run(new frmMain());

}


このカテゴリーの記事を表示する
AJAX/JavaScript

POST送信

$.ajax({
   type: "POST",
   url: "target-url",
   data: "id=" + id + "&data" + data,
   success: function() {
     alert("POST成功");
     ・・・
   },
   error: function() {
     alert("POST失敗");
     ・・・
   }
});

このカテゴリーの記事を表示する