庹庹

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年10月19日

摘要: 1.first,you can visit http://www.sanraul.com/2011/01/12/jquery-wrapper-for-iscroll/, and download iscroll.js and iscroll_wrapper.js,add to you project.2.copy flowing code to your test.html.<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/lo 阅读全文
posted @ 2011-10-19 11:16 庹林 阅读(1929) 评论(0) 推荐(0) 编辑

摘要: 1.in android,you can using SQLite save data,as flowing exampe:package tuo.test;import tuo.test.entity.UserProfile;import android.content.ContentValues;import android.content.Context;import android.database.Cursor;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpen 阅读全文
posted @ 2011-10-19 11:16 庹林 阅读(293) 评论(0) 推荐(0) 编辑

2011年9月26日

摘要: 1.I write some code to implement VirtualSoftKeyBoard,have to question,please somebody can help me:this is source code,you can copy it into you demo project to run it.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplica 阅读全文
posted @ 2011-09-26 17:06 庹林 阅读(164) 评论(0) 推荐(0) 编辑

2011年5月27日

摘要: 1.new httphandler:<%@ WebHandler Language="C#" Class="AjaxHandler" %>using System;using System.Web;public class AjaxHandler : IHttpHandler{ public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; System.Collections.Generic.Li 阅读全文
posted @ 2011-05-27 16:38 庹林 阅读(379) 评论(0) 推荐(0) 编辑

2011年5月11日

摘要: 1.extends application,this class must in android pakage; and inAndroidManifest.xml set android:name="GucApplication ";?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.guc.android& 阅读全文
posted @ 2011-05-11 14:57 庹林 阅读(764) 评论(0) 推荐(0) 编辑

2011年4月28日

摘要: 1.reference urlhttp://www.krvarma.com/posts/android/detecting-incoming-and-outgoing-calls-in-android/2.add permission in Manifest.xmlView Code <?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package=&qu 阅读全文
posted @ 2011-04-28 09:46 庹林 阅读(608) 评论(0) 推荐(0) 编辑

2011年4月2日

摘要: 在项目开发中,我用这个方法从数据库读取数据封装实体类,减少体力代码量,犹其是一个类字段特多时。但我不知道这样会有什么问题,请大家指点,共同进步呀。1.EntityHelper:using System;using System.Collections.Generic;using System.Data;using System.Reflection;namespace Tuo.Dao{ public class EntityHelper { public static T GetEntity<T>(DataTable table) where T : new() { T entit 阅读全文
posted @ 2011-04-02 22:01 庹林 阅读(658) 评论(0) 推荐(0) 编辑

2010年12月9日

摘要: step1:download jquery.history.jsstep2:create a test page as following:说明:当页面执行javascript代码后,地址栏能前进和后退。!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml"head title/title style type 阅读全文
posted @ 2010-12-09 16:44 庹林 阅读(8396) 评论(0) 推荐(0) 编辑

2010年11月25日

摘要: $txtZip.bind('change',function(){  $.ajax({type:"POST",    url: "http://www.demo.url",          data:'{"postalCode":"' + $txtZip.val() + '"}',    contentType:"application/json; charset=utf-8",    dataType:"json",      success:function(ret) {alert(ret[0].Place);},   error:function (xhr){alert("error" 阅读全文
posted @ 2010-11-25 11:03 庹林 阅读(291) 评论(0) 推荐(0) 编辑

2010年11月19日

摘要: function demo(e){  var key;  if(window.event){    key=event.keycode;  }  else{  key=e.which;  }}jquery demo:$("id").bind('click'),function(e){var key=(e.which)?e.which:event.keycode;}) 阅读全文
posted @ 2010-11-19 15:32 庹林 阅读(257) 评论(0) 推荐(0) 编辑