Magento form field dependence
file : app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php // define field dependencies $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence') ->addFieldMap("is_wysiwyg_enabled", 'wysiwyg_enabled')//param1 is form element id, param2 is element maped ->addFieldMap("is_html_allowed_on_front", 'html_allowed_on_front') ->addFieldMap("frontend_input", 'frontend_input_type') ->addFieldDependence('wysiw......
jQuery idleTimer plugin
jQuery idleTimer plugin June 3rd, 2009 There are a few cases where you want to know if the user is idle. Namely: You want to preload more assets You want to grab their attention to pull them back You want close their banking session after 5 minutes of inactivity.(Jerk!) You want the site to sneak off the screen and see if they notice ;-) Nick Zakas wrote a script for YUI3 to handle these cases. His writeup has a great description of the architecture approach he took to the script. In my jQuery adaptation, I did a few different things: Leveraged......
S.O.L.I.D.类设计原则
本文是由敏捷宣言签署人之一、《 Clean Code(代码整洁之道)》一书的作者Robert C. Martin为他的《Applying Principles and Patterns》这本书搜集整理而来。 单一责任原则(SRP) 只有一个理由去修改一个类。例如,如果一个业务规则的改变会导致这个类的修改,那么,数据库、界面、报表格式或系统任何其它的部分的改变都不该迫使这个类做修改。 http://davidhayden.com/blog/dave/archive/2005/05/29/1066.aspx http://c2.com/cgi/wiki?SingleResponsibilityPrinciple 《Head First 设计模式》 ......
show popup
wogerWarningPopup = { inBody: false, popupNode: '<div id="jqmWarningPopup" class="jqmWindow"><div class="jqmClose"></div><div class="jqmnContent"></div></div>', init: function(){ $('body').append($(this.popupNode)); }, show: function(title, message){ if(!this.inBody){ this.init(); &......
清华差生10年奋斗经历
资深电信营销和战略专家王煜全解读创业战况 包凡一:如何写好留学文书 如何用微博开展平台活动 汤敏:如何培养想象力 导语:清华“差生”10年奋斗经历,只写事业,不写女人。作者从2004年本科毕业写到2012年,近10年的奋斗经历。反正一字一句看完后,各种反省各种彻悟。不要老去抱怨别人“天时地利人和”,做好当下,后来人或许还会羡慕嫉妒恨你。 我的故事里有三个人:我自己、我大学同宿舍的哥们、我第一个公司的直接领导......
和大家分享一下MYSQL索引,写了一上午,还有好多要写,特别是优化这块,以后有时间再写吧。希望能对大家理解索引有帮助。
和大家分享一下MYSQL索引,写了一上午,还有好多要写,特别是优化这块,以后有时间再写吧。希望能对大家理解索引有帮助。 一.什么是索引 索引是用来快速地寻找那些具有特定值的记录,所有MySQL索引都以B-树的形式保存。如果没有索引,执行查询时MySQL必须从第一个记录开始扫描整个表的所有记录,直至找到符合要求的记录。表里面的记录数量越多,这个操作的代价就越高。如果作为搜索条件的列上已经创建了索引,MySQL无需扫描任何记录即可迅速得到目标记录所在的位置......
[转] 14个史上最牛的脑筋急转弯,过来see see吧!
1. 有两个人到海边去玩,突然被一阵浪卷走了。被卷走的那个人叫小明,请问剩下的那个人叫什么? 2. 透明的剑是什么剑? 3. 一只小白猫掉进河里了,一只小黑猫把它救了上来。请问:小白猫上岸后的第一句话是什么? 4. 是太阳叫公鸡起床,还是公鸡叫太阳起床? 5. 五成熟的牛排碰到八成熟的牛排,他们为什么不打招呼? 6. 一个人从四楼掉下来跟从四十楼掉下来有什么不同? 7. 巧克力和西红柿打架~巧克力赢了,为什么? 8. 一只鲨鱼吃下一颗绿豆,......
- Page:16/146 1460 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(760)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)