View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05021Bug reportsSurvey takingpublic2011-05-05 05:18
Reporterduvemyster Assigned Totexens  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
Product Version1.91RC5 
Summary05021: File upload 'Save and exit' or 'x' hangs in Internet Explorer
Description

In Internet Explorer the "Upload your files" window does not close after use of "Save and exit" or "x".

Steps To Reproduce
  1. Set a question type to File Upload
  2. Use as a survey respondent in Internet Explorer
  3. Click on "Upload files"
  4. Now click on "Save and exit" (or on the "x" to close the window then say ok after the "calling saveandexit" alert).
  5. (It takes clicking the browser back-button twice to get off of this page.)
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)9882
I will donate to the project if issue is resolvedNo
BrowserInternet Explorer 8
Database type & versionMySQL 5.1.47
Server OS (if known)Linux
Webserver software & version (if known)Apache 2.2.17
PHP Version5.2.16

Relationships

duplicate of 04965 closedtexens Error upload file type. 

Users monitoring this issue

There are no users monitoring this issue.

Activities

texens

texens

2011-04-12 16:22

reporter   ~14801

duvemyster,

can you please verify if this issue still exists with 1.91 RC6?

Thanks,

fcabralpacheco

fcabralpacheco

2011-05-04 14:52

reporter   ~14916

Last edited: 2011-05-04 14:54

Texens,

Still exists with 1.91 RC6

I had the same problem.
This occurs because "document.getElementById('uploader').contentDocument.defaultView" is not defined in IE8 and "document.getElementById('uploader').contentDocument" is not defined in IE6.

I solved this by replacing:

var pass = document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname, show_title, show_comment, pos);

by:

var pass;
if(document.getElementById('uploader').contentDocument)
{
if(document.getElementById('uploader').contentDocument.defaultView)
{
/Firefox/
pass=document.getElementById('uploader').contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos);
}else{
/IE8/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
}else{
/IE6/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}

texens

texens

2011-05-05 03:44

reporter   ~14925

Issue fixed in r10032.
Thank you fcabralpacheco for the patch :)

Issue History

Date Modified Username Field Change
2011-03-11 10:13 duvemyster New Issue
2011-03-11 12:48 c_schmitz Assigned To => texens
2011-03-11 12:48 c_schmitz Status new => assigned
2011-04-12 16:22 texens Note Added: 14801
2011-04-12 16:22 texens Status assigned => feedback
2011-05-04 14:52 fcabralpacheco Note Added: 14916
2011-05-04 14:54 fcabralpacheco Note Edited: 14916
2011-05-05 03:44 texens Note Added: 14925
2011-05-05 03:44 texens Status feedback => resolved
2011-05-05 03:44 texens Resolution open => fixed
2011-05-05 05:18 c_schmitz Resolution fixed => duplicate
2011-05-05 05:18 c_schmitz Relationship added duplicate of 04965
2011-05-05 05:18 c_schmitz Status resolved => closed