Community Forums

ATutor Bug Reports

Quiz Submit Button Problem under IE9


You must be signed-in to post.

AuthorSubject
 
Page: 1
achayka
Subject: Quiz Submit Button Problem under IE9Quote this post in your reply
Before submitting quiz atutor displays the following message: "You are about to submit the test/survey. Please note that changes are not allowed once the test/survey is submitted, do you want to proceed?". IE8, Firefox9,Chrome16.0 work fine. In IE9 quiz is not being submitted. Instead, everytime message doubles itself with additional click. I took a look at this issue and found a small glitch with jquery. Work around is below for /mods/_standard/tests/lib/take_test.js script:

function confirmSubmit(input, confirmMsg){
input_button = jQuery(input);
submit_row = input_button.parent();
//jquery submit button alternation
input_button.attr('id', 'submit_test');
//input_button.removeAttr('onclick');
input_button.attr('onclick',''); //achayka; this is the fix for not working {removeAttr('onclick')} under IE9; If not removed it appends message record whether you're clicking on msg or submit button without submitting the record
//label for the modified submit button
input_label = jQuery('<label>').attr('for', 'submit_test');
input_label.text(confirmMsg);

submit_row.prepend(jQuery('<br>'));
submit_row.prepend(input_label);
}

I have tested it successfully in IE9, Chrome and Firefox.

Thanks,
Andrew smile
Posted: 2012-02-03 00:04:03
chrgrd

Avatar for chrgrd
Subject: Re: Quiz Submit Button Problem under IE9Quote this post in your reply
Thanks Andrew.

I had observed the same problem on one computer on IE 9 and Firefox 9.

On a fresh install on a different server, the problem was not present on IE 9 and FF 9.

I'll try your fix
Posted: 2012-02-03 00:16:33
es24tv

Avatar for es24tv
Subject: Re: Quiz Submit Button Problem under IE9Quote this post in your reply
how to solve? I do not find the way

thanks
Posted: 2012-03-31 05:55:52
es24tv

Avatar for es24tv
Subject: Re: Quiz Submit Button Problem under IE9Quote this post in your reply
In my country, says: "to make an omelet, you have to break some eggs" happy

Sorry! smile It was so obvious he was not watching. Problem solved! tongue

In reply to:
how to solve? I do not find the way

thanks

Posted: 2012-03-31 06:46:33
 
Page: 1

You must be signed-in to post.

Related Articles