有没有办法让 fcbkcomplete 在 jquery ui 对话框中工作
我看到其他关于此问题的问题说解决方案是设置 autoOpen = true 但我不想将 autoopen 设置为 true。
无论如何,有没有办法让 fcbkcomplete 在没有 autoOpen = true 的情况下在 jquery 对话框上工作。
i see other questions on this that say the solution is to set autoOpen = true but i don't want to have autoopen true.
Is there anyway to get fcbkcomplete working on a jquery dialog without autoOpen = true.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据您的反馈,此处进行了更新。
希望有帮助。
Given your feedback here is an update.
Hope that helps.
哦,什么似乎不起作用?您能解释一下您正在尝试做更多的事情吗?我已经设置了基本的 FCBKcomplete 演示,将其放入对话框中并触发它,它会提出建议 - 您能否举一个不适合您的示例?
这是我使用的代码:
HTML:
和 javascript:
它的演示是 此处
请耐心等待,该示例占用了大量代码。现在有三个例子,两个有效,一个无效。
简单解释一下,jQuery 代码通常在页面加载完成时运行。当所有物品都到位时,就完成了加载。因此,当您使用 ajax 添加项目时,您最初所做的任何操作都不会影响新项目。因此,现在您需要再次执行操作,以便新项目受到影响。
注意: 由于我无法使用 ajax 加载 HTML,因此我通过单击来模拟它。 ..
更新的演示位于此处
ooo what doesn't seem to work? Could you explain what you are trying to do a little more? Just I have setup the basic FCBKcomplete demo up, put it inside a dialog and triggered it and it will suggest things - could you give an example of what isn't working for you?
Here is the code I used:
HTML:
And the javascript:
The demo of it is here
Please bear with me, the example takes up quite a lot of code. There are now three examples, two which work, one which doesn't.
A brief explanation, jQuery code normally runs when the page finished loading. Its finished loading when all the items are there. So when you add items with ajax, anything you originally did, won't affect the new items. So now you need to do things again so the new items are affected.
NOTE: As I can't load the HTML using ajax, I have simulated it with a click...
Updated demo is here