CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets for: x03570227
public String httpResponseAsString(InputStream is, String charset) throws IOException{
        if(is==null){
            return "";
        }
        
        StringBuffer out=new StringBuffer();
        String line ;
        try {
            BufferedReader reader=new BufferedReader(new InputStreamReader(is, charset));
by x03570227   November 28, 2011 @ 12:16am
142 Views
no comments
 
/**
 * JS联动菜单工具,适用于code形式的树型类别,如code:10001000 父code:1000
 * 示例:
 * var selector=new hb.util.Selector({
 *         url:"/path/to/main/seletor/resources",
 *         assistUrl:"/path/to/assist/selector/resources",
 *         changeCallback:function(){
 *             alert("alert while selector change")
 *         },
by x03570227   November 09, 2011 @ 9:11pm
200 Views
no comments
 
jQuery(document).ready(function(){
    jQuery(document).ajaxSend(function(e,XHR,options){
        //loading提示
        hb.util.Message.show({
            msg:hb.util.context.msg.comm_loading,
            isCompleteClear:true,
            bar:[]
        });
        
by x03570227   November 03, 2011 @ 7:21pm
371 Views
no comments
 
/**
 * 系统消息提示工具
 * 示例:
 * 显示消息
 * hb.util.Message.show({
 *         msg:"message text",
 *         msgType:hb.util.Message.ERROR,
 *         bar:[{text:hb.util.Message.BAR_CLOSE,handler:function(){
 *             hb.util.Message.clear();
by x03570227   November 03, 2011 @ 7:17pm
156 Views
no comments
 
do{
    if(boolean result){
        //here is action deal with error
        break;
    }
    if(boolean result){
        //here is action deal with error
        break;
    }
by x03570227   December 30, 2010 @ 6:33pm
Tags: codestyle
208 Views
no comments
 
<!DOCTYPE html>
<html>
 
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=800" />
<title>how to start html5</title>
</head>
 
by x03570227   November 29, 2010 @ 7:17am
Tags:
193 Views
no comments
 
<div id="test" >I do not tell you what hidden</div>
<script> 
alert(test.innerHTML)
</script>
by x03570227   November 29, 2010 @ 6:55am
Tags: html
281 Views
no comments
 
<!DOCTYPE html>
<html>
 
<head>
<meta charset="utf-8">
<title>how to start html5</title>
</head>
 
<body>
by x03570227   November 29, 2010 @ 6:40am
Tags: html5
300 Views
no comments
 
XML
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.ast1949</groupId>
    <artifactId>ast1949-parent</artifactId>
    <name>ast1949-parent</name>
    <packaging>pom</packaging>
    <version>1.0.0-SNAPSHOT</version>
 
by x03570227   November 22, 2010 @ 12:55am
Tags: maven
455 Views
no comments
 
XML
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${java.source.version}</source>
                    <target>${java.target.version}</target>
                    <encoding>${encoding}</encoding>
by x03570227   November 22, 2010 @ 12:38am
Tags: maven
177 Views
no comments
 
brought to you by:
West Wind Techologies