paul_cheung

导航

随笔分类 -  Web

bootstrap 3 with IE8 compatibility
摘要:making-twitter-bootstrap-3-compatible-with-internet-explorer-7-and-below 阅读全文

posted @ 2014-06-25 17:41 paul_cheung 阅读(257) 评论(0) 推荐(0)

asp.net mvc return file result
摘要:asp.net mvc返回文件:public ActionResult ExportReflection(string accessToken) { var reflections = GetCmsReflectionList(accessToken); ... 阅读全文

posted @ 2014-04-14 15:17 paul_cheung 阅读(630) 评论(0) 推荐(0)

ajax请求后根据条件进行页面跳转
摘要:$.ajx({ url: "@Url.Action("DetectCorporationCompetencyCreated", "DataBase")", data: { corporationId: rowId }, async:false, success: function (data) { ... 阅读全文

posted @ 2014-04-08 17:58 paul_cheung 阅读(714) 评论(0) 推荐(0)

百度map API
摘要:1.做demo用的http://developer.baidu.com/map/jsdemo.htmdemo代码(外部使用的话需要提供密钥):百度地图的Hello, World2.API DOC:http://developer.baidu.com/map/reference/index.php定位 http://developer.baidu.com/map/jshome.htm定位,街景等API;3.Get key:http://lbsyun.baidu.com/apiconsole/key 阅读全文

posted @ 2013-10-14 11:37 paul_cheung 阅读(294) 评论(0) 推荐(0)

jquery mobile在移动设备上显示太大问题
摘要:head里边加入这个会让客户端元素很大。。。宽度都是device-width,不过比较大! solution:把后边的设置去掉 阅读全文

posted @ 2013-09-27 12:26 paul_cheung 阅读(345) 评论(0) 推荐(0)

Django学习笔记----settings and database_based App demo
摘要:原文参考docs.djangoproject.com, what can manage.py utility do? find here.1.Database Setup编辑settings.py文件,配置数据库,包括provider和数据库(文件路径)名称,然后保存(不确定要不要compile下)。如果为SQLite,使用此操作自动创建数据库文件(给出绝对路径名c:/blah/blah/demoDB.db,engine:'django.db.backends.sqlite3')使用:python manage.py syncdb2.设置Time Zone等默认为美国中部时间C 阅读全文

posted @ 2013-07-23 12:11 paul_cheung 阅读(476) 评论(0) 推荐(0)

Django[pronounced dʒ] installation on windows
摘要:1.Install python,download python windows installerfrom http://www.python.org/download/and do installation(add evironmentvariable); when this operation complete, there is no 'Script' folder under %Python% directory.2.Google search 'ez_setup', find ez_setup.py, copy it and save as ez_s 阅读全文

posted @ 2013-07-21 17:14 paul_cheung 阅读(186) 评论(0) 推荐(0)

Splash Screen(短时间弹出框,信息显示一次)
摘要:原文引自codeproject site, http://www.codeproject.com/Articles/6511/Transparent-Splash-Screen1.A splash page: an initial web site page used to capture the user's attention for a short timeas a promotion or lead-in to the site home page or to tell the user anything. to have the splash page automatical 阅读全文

posted @ 2013-07-15 19:14 paul_cheung 阅读(330) 评论(0) 推荐(0)

The AJAX response: XML, HTML, or JSON?
摘要:shared from: http://www.quirksmode.org/blog/archives/2005/12/the_ajax_respon.html1. 返回XML文档对返回的XML文档进行读取,然后插入到当前的HTML页面中。读取不方便,XSLT此时派上用场,将XML文档转换成另一种XML文档; 优点:可读性强;很多开发者已经习惯XML格式,而不是JSON数据(Saying "I'd like your server side script to return an XML document" won't cause raised eyebr 阅读全文

posted @ 2013-07-15 17:11 paul_cheung 阅读(278) 评论(0) 推荐(0)