View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09214Feature requestsSurvey takingpublic2014-09-13 18:30
Reporteruser14106Assigned ToDenisChenu  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Summary09214: add onclick <iframe> event to check answers
Description

I am using iframes with media (eg images) inside answers/subquestions in surveys we conduct on tablets over mobile data networks. The idea is to store media in local devices to keep data transfers minimum and be able to fill answers in low-reception areas.

If I click on an image inside iframe then the answer is not checked. the default way of clicking on anything other (text, <img> etc) will also check the answer which is a really convenient thing.

It would be great if it would also work similarly if I have <iframe> content there.

Additional Information

attaching a sample survey of a situation i mean

TagsNo tags attached.
Attached Files
Bug heat4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2014-09-08 10:48

developer   ~30491

Last edited: 2014-09-08 10:48

Template issue / to specific

user14106

2014-09-11 12:33

  ~30568

Thanks! Can anybody point out where in template this onclick events do their work? I was unable to locate it in templates.

DenisChenu

DenisChenu

2014-09-12 09:40

developer   ~30593

We need to see where is your image : if it's in question text : why click on it check answer ?
You need to put it in answer choice.

user14106

2014-09-12 11:11

  ~30595

I have not referred to image in questions. I actually talking of iframes in answers /subquestions. See included example survey there are iframes in answer options.

DenisChenu

DenisChenu

2014-09-12 12:32

developer   ~30596

Can you provide a link for testing : because i think it's really a specific js issue. And NOT a LS issue.

Maybe something like this in javascript
$(document).on('click','label iframe',function(event){
event.preventDefault();
$(this).closest('label').trigger('click');
});

BUT : iframe are protected by default in all major browser, then you can put a div element with opacity:0 before your iframe and set it position:absolute;height:iframeheight;width:iframewidth

DenisChenu

DenisChenu

2014-09-13 18:30

developer   ~30616

Not a LS issue : HTML issue .

img in label are in label. Not iframe.

Issue History

Date Modified Username Field Change
2014-09-04 08:50 user14106 New Issue
2014-09-04 08:50 user14106 File Added: limesurvey_survey_269886.lss
2014-09-08 10:48 DenisChenu Note Added: 30491
2014-09-08 10:48 DenisChenu Note Edited: 30491
2014-09-11 12:33 user14106 Note Added: 30568
2014-09-12 09:40 DenisChenu Note Added: 30593
2014-09-12 11:11 user14106 Note Added: 30595
2014-09-12 12:32 DenisChenu Note Added: 30596
2014-09-13 18:30 DenisChenu Note Added: 30616
2014-09-13 18:30 DenisChenu Status new => closed
2014-09-13 18:30 DenisChenu Assigned To => DenisChenu
2014-09-13 18:30 DenisChenu Resolution open => fixed