Skip to content

Phanix's Blog

Menu
  • About Me / 關於我

Tag: jquery

jQuery display multiple rows of data to a web page table

No Comments
| 學習工作, 工作, 程式, 電腦網路

Backend C# side string Info = ""; if (ds.Tables[1] != null) { for (int i = 0; i < ds.Tables[1].Rows.Count; i++) { if (Info == "") { } else { Info = Info + ","; } Info = Info + String.Format("{{\"id\": \"{0}\", \"type\": \"{1}\", \"Bal\": \"{2}\"}}", ds.Tables[1].Rows[i]["id"].ToString(), ds.Tables[1].Rows[i]["type"].ToString(), ds.Tables[1].Rows[i]["Bal"].ToString() ); } } Response.Write(String.Format("{{\"username\":\"{0}\", \"credit\":\"{1}\", \"balance\":\"{2}\", […]

Read More »

取得網頁中滑鼠油標下的元素 / Get the web element under mouse cursor

No Comments
| 學習工作, 程式

方法1: 透過 mouse events 去取得 mouse cursor position, 然後再呼叫 document.elementFromPoint var x = event.clientX, y = event.clientY, elementMouseIsOver = document.elementFromPoint(x, y); 方法2: 在比較新的瀏覽器可以用 jquery 的 querySelectorAll 取得 document.querySelectorAll( ":hover" );

Read More »

Recent Posts

  • apache2.4 .htaccess 限定ip address 存取特定url
  • Gitlab runner install & setting
  • 從台鐵包袱談公共運輸
  • gitlab CI/CD 設定筆記
  • 跨網域的cookie與資料安全 / Cross domain cookie and data security

Recent Comments

  • AB test to send HTTP POST/PUT with multipart data and headers - Phanix's Blog on Create HTTP PUT request to upload a file (c# & python)
  • Domaine de Bellene & Maison Roche de Bellene Tasting | Phanix's Blog on Nicolas Potel
  • Abruzzo wine Italy on Italian wine tasting
  • Janet on [不推薦食記] A**ki Burger
  • slzzp on [食譜] 油封豬五花 Pork Belly Joint Confit

Archives

Tags

.net (28) 2008 (66) 2009 (91) Bordeaux (44) Bourgogne (35) c# (32) Cabernet Sauvignon (40) California (84) Chardonnay (46) dessert wine (24) food (53) France (52) France 法國 (68) French (28) French wine (22) japanese food (31) murmuring (25) photo-taking (46) photographing (48) Pinot Noir (51) portrait (21) programming (36) red wine (184) Santa Cruz (33) Syrah (22) Taiwan (39) traveling (74) USA (124) white wine (116) wine (173) wine tasting (217) 加州 (63) 勃根地 (38) 台灣 (28) 品酒 (215) 攝影 (93) 旅遊 (60) 氣泡酒 (22) 法國 (27) 波爾多 (37) 甜酒 (26) 白酒 (112) 紅酒 (181) 美國 (99) 義大利 (36)

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Phanix's Blog 2021 . Powered by WordPress