zopim : add title attribute in












1















I am using Zopim / Zendesk JS Library for Chat widget.



Recently I noticed that the iframe generated from the JS code is not having title attribute in it. Here is the generated iframe sample :



<iframe frameborder="0" src="about:blank" data-test-id="ChatWidgetMobileButton-iframe" style="background-color: transparent; vertical-align: top; position: relative; width: 100%; height: 100%; min-width: 100%; min-height: 100%; max-width: 100%; max-height: 100%; margin: 0px; overflow: hidden; display: block;">


The Code i used for integration is :



window.$zopim || (function (d, s) {
var z = $zopim = function (c) {
z._.push(c)
},
$ = z.s =
d.createElement(s),
e = d.getElementsByTagName(s)[0];
z.set = function (o) {
z.set.
_.push(o)
};
z._ = ;
z.set._ = ;
$.async = !0;
$.setAttribute("charset", "utf-8");
$.src = "//v2.zopim.com/?MY_ID";
z.t = +new Date;
$.type = "text/javascript";
e.parentNode.insertBefore($, e)
})(document, "script");

$zopim(function () {
$zopim.livechat.departments.filter('test');
$zopim.livechat.concierge.setTitle('test');
$zopim.livechat.concierge.setName('test');
$zopim.livechat.concierge.setAvatar('images/tw.png');
$zopim.livechat.window.setTitle("test");
$zopim.livechat.theme.setColor('#59946b');
$zopim.livechat.setGreetings({
'online': 'Live Chat',
'offline': 'Live Chat'
});
$zopim.livechat.bubble.setText('Hi there');
$zopim.livechat.theme.reload();
$zopim.livechat.window.setPosition('br');
$zopim.livechat.button.setPositionMobile('bl');
$zopim.livechat.window.hide();
});


API Reference here :
https://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html



Can anyone please know how to add title attribute in that JS generated iFrame?










share|improve this question























  • Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

    – Jimmy Long
    Jan 19 at 0:43


















1















I am using Zopim / Zendesk JS Library for Chat widget.



Recently I noticed that the iframe generated from the JS code is not having title attribute in it. Here is the generated iframe sample :



<iframe frameborder="0" src="about:blank" data-test-id="ChatWidgetMobileButton-iframe" style="background-color: transparent; vertical-align: top; position: relative; width: 100%; height: 100%; min-width: 100%; min-height: 100%; max-width: 100%; max-height: 100%; margin: 0px; overflow: hidden; display: block;">


The Code i used for integration is :



window.$zopim || (function (d, s) {
var z = $zopim = function (c) {
z._.push(c)
},
$ = z.s =
d.createElement(s),
e = d.getElementsByTagName(s)[0];
z.set = function (o) {
z.set.
_.push(o)
};
z._ = ;
z.set._ = ;
$.async = !0;
$.setAttribute("charset", "utf-8");
$.src = "//v2.zopim.com/?MY_ID";
z.t = +new Date;
$.type = "text/javascript";
e.parentNode.insertBefore($, e)
})(document, "script");

$zopim(function () {
$zopim.livechat.departments.filter('test');
$zopim.livechat.concierge.setTitle('test');
$zopim.livechat.concierge.setName('test');
$zopim.livechat.concierge.setAvatar('images/tw.png');
$zopim.livechat.window.setTitle("test");
$zopim.livechat.theme.setColor('#59946b');
$zopim.livechat.setGreetings({
'online': 'Live Chat',
'offline': 'Live Chat'
});
$zopim.livechat.bubble.setText('Hi there');
$zopim.livechat.theme.reload();
$zopim.livechat.window.setPosition('br');
$zopim.livechat.button.setPositionMobile('bl');
$zopim.livechat.window.hide();
});


API Reference here :
https://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html



Can anyone please know how to add title attribute in that JS generated iFrame?










share|improve this question























  • Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

    – Jimmy Long
    Jan 19 at 0:43
















1












1








1


2






I am using Zopim / Zendesk JS Library for Chat widget.



Recently I noticed that the iframe generated from the JS code is not having title attribute in it. Here is the generated iframe sample :



<iframe frameborder="0" src="about:blank" data-test-id="ChatWidgetMobileButton-iframe" style="background-color: transparent; vertical-align: top; position: relative; width: 100%; height: 100%; min-width: 100%; min-height: 100%; max-width: 100%; max-height: 100%; margin: 0px; overflow: hidden; display: block;">


The Code i used for integration is :



window.$zopim || (function (d, s) {
var z = $zopim = function (c) {
z._.push(c)
},
$ = z.s =
d.createElement(s),
e = d.getElementsByTagName(s)[0];
z.set = function (o) {
z.set.
_.push(o)
};
z._ = ;
z.set._ = ;
$.async = !0;
$.setAttribute("charset", "utf-8");
$.src = "//v2.zopim.com/?MY_ID";
z.t = +new Date;
$.type = "text/javascript";
e.parentNode.insertBefore($, e)
})(document, "script");

$zopim(function () {
$zopim.livechat.departments.filter('test');
$zopim.livechat.concierge.setTitle('test');
$zopim.livechat.concierge.setName('test');
$zopim.livechat.concierge.setAvatar('images/tw.png');
$zopim.livechat.window.setTitle("test");
$zopim.livechat.theme.setColor('#59946b');
$zopim.livechat.setGreetings({
'online': 'Live Chat',
'offline': 'Live Chat'
});
$zopim.livechat.bubble.setText('Hi there');
$zopim.livechat.theme.reload();
$zopim.livechat.window.setPosition('br');
$zopim.livechat.button.setPositionMobile('bl');
$zopim.livechat.window.hide();
});


API Reference here :
https://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html



Can anyone please know how to add title attribute in that JS generated iFrame?










share|improve this question














I am using Zopim / Zendesk JS Library for Chat widget.



Recently I noticed that the iframe generated from the JS code is not having title attribute in it. Here is the generated iframe sample :



<iframe frameborder="0" src="about:blank" data-test-id="ChatWidgetMobileButton-iframe" style="background-color: transparent; vertical-align: top; position: relative; width: 100%; height: 100%; min-width: 100%; min-height: 100%; max-width: 100%; max-height: 100%; margin: 0px; overflow: hidden; display: block;">


The Code i used for integration is :



window.$zopim || (function (d, s) {
var z = $zopim = function (c) {
z._.push(c)
},
$ = z.s =
d.createElement(s),
e = d.getElementsByTagName(s)[0];
z.set = function (o) {
z.set.
_.push(o)
};
z._ = ;
z.set._ = ;
$.async = !0;
$.setAttribute("charset", "utf-8");
$.src = "//v2.zopim.com/?MY_ID";
z.t = +new Date;
$.type = "text/javascript";
e.parentNode.insertBefore($, e)
})(document, "script");

$zopim(function () {
$zopim.livechat.departments.filter('test');
$zopim.livechat.concierge.setTitle('test');
$zopim.livechat.concierge.setName('test');
$zopim.livechat.concierge.setAvatar('images/tw.png');
$zopim.livechat.window.setTitle("test");
$zopim.livechat.theme.setColor('#59946b');
$zopim.livechat.setGreetings({
'online': 'Live Chat',
'offline': 'Live Chat'
});
$zopim.livechat.bubble.setText('Hi there');
$zopim.livechat.theme.reload();
$zopim.livechat.window.setPosition('br');
$zopim.livechat.button.setPositionMobile('bl');
$zopim.livechat.window.hide();
});


API Reference here :
https://api.zopim.com/files/meshim/widget/controllers/LiveChatAPI-js.html



Can anyone please know how to add title attribute in that JS generated iFrame?







javascript jquery html iframe zopim






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 18 at 13:48









Vimal PatelVimal Patel

514317




514317













  • Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

    – Jimmy Long
    Jan 19 at 0:43





















  • Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

    – Jimmy Long
    Jan 19 at 0:43



















Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

– Jimmy Long
Jan 19 at 0:43







Can you set via iframe.contentDocument.title after the element loads? - stackoverflow.com/questions/21119424/…

– Jimmy Long
Jan 19 at 0:43














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54255354%2fzopim-add-title-attribute-in-iframe%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54255354%2fzopim-add-title-attribute-in-iframe%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Callistus III

Plistias Cous

Index Sanctorum