Tag: SQL服务器

从数据库回调jQuery小部件信息并在适当的位置显示小部件

我终于能够在这个问题的帮助下成功保存我的所有小部件信息。 现在,我完全迷失了如何做到这一点,因为这是我第一次不得不这样做。 我需要回调我的数据库信息以正确显示我的小部件。 这是我的仪表板jQuery。 $(function () { $(‘.dragbox’) .each(function () { $(this).hover(function () { $(this).find(‘h2’).addClass(‘collapse’); }, function () { $(this).find(‘h2’).removeClass(‘collapse’); }) .find(‘h2’).hover(function () { $(this).find(‘.configure’).css(‘visibility’, ‘visible’); }, function () { $(this).find(‘.configure’).css(‘visibility’, ‘hidden’); }) .click(function () { $(this).siblings(‘.dragbox-content’).toggle(); }) .end() .find(‘.configure’).css(‘visibility’, ‘hidden’); }); $(‘.column’).sortable({ connectWith: ‘.column’, handle: ‘h2’, cursor: ‘move’, placeholder: ‘placeholder’, forcePlaceholderSize: true, opacity: 0.4, […]

通过jquery可折叠动态BOM?

我有一个php页面从sql2000存储过程中提取数据,表示产品的BOM(物料清单)。 现在它显示为一张平台,效果很好。 然而,经过3天的谷歌搜索/黑客攻击,我不能为我的生活弄清楚如何将数据转换为缩进的可折叠/可扩展表或UL。 表如下: ID [< – 独特] BOM_Level Parent_Item Component_Item Component_qty BOM_Level就是BOM的级别(0-12之间的数字)。 我假设因为提供它会很简单,因为bom_level确实代表了每个部分的缩进程度,但唉,它并不简单…. 一般结构如下,但部件和级别的数量将因产品而异: 0 Top Level 1 – Assembly 1 2 – part 1 of Assembly 1 2 – part 2 of Assembly 1 2 – part 3 of Assembly 1 2 – part 4 of Assembly 1 1 – Assembly 2 2 […]