View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04202Bug reportsOtherpublic2010-06-02 11:28
Reportervirginie Assigned Toc_schmitz  
PrioritynormalSeveritycrash 
Status closedResolutionunable to reproduce 
Product Version1.87+ 
Summary04202: Error during updating question with Editor and option "source code" and tag javascript
Description

Hi
I m working in version Version 1.81 (6654)
When I try to write Javas script By LimeSurVey ->Code source option, following the indication of the documentation, in the code source of a question, script or direct reference to a script file on the server,

As Example

On Limesurvey Question update issue I have very frequently the following message from browser (Mozilla/5.0 (compatible; Windows NT 5.1; rv: 1.9.1.7) Gecko/20091221 Firefox/3.5.7 (. NET CLR 3.5.30729))

=> Connection reset
The connection with the server was reset while the page loads.
And not taking into account the updated

if I directly give the JavaScript in the editor, into the description of the question, not by code source option, the change is recorded. and accepted

We have upgraded the version, and we still encounter the same problem with the 1.87+ version

Best Regard

Steps To Reproduce

Every time after introducing tag javascript in code source.

Additional Information

Message retournig after the submition of updating
=> Connection reset
The connection with the server was reset while the page loads.
And not taking into account the updated

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)1.87
I will donate to the project if issue is resolved
Browser
Database type & versionMysql
Server OS (if known)Linux Debian
Webserver software & version (if known)Apache
PHP Version5
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2010-03-15 15:10

updater   ~11347

Please attach a sample survey (exported .csv file) which we can use to reproduce the problem. Please also provide the Javascript you try to add as .txt file

virginie

virginie

2010-03-15 17:18

reporter   ~11355

The files are attached, with our references (to be modified)
Best regard.

Mazi

Mazi

2010-03-15 17:47

updater   ~11360

Well, you have to define the javascript section using
<script type="text/javascript" charset="utf-8"
...
/script>

See attachment.

Mazi

Mazi

2010-03-15 17:47

updater   ~11361

This works fine here so please test.

c_schmitz

c_schmitz

2010-03-15 21:12

administrator   ~11368

This is not a bug but faulty JavaAcript.
Javascript alert() should only be executed if the DOM is fully loaded and parsed.
Use jQuery ready() function to make sure that works.

virginie

virginie

2010-03-16 09:22

reporter   ~11386

Hello,
There seems to be an error on the understanding of bug
The problem is that :if we introduce a javascript tag in the editor of an issue by the option "code source" the update are impossible.

Irrespective of whether to refer to a filejvs or introduce tag avascript directly.

Keep up the closed state?
Best regards.

c_schmitz

c_schmitz

2010-03-16 09:50

administrator   ~11387

If the updates are impossible because of your Javascript then your Javascript must be buggy. Did you deactivate the XSS filter? Did you check the HTML source if your Javascript shows up properly?
Are you using the default template?

virginie

virginie

2010-03-16 11:22

reporter   ~11390

If you insert the same javascript tags in the editor without using the "source code" you do not have a problem.
Simple test
o Insert a javascript statement directly in the editor (Your jvs for exemple)
o Made the update issue
o Test

No pb

o Edit the question.
o Verify option via source code option the presence of tag javascript
o Does not alter
o Close the option
o Update the question => error.

Best regard

virginie

virginie

2010-03-18 11:31

reporter   ~11413

I wish that this bug report stays public, but not the cvs file from my Lime. Is it t possible ?.

Thank in advance.

c_schmitz

c_schmitz

2010-03-19 22:54

administrator   ~11427

Last edited: 2010-03-19 22:54

Seriously I don't understand your two different ways of inserting the Javascript.
There is only one way by switching to the fullscreen mode of the HTML editor and then use the source code button to edit the HTML source code and then inserting the JS.

I can't read from your statement above which ways you are using. Can you be more detailed on how exactly you do what?

virginie

virginie

2010-03-22 09:49

reporter   ~11460

I'm sorry, but I think the latter description is explicit.
I‘m not able to describe better the bug.
I want to use javascript using the method “editor” and “source code” following your documentation and that modification should be accepted by the server.
o Currently you can introduce javascript through the editor only.
o And you can't update a question, whatever the change, that include javascript tag, introduced by users.
Best regard

Issue History

Date Modified Username Field Change
2010-03-15 14:47 virginie New Issue
2010-03-15 15:10 Mazi Note Added: 11347
2010-03-15 15:10 Mazi Assigned To => Mazi
2010-03-15 15:10 Mazi Status new => feedback
2010-03-15 16:54 virginie Tag Attached: survey
2010-03-15 16:55 virginie Tag Detached: survey
2010-03-15 16:56 virginie Tag Attached: xls
2010-03-15 17:01 virginie Tag Detached: xls
2010-03-15 17:10 virginie Issue Monitored: virginie
2010-03-15 17:10 virginie Issue End Monitor: virginie
2010-03-15 17:11 virginie Issue Monitored: virginie
2010-03-15 17:11 virginie Issue End Monitor: virginie
2010-03-15 17:14 virginie File Added: Nikko.csv
2010-03-15 17:15 virginie File Added: Nikko.jsToTxt
2010-03-15 17:18 virginie Note Added: 11355
2010-03-15 17:18 virginie Status feedback => assigned
2010-03-15 17:47 Mazi Note Added: 11360
2010-03-15 17:47 Mazi File Added: js_alert.txt
2010-03-15 17:47 Mazi Note Added: 11361
2010-03-15 17:47 Mazi Status assigned => feedback
2010-03-15 21:12 c_schmitz Note Added: 11368
2010-03-15 21:12 c_schmitz Status feedback => closed
2010-03-15 21:12 c_schmitz Assigned To Mazi => c_schmitz
2010-03-15 21:12 c_schmitz Resolution open => no change required
2010-03-16 09:22 virginie Note Added: 11386
2010-03-16 09:22 virginie Status closed => feedback
2010-03-16 09:22 virginie Resolution no change required => reopened
2010-03-16 09:50 c_schmitz Note Added: 11387
2010-03-16 11:22 virginie Note Added: 11390
2010-03-16 11:22 virginie Status feedback => assigned
2010-03-18 11:31 virginie Note Added: 11413
2010-03-19 22:54 c_schmitz Note Added: 11427
2010-03-19 22:54 c_schmitz Note Edited: 11427
2010-03-22 09:49 virginie Note Added: 11460
2010-06-02 11:28 c_schmitz File Deleted: Nikko.csv
2010-06-02 11:28 c_schmitz File Deleted: Nikko.jsToTxt
2010-06-02 11:28 c_schmitz File Deleted: js_alert.txt
2010-06-02 11:28 c_schmitz Status assigned => closed
2010-06-02 11:28 c_schmitz Resolution reopened => unable to reproduce