Content In Iframe Shows In Chrome But Not In Firefox
Here's the list of answers to the standard questions concerning iframe questions: The parent page and child (the page inside the iframe) are in the same domain, sub-domain and dir
Solution 1:
I found this post which clued me in on how Firefox blocks iframe content if it's unencrypted content on a SSL encrypted website. However, all of my URLs are https including the iframe's `src'. So eventually I narrowed it down to the source of the child page. I used 3 sets of options while initializing the jQuizMe plugin while only one is required. The strict security of Firefox's Mixed Content Blocker considered my sloppy code to be Mixed Active Content (a.k.a. Mixed Script Content). So I put all of my options in one set of brackets and now I have content in the iframe while using Firefox.
JS
Old JS on child page (jqm.html)
$(function($){
var options = {
numOfQuizQues: 12,
disableDelete: true,
showWrongAns: true,
showAns: true,
review: true
};
var quiz = {
multiList: [
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
],
},
options = {
allRandom: true,
title: ' '
};
options.showHTML = true;
$(".quizArea").jQuizMe(quiz, options);
});
Revised JS
$(function($){
var quiz = {
multiList: [
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
{
ques: "QUESTION?",
ans: "C",
ansSel: ["A","B","D","E"]
},
],
},
options = {
allRandom: true,
title: ' ',
numOfQuizQues: 12,
disableDelete: true,
showWrongAns: true,
showAns: true,
review: true,
showHTML: true
};
$(".quizArea").jQuizMe(quiz, options);
});
Post a Comment for "Content In Iframe Shows In Chrome But Not In Firefox"