Tag: jquery

jquery ajax请求缓存问题解决

一条评论

2011年08月10日 at 11:21 上午分类:前端技术 | 开发技术

当通过jquery来做一个ajax请求的时候默认在IE下会使用浏览器的缓存,当前我遇到的问题如下:

请求:***/delete?id=1时不能删除,因为他有子节点,或者有条件不满足,当我把子节点删除,或者调整为可删除时,再请请求浏览器就自动的返回304

解决办法:

1. 链接上加上[......]

Read more

Popularity: 5% [?]

jquery ColModel属性说明

没有评论

2011年03月22日 at 2:39 下午分类:前端技术

Property
Type
Description
Default

align
string
Defines the alignment of the cell in the Body layer, not in header cell. Possible values: lef[......]

Read more

Popularity: 5% [?]

jquery validation和tinymce非空验证问题

没有评论

2010年07月6日 at 2:53 下午分类:前端技术

jquery validation对tinymce的内容都要点击两次才能提交,第一次点击即使用内容还是提示为空。于是用firebug看了下,是因为textaera里的内容是点击以后才付值进去,网上找了下解决办法如下:

tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        plugins : "fullscreen",
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,fullscreen",
        theme_advanced_buttons2 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left",
        theme_advanced_statusbar_location : "bottom",
        theme_advanced_resizing : true,
        elements : "content",
        init_instance_callback : "initialiseInstance"
    });
    function initialiseInstance(editor)
    {
        //Get the textarea
        var container = $('#' + editor.editorId);
 
        //Get the form submit buttons for the textarea
        $(editor.formElement).find("input[type=submit]").click(
        function(event)
        {
            container.val(editor.getContent());
        });
    }

Popularity: 8% [?]

封装自己的jQuery插件.

3 条评论

2010年05月23日 at 2:52 上午分类:前端技术

很早就想把自己写过的一些公共的jquery和我们业务结合的方法封装起来,作为内部的jquery的插件来使用,以前也看过jquery插件写法,不过好久没有再去看了,今天又找来温习下,并且写下实用的一个实例。这也是大家平时用得比较多的。不过插件还有别的写法,个人比较喜欢这样来实现。
写法一:

fde[......]

Read more

Popularity: 10% [?]

(jquery插件)在文本框和文本域光标位置插入文本

没有评论

2008年05月8日 at 9:26 上午分类:前端技术

jquery.caretInsert.js

[coolcode lang="javascript"]
jQuery.extend({
/**
* 清除当前选择内容
*/
unselectContents: function(){
if(window.getSelection)
window.get[......]

Read more

Popularity: 12% [?]