WEB
文章平均质量分 64
solaris_navi
参见CV吧。
展开
-
SVG Simple EXAMPLE
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN""http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink">原创 2012-04-16 16:53:16 · 973 阅读 · 0 评论 -
REST - GET Parameter
@Path("/jsoncg") @GET @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN, MediaType.TEXT_HTML}) public String getQueryDataByStatementGet(@QueryParam("sqlstmt") String sqlstmt) { DBHana原创 2012-04-19 22:37:28 · 672 阅读 · 0 评论 -
Ajax Initializer
function xmlhttpPost() { var xhr; var method = "GET"; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xhr = new XMLHttpRequest(); if ("withCredentials" in xhr)原创 2012-04-19 21:44:21 · 410 阅读 · 0 评论 -
JSONP - jQuery, Passing by Cross Site Policy
JSONP - Json with Paddingfunction myfunction(data) { }原创 2012-04-19 20:36:00 · 487 阅读 · 0 评论 -
D3, Bubble Sample
var svggraph;var divgraph;var svgwidth = 960;var svgheight = 960;function init(){ svggraph= d3.select("#graphdiv") .append("svg") .attr("width", svgwidth) .attr("height", svgheight); d原创 2012-04-18 23:47:16 · 1071 阅读 · 0 评论 -
Get 415: Unsupported Media Type when posting something to Restful WS
if you have a restful ws written like this: @Path("/doadd") @POST @Consumes("application/x-www-form-urlencoded") @Produces({MediaType.TEXT_HTML}) public String doadd(@FormParam(原创 2012-05-02 23:42:19 · 2685 阅读 · 0 评论 -
Add new function to a prototype in javascript
// add escape function to StringString.prototype.escape = function() { return this.replace(/&/gm, '&').replace(//gm, '>');};原创 2012-05-02 23:15:03 · 640 阅读 · 0 评论 -
D3 Drag
var dragstore;var dragCircle = d3.behavior.drag().on('dragstart', function() { //d3.event.sourceEvent.stopPropagation(); //console.log('Start Dragging Circle'); dragstore = d3.mouse(thi原创 2012-04-19 00:53:22 · 824 阅读 · 0 评论 -
AJAX Sample
Simple Ajax Examplefunction xmlhttpPost(strURL) { var xmlHttpReq = false; var self = this; // Mozilla/Safari if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest转载 2012-04-17 22:33:16 · 646 阅读 · 0 评论 -
Data Driven Document - D3js
http://christopheviau.com/d3_tutorial/IntroData-Driven Documents, or D3 for short, is a new visualization library to build visualizations in SVG. But in my opinion, it's also the best javasc转载 2012-04-17 19:57:10 · 2440 阅读 · 0 评论 -
Using encodeURIComponent to avoid errors caused by special chars
var url = "/tryrest/analytics/addQuery?pid="+pid+"&qname="+encodeURIComponent(qname)+"&sqlstmt="+encodeURIComponent(qscript)+"&dtep="+encodeURIComponent(qedpt);原创 2012-04-30 21:02:54 · 574 阅读 · 0 评论 -
SVG Reference
SVG ElementsElementDescriptionAttributesCreates a link around SVG elementsxlink:showxlink:actuatexlink:hreftargetProvides control over the glyphs used to render par转载 2012-04-16 15:51:47 · 871 阅读 · 0 评论 -
HTML5 New Elements
http://www.w3schools.com/html5/html5_new_elements.aspNew Semantic/Structural ElementsHTML5 offers new elements for better structure:TagDescriptionDefines an article转载 2012-04-16 15:29:51 · 793 阅读 · 0 评论 -
SVG xlink
http://www.w3.org/TR/SVG/linking.htmlModify the code from : http://blog.csdn.net/solaris_navi/article/details/7467480// draw a circle then add hyperlink on it String point ="" + "<ci原创 2012-04-16 23:40:44 · 908 阅读 · 0 评论 -
Draw SVG Graphics using Java
package tianye.test.rest;import java.util.Random;import javax.ws.rs.GET;import javax.ws.rs.Path;import javax.ws.rs.Produces;import javax.ws.rs.core.MediaType;@Path ("/draw")public class Draw原创 2012-04-16 21:51:28 · 805 阅读 · 0 评论 -
How to detect Safari, Chrome, IE, Firefox and Opera browser?
http://jsfiddle.net/9zxvE/http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browservar isOpera = !!(window.opera && window.opera.version); // Opera 8.0+转载 2012-12-03 20:05:41 · 745 阅读 · 0 评论