我可以将 jQuery render() 定位到页面上的特定 id 吗?协助提问
我已经开始使用 Assistly 进行托管客户支持(顺便说一下,如果您还没有检查过它,那真是难以置信:www.assistly.com< /a>)。
它们包含的一项功能是从该网站自动创建和传递联系表格。虽然它们为您提供了要嵌入的代码,但它不太“2011”友好,应该放置在您想要呈现电子邮件图标的任何地方。
要包含的 JavaScript(调用 lightbox 和辅助代码)位于此处。
嵌入的代码如下:
<script>
new ASSISTLY.Widget({
version: 1,
site: 'help.site.com',
port: '80',
type: 'email',
displayMode: 1, //0 for popup, 1 for lightbox
features: {
},
fields: {
ticket: {
// desc: '',
// labels_new: '',
// priority: '',
// subject: ''
},
interaction: {
// email: '',
// name: ''
},
email: {
//subject: '',
//body: ''
},
customer: {
// company: '',
// desc: '',
// first_name: '',
// last_name: '',
// title: ''
}
}
}).render();
</script>
我希望能够在我的页面上创建链接(或图像),并让每个链接(或图像)引用上面的代码来创建辅助联系框。以前有人有过这样的运气吗?
更新
这个问题反映了我自己的问题,但我不相信 CSR 给出的答案是正确的(至少在我测试的代码中)。 render()
函数仍然被调用,因此电子邮件图标存在并且文本覆盖层只是位于顶部。
I have started using Assistly for managed customer support (incredible by the way if you haven't checked on it: www.assistly.com).
One feature they include is automated contact form creation and delivery from there site. While they provide you with code to embed, it is not very '2011' friendly is supposed to be placed wherever you want a rendered email icon.
The JavaScript to include(which calls lightbox and assistly code) is found here.
The code to embed as it stands is:
<script>
new ASSISTLY.Widget({
version: 1,
site: 'help.site.com',
port: '80',
type: 'email',
displayMode: 1, //0 for popup, 1 for lightbox
features: {
},
fields: {
ticket: {
// desc: '',
// labels_new: '',
// priority: '',
// subject: ''
},
interaction: {
// email: '',
// name: ''
},
email: {
//subject: '',
//body: ''
},
customer: {
// company: '',
// desc: '',
// first_name: '',
// last_name: '',
// title: ''
}
}
}).render();
</script>
I would like to be able to create links (or images) across my page and have each one reference the code above to create the Assistly contact box. Has anybody had luck with this before?
update
This question reflects my own but I do not believe the answer given by the CSR is correct (atleast in my tested code. The render()
function is still called so the email icon is present and a text overlay just sits on top.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
注意:我确信还有其他方法。相反,我利用了我们网站上现有的 jquery Colorbox 调用(使用 iFrame),并将目标 URL 指向定义的 Assistly 页面:
http://SITE.assistly.com/customer/widget/emails/new
Note: I am sure there are other methods. I instead utilized existing jquery Colorbox calls we have on our site (using iFrame) and pointed the target URL to a defined Assistly page:
http://SITE.assistly.com/customer/widget/emails/new