View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05078Bug reportsOtherpublic2011-04-04 11:09
Reportermedicnick Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version1.91RC5 
Summary05078: Autocomplete workaround doesn't work
Description

The autocomplete workaround doesn't work in the latest SVN. I discovered that the javascript references in the default template (copied and renamed) were not being loaded for the autocomplete .css and .js files.

With a modification to common_functions.php described below, and saving the autocomplete.css and .js files to the named directories the autocomplete function now works.

Could this be added to the production build and incorporated not as a workaround but as a common function?

Steps To Reproduce

Follow the workaround instructions.

Additional Information

Modify common_functions at around line 4700 to:
[code]
if (getLanguageRTL($surveylanguage))
{
$header.=" dir=\"rtl\" ";
}
$header.= ">\n\t<head>\n"
. $css_header
. "<link href=\"".$rooturl."/scripts/jquery/css/start/jquery-ui.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<link href=\"".$rooturl."/scripts/jquery/css/start/lime-progress.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<link href=\"".$rooturl."/scripts/jquery/css/start/jquery.autocomplete.css\" media=\"all\" type=\"text/css\" rel=\"stylesheet\" />"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.js\"></script>\n"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery-ui.js\"></script>\n"
. "<script type=\"text/javascript\" src=\"".$rooturl."/scripts/jquery/jquery.autocomplete.js\"></script>\n"
. $js_header;

    if ($meta)
        $header .= $meta;

    return $header;
}

[/code]

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)9995
I will donate to the project if issue is resolvedNo
BrowserIE9 and Chrome and FF4
Database type & versionMSSQL 2008R2
Server OS (if known)Win
Webserver software & version (if known)IIS7
PHP Version5.2.5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-04-04 11:09

administrator   ~14644

Sorry, no. You can load any javascript library in your template.

Issue History

Date Modified Username Field Change
2011-04-04 01:35 medicnick New Issue
2011-04-04 11:09 c_schmitz Note Added: 14644
2011-04-04 11:09 c_schmitz Status new => closed
2011-04-04 11:09 c_schmitz Assigned To => c_schmitz
2011-04-04 11:09 c_schmitz Resolution open => no change required