ajax
共 27 篇文章
Google JavaScript 代码规范
Google JavaScript Style Guide Google JavaScript 代码规范 http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
2010-10-23 17:56 · ajax · Google · XML · JavaScript · SVN
22个Web富文本编辑器 Rich-Text Editors
TinyMCE http://tinymce.moxiecode.com/ FCKEditor http://ckeditor.com/ YUI Editor http://developer.yahoo.com/yui/editor/ NicEdit http://nicedit.com/ Kupu http://kupu.oscom.org/ Free Rich Text Editor http://www.freerichtexteditor.com/ WebWiz RichTextEditor http://www.webwizguide.com/webwizrichtextedit…
2010-02-04 12:16 · ajax · fckeditor · tinymce · Silverlight · YUI · Web
配置整合DWR3.0和Spring2.5使用annotation注解
这里使用 DWR3.rc1, Spring2.5 and Spring MVC 在Spring2.5中,使用了许多annotation, 新版本的DWR也支持annotation了, 下面看一下配置过程 1. 先写一个Controller package com.myapp.web.controller; import javax.servlet.http.HttpServletRequest; import org.directwebremoting.annotations.RemoteMethod; import org.directwebremoting.annotations.Rem…
2009-06-16 19:42 · ajax · Java · Apache · Spring · DWR · Servlet
js关闭浏览器 (不弹出提示框)
使用IE7,关闭浏览器时,会弹出一个提示框 解决方法: function closeWindow() { window.opener = null; window.open('', '_self', ''); window.close(); }
2008-08-11 15:11 · ajax · 浏览器
javascript的onbeforeunload事件
javascript的onbeforeunload 事件 事件触发的时候弹出一个有 <确定> 和 <取消> 的对话框,确定则离开页面,取消则继续待在本页。 onbeforeunload Demo http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm http://www.surfchen.org/?p=54 http://msdn.microsoft.com/en-us/library/ms536907(VS.85).aspx
2008-06-19 18:01 · ajax · Microsoft · JavaScript
一个好看的Calendar日历控件
一个好看的Calendar日历控件 http://sotak.co.uk/calendar-icons-blog
2008-03-07 18:28 · ajax · Blog
tablesorter 表格排序控件
table 排序控件,支持多种数据 http://tablesorter.com/docs/ 基于jQuery
2008-03-07 15:35 · ajax · jQuery
HTML and Javascript Library site
http://www.dynamicdrive.com/ http://www.cssplay.co.uk/index http://simplythebest.net/scripts/
2008-03-06 15:23 · ajax · HTML · .net · JavaScript
Tooltip JavaScript Library 控件
http://www.walterzorn.com/tooltip/tooltip_e.htm http://boxover.swazz.org/ http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ http://www.walterzorn.com
2008-03-06 14:47 · ajax · jQuery · JavaScript
Autosuggest (Autocomplete) 控件 (转)
一个Ajax的 Autosuggest (Autocomplete) 控件 http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html 支持json或xml的数据结构
2008-02-23 22:53 · ajax · Ajax · json · 数据结构 · .net · XML
Yahoo! Media Player 播放 MP3
想在web中播放 mp3音乐 ? 使用Yahoo! Media Player吧! 用法很简单 在web工程里放一个 fengxing.mp3 文件 然后添加一个 mymusic.html 内容如下 <script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script> <a href="fengxing.mp3">xuwei - fengxing</a> 启动Tomcat搞定!听歌吧! http://developer.yahoo.com/mediaplayer/
2008-01-09 13:54 · ajax · Yahoo · 音乐 · Tomcat · JavaScript · Web
解决ajax加载的javascript不被执行的问题
用ajax 加载的页面如果带javascript,在IE中不被执行 使用下面的方法解决 xml 代码 <div style="display: none"> <iframe style="display:none" onload="javascript: myJavascriptFunction()"></iframe> </div>
2007-11-23 23:38 · ajax · Ajax · XML · JavaScript · IE
img标签动态请求图片
html的img标签是很常见的,一般的应用是 xml 代码 <img src="/images/abc.jpg"/> 等形式。 其实浏览器在解析html时,遇到img标签后会单独请求src里指定的url。 这样就可以简单的使用img标签来动态加载图片了。 测试程序基于struts,先来写个action java 代码 public ActionForward image(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Excepti…
2007-11-15 14:33 · ajax · HTML · 浏览器 · Struts · XML
限制input只能输入数字(兼容IE和Firefox)
限制input只能输入数字,在网上找了都是针对IE的,自己写了个通用的。 使用了jQuery的一个方法,判断是不是IE js 代码 isNumber = function (e) { if ($.browser.msie) { if ( ((event.keyCode > 47) && (event.keyCode < 58)) || (event.keyCode == 8) ) { return true; } else { return false; } } else { if ( ((e.which > 47) && (e.which < 58)) || (e.which == 8) …
2007-11-05 18:00 · ajax · XML · jQuery · Firefox · JavaScript · IE
解决jQuery1.1 Ajax请求时cache的问题
项目里使用jQuery 1.1.3.1版本,遇到的问题是jQuery缓存ajax请求的数据,在jsp和servlet里设置了参数,但还是被jQuery缓存。 java 代码 response.setHeader("Cache-Control","no-store"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires", 0); html 代码 <meta http-equiv="Cache-Control" content="no-store"/> <meta http-equiv="Pragm…
2007-10-27 15:56 · ajax · HTML · Cache · Ajax · jQuery · JSP
FireFox和IE浏览器的调试工具(插件)
FireFox 插件 Firebug http://www.getfirebug.com/ Web Developer http://chrispederick.com/work/web-developer/ Web Developer https://addons.mozilla.org/en-US/firefox/addon/60 DOM Inspector https://addons.mozilla.org/en-US/firefox/addon/1806 IE插件 Companion.JS http://www.my-debugbar.com/wiki/CompanionJS/Ho…
2007-10-22 14:22 · ajax · 浏览器 · Firebug · Firefox · Web · IE
Ajax 弹出窗口插件
prototype的popup window插件 http://prototype-window.xilinus.com/ jquery的popup window插件 http://dev.iceburg.net/jquery/jqModal/ http://jquery.com/demo/thickbox/ http://www.malsup.com/jquery/block/ http://www.wathon.com/opensource/js/jwindow/jwindow.html
2007-10-09 18:02 · ajax · Ajax · prototype · jQuery · IDEA · OpenSource
XMLHttpRequest 如何处理 redirect (转)
当用XMLHttpRequest (或者其它ajax框架) 请求一个url (例如index.do), 而这个请求被redirect到另一个url (例如home.do) 例如Struts Action中return new ActionForward("home.do", true); 服务器返回 HTTP/1.1 302 Found Date: Thu, 01 Dec 2005 02:00:24 GMT Server: Apache/1.3.33 (Unix) PHP/4.4.0 mod_ssl/2.8.24 OpenSSL/0.9.7e X-Powered-By: PHP/4.4.0 …
2007-09-20 17:42 · ajax · Ajax · PHP · Struts · Firefox · IE
使用prototype的Ajax.Updater更新带javascript的html
prototype的Ajax.Updater可以用来更新一段html,但在更新带javascript的html时,需要注意几个问题 一 . 需要在Ajax.Updater添加参数 evalScripts : true 二 . javascript代码块要使用下面的形式 showHi = function() { alert('Hi'); } 而不能使用下面的形式 function showHi() { alert('Hi'); } 三 . 注意javascript代码块中不能使用 <!-- //--> 标记,否则 IE 会出错,firefox没问题。 下面是个例子, 在a1.jsp中加载a2…
2007-09-07 22:21 · ajax · HTML · Ajax · prototype · JSP · JavaScript