新加Ajax效果Page flow
월요일, 3월. 2. 2009 –
Category: GAE 开发 –
1 Comments
Tags:
new
feature
pageflow
blog
ihere
google app engine
新加Ajax效果Page flow!
你可以发现每次滚到页底部,会自动ajax load下5篇文章,这样就好像有一个永远滚不完的page flow 一样:-) 是一个很流行的替代翻页的web2.0效果 Google Reader 有用,实现方式是jquery plugin: jquery pageflow+Django
会merge到1.0的release里面:-)
用Django开发真的很快 从开始有这个实现的想法到大概实现只用了1个小时不到的时间,又磨合了一个小时bug fix这个功能就成型了
Tip:
- jquery plugin: jquery pageflow 使用挺简单 几个参数page maxpage传好给他就可以
- 会有个callback function来render 返回的html
- Django的request 方法有is_ajax()这个方法 可以与jquery合用,实现原理是判断某个header 而jquery等ajax 框架会在发请求的时候加这个header..大部分js框架都支持这个...所以应该挺通用吧:-)
- Django的Template适合render ajax request的response html 这样可以不用hardcoding html在view里(只是我自己觉得那样不优雅:-( )当然Gneric view里面
- 也可以支持 我这个pageflow就用的list_detail.object_list 来render的response html的
1 Response to “新加Ajax效果Page flow”
Leave a Reply
Logo
About Me
-
A Computer Geek in Beijing, China. Focus on Web2.0 Technology: Google App Engine, Python, Django, Software Architecture, Agile, JAVA, J2EE, JavaScript, etc.
Coding for fun, Coding with passion :-) It's my life!
Most Popular Posts
- 1. GAE限制续 (2044)
- 2. Eclipse Google Plugin安装指南 (1905)
- 3. iHere Blog 1.0.2 安装配置 (1755)
- 4. iHere Blog 安装 简要配置 (1458)
- 5. 终于在做导入的时候遇到了GAE的瓶颈 (1194)
- 6. 新加Ajax效果Page flow (1058)
- 7. GAE上面的Unittest总结 (1048)
- 8. Web Python IDE Py I/O release! (1021)
- 9. 新东西 呵呵 JS3D (1006)
- 10. 转向了Appengine patch (992)
Tags
-
App Engine
Appengine patch
Django
Google
Google App Engine
Google App Engine
Java
algorithm
api
app
appengine
autodiscovery
blog
cache
chat
cloud computing
cron jobs
datastore
demo
feature
fetion
fridge
gae
geo
google
google app engine
google docs
googlemaps
iHere Blog History
ide
ihere
inforsphere
install
java
jquery
map
mashup
memcache
metaweblog
new
nutch
open source
pageflow
plugin
projects
pyio
python
quota
release
released
rss
sdk
snap
sort
topStory
twitter
weblog api
杂记


8 months, 3 weeks ago IP:125.95....
不错