Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: html)

  • DenisChenu
  • DenisChenu's Avatar
24 Feb 2011 10:42 - 24 Feb 2011 10:43
Replied by DenisChenu on topic Jquery-lightbox
Salut,

Surtout pas dans comon.php, c'est uniquement dans le template.
METHODO:
* Ajouter le fichier jquery.lightbox.js dans le template (envoi de fichier)

* Ajouter dans le fichier start.pstpl
Code:
<script type="text/javascript" src="{TEMPLATEURL}jquery.lightbox-0.4.js"></script>
au dessus de la ligne équivalent mais avec template.js

* Ajouter dans le fichier template.js
Code:
$(document).ready(function() {
$('a.lightbox').lightBox();
});

Et bien sur, mettre pour les images:
Code:
<a href="lien-vers-images.jpg" class="lightbox"><img src="petite-image.jpg"></a>
en mode d'édition de la source

J'ai souvent utilisé jquery-lightbox opu media box dans des sites web, mais peu sous LS.
  • badronald
  • badronald's Avatar
23 Feb 2011 20:26 - 23 Feb 2011 23:39
Replied by badronald on topic Using pictures in ranking question
I did solve this.
I created an array by column question.

For the Answers going down the left side I used div tags, see below, to insert the images and create the mouse hover effect.

For an example of the questions I set up I made this for you

www.nhs2survey.org/limesurvey2/index.php...63&newtest=Y&lang=en
Code:
<div style="display: none; position: absolute; border-style: solid; background-color: white; padding: 5px;" id="uniquename3">
 
<a href="javascript:ShowContent('uniquename3')" onmouseout="HideContent('uniquename3'); return true;" onmouseover="ShowContent('uniquename3'); return true;">Apri<img alt="Apri" src="http://www.nhs3.org/oc/images/apri.jpg" />
</a>
</div> 
 
<a href="javascript:ShowContent('uniquename3')" onmouseout="HideContent('uniquename3'); return true;" onmouseover="ShowContent('uniquename3'); return true;"> [Apri] 
</a> 
 
<div style="display: none; position: absolute; border-style: solid; background-color: white; padding: 5px;" id="uniquename3"></div>
  • joop
  • joop's Avatar
16 Feb 2011 11:34
Hi Mazi,

I switched from driver 'mssql_n' to 'odbc_mssql'. Bottomline is that it still not solved (all) my problems or that it introduced new errors.

Installation of an odbc driver on Linux is quite an experience. I use Freetds and the php-odbc module. I installed a system DSN by configure freetds.conf, odbc.ini and odbcinst.ini.
To get Limesurvey recognize the system DSN on Linux, you need to adapt common.php as is written somewhere else on this forum. (line 160 should be
Code:
case "odbc_mssql": $dbhost="$databaselocation";
)

Directly after login in limesurvey admin section, you get a blank page. After completely debugging limesurvey till the specific query that gave problems, I noticed in the freetds logging that the query/action somehow was canceled. Some searching on the Internet learned me that I needed to upgrade my freetds driver from version 0.64 to 0.82. After this I was able to login and do the same stuff as with the mssql_n driver.

One point seems to be solved now; mandatory questions are validated again after survey activation.

While importing the specific survey I still get the same error that my tmp folder has not enough permissions. I think I do a complete debugging of limesurvey for this problem too.

When copying the specific survey I got a different error now:
Code:
Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 11209: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xC4 0x3F 0x64 0x65 in /var/www/html/limesurvey/admin/importsurvey.php  on line 1232
 
Warning: simplexml_load_string() [function.simplexml-load-string]: <answer><![CDATA[Ni�?de]]></answer> in /var/www/html/limesurvey/admin/importsurvey.php on line 1232
 
Warning: simplexml_load_string() [function.simplexml-load-string]: ^ in /var/www/html/limesurvey/admin/importsurvey.php on line 1232
 
Notice: Trying to get property of non-object in /var/www/html/limesurvey/admin/importsurvey.php on line 1235
This is not a valid LimeSurvey survey structure XML file.
This seems to be a charset problem now with the current driver.

Any advise?
  • joop
  • joop's Avatar
09 Feb 2011 18:03
Hi All,

I've got the following message when importing a survey:

An error occurred uploading your file. This may be caused by incorrect permissions in your /var/www/html/limesurvey/tmp folder.

I normally can import surveys that which I create in my current limesurvey version. Problems only show up when I try to export and import a survey that I earlier created in Limesurvey 1.87.

My /tmp /upload and /templates and subfolders have all 777 permissions.
The strange part is that I can import this survey in the Demo installation of limesurvey.org.

Is something fixed in the version of the demo installation or is something wrong with my installation? (version 1.90 build 9642)

Part of the message is hidden for the guests. Please log in or register to see it.


any help would be appreciated,

Joop
  • holch
  • holch's Avatar
05 Dec 2010 19:59
Replied by holch on topic Multiple question types in array modifiy
Hi TPartner!

Thanks for letting me know. I am little "out" of the whole XHTML and CSS stuff. I know that the trailing slash is closing the element, but I was not aware that DIVs could be used this way. I thought this would be limited to some elements like IMG, HR, etc.
  • tpartner
  • tpartner's Avatar
05 Dec 2010 18:00
Replied by tpartner on topic Multiple question types in array modifiy
Oh, and some XHTML validators might whine about those elements being there but that's just because they're not smart enough to realize that the tags are just quoted inside a script.
  • tpartner
  • tpartner's Avatar
05 Dec 2010 17:57 - 05 Dec 2010 18:01
Replied by tpartner on topic Multiple question types in array modifiy
Hi holch, that trailing slash does close the tag and is valid XHTML.

In this case it doesn't matter though because that tag is just in the script and the actual generated HTML will be:
Code:
<div id="inlineWrapper1">...</div>
  • tpartner
  • tpartner's Avatar
05 Dec 2010 14:50
Replied by tpartner on topic Multiple question types in array modifiy
I have updated the code in the workaround to work in IE8 and to be a little more XHTML valid.

The new code is:
Code:
<script type="text/javascript" charset="utf-8">
 
    $(document).ready(function() {
 
        /*********** 
        Display multiple questions side by side
        ***********/
 
        if ($('div.qRow1').length == 0) {
 
            //////// Add question classes for later use ////////
 
            // Give questions row specific attributes so we can easily manipulate them by row
            $('#question190, #question191, #question192, #question193, #question194').addClass('qRow1 inlineQuestion');
            $('#question195, #question196, #question197, #question198, #question199').addClass('qRow2 inlineQuestion');
            $('#question200, #question201, #question202, #question203, #question204').addClass('qRow3 inlineQuestion');
            $('#question205, #question206, #question207, #question208, #question209').addClass('qRow4 inlineQuestion');
 
            // Give questions column specific classes so we can easily manipulate them by column
            $('#question190, #question195, #question200, #question205').addClass('qCol1');
            $('#question191, #question196, #question201, #question206').addClass('qCol2');
            $('#question192, #question197, #question202, #question207').addClass('qCol3');
            $('#question193, #question198, #question203, #question208').addClass('qCol4');
            $('#question194, #question199, #question204, #question209').addClass('qCol5');
 
            //////// Survey layout manipulation ////////
 
            // Fix the width of the survey
            $( 'table.outerframe' ).css({
                'width': '900px'
            });
 
            // Wrap each row in a div
            $('.qRow1').wrapAll('<div id="inlineWrapper1" />');
            $('.qRow2').wrapAll('<div id="inlineWrapper2" />');
            $('.qRow3').wrapAll('<div id="inlineWrapper3" />');
            $('.qRow4').wrapAll('<div id="inlineWrapper4" />');
 
            // Style the wrapper divs
            $( '#inlineWrapper1, #inlineWrapper2, #inlineWrapper3, #inlineWrapper4' ).css({
                'width': '850px',
                'margin': '0 auto 0 auto',
                'clear': 'both'
            });
 
            // Get all the questions to sit politely side by side
            $( '.qRow1, .qRow2, .qRow3, .qRow4' ).css({
                'float': 'left'    
            });
            $( '.inlineQuestion .survey-question-help' ).parent().hide();
 
            //////// Column manipulation ////////
 
            // Set the column widths - can be set individually if necessary
            // Must add up to less than 100%
            $( '.qCol1' ).css({
                'width': '12%'
            });
            $( '.qCol2, .qCol3, .qCol4, .qCol5' ).css({
                'width': '22%'
            });
 
            //////// Question manipulation ////////
 
            // Hide the answer element in boilerplate questions
            $( 'div.boilerplate td.answer' ).parent().hide();
 
            // Hide the question text elements in non-boilerplate questions
            $('div.text-short td.questiontext, div.list-dropdown td.questiontext, div.yes-no td.questiontext, div.numeric td.questiontext').parent().hide();
 
            // Push the question tables to 100%
            $( 'div.qRow1 table, div.qRow2 table, div.qRow3 table, div.qRow4 table' ).css({
                'width': '100%'
            });
 
            // Get everything to line up nicely vertically
            $( 'td.questiontext, td.answer p' ).css({
                'text-align': 'center'
            });
 
            // Adjust cell heights so everything lines up nicely horizontally
            $( 'td.answer, td.questiontext' ).css({
                'height':'35px',
                'overflow':'hidden'
            });
            $( '.inlineQuestion' ).css({
                'height':'40px',
                'overflow':'hidden'
            });
 
            // Yes-no question styles
            $( 'div.yes-no ul' ).css({
                'text-align': 'center',
                'font-size': '90%',
                'margin': '0',
                'padding-bottom': '5px'
            });
            $( 'div.yes-no li' ).css({
                'padding-right': '1.5em'
            });
            $( 'div.yes-no td.answer' ).css({
                'padding-bottom': '0'
            });
 
            // Short-text question styles
            $( 'div.text-short input' ).css({
                'width': '125px',
                'margin-left': '0'
            });
 
            // Numeric question styles
            $( 'div.numeric input' ).css({
                'width': '125px',
                'margin-left': '0'
            });
            $( 'div.numeric p.tip' ).css({
                'display': 'none'
            });
 
            // Get rid of the margins around select boxes    
            $( 'p.question' ).css({'margin':'0'});
 
            // Reduce the space caused by the question help table
            $( '.qRow1, .qRow2, .qRow3' ).css({
                'margin-bottom': '-8px'
            });
 
        }    
 
    });
 
</script>
  • tpartner
  • tpartner's Avatar
02 Dec 2010 16:59
Replied by tpartner on topic Multiple question types in array modifiy
The error (if there is one) could be anywhere in the source and I can't check that without seeing it live. Try the HTML Validator for Firefox .
  • phpsurvey
  • phpsurvey's Avatar
02 Dec 2010 14:28 - 02 Dec 2010 14:53
Replied by phpsurvey on topic Multiple question types in array modifiy
sorry... you mean that there is anywhere a tag, that is not closed?? I thought that you mean accurately the <h2> tag. I searched for the h2 tag :)

Maybe I show you what I did and you could understand me:

1. I checked the source code of my Boilerplate questions where I insert your javascript code -> there were no open tags

2. I checked the template file -> no open tag

Thats all what I changed ????

So how can I fix it :dry: ?????



Here an extract from the html sourcecode
Code:
  <table class="question-wrapper">
    <tr>
      <td class="questiontext">
 
        <span class="asterisk"></span><span>Offer</span><br /><span class="questionhelp"></span>
 
 
      </td>
    </tr>
    <tr>
 
  • tpartner
  • tpartner's Avatar
02 Dec 2010 13:32
Replied by tpartner on topic Multiple question types in array modifiy
I'm afraid I don't understand your problem. My previous post is simply a suggestion on how to fix that particular snippet of HTML.
  • phpsurvey
  • phpsurvey's Avatar
01 Dec 2010 23:41 - 01 Dec 2010 23:41
Replied by phpsurvey on topic Multiple question types in array modifiy
When I find a solution for my last problem I write an article about limesurvey with multiple question types in array in two languages, that nobody has the the barriers like me...:)

I have the same problem like: www.limesurvey.org/de/support/hilfe-fore...ernet-explorer#50103

tpartner wrote:

You have a span in your banner element that's not closed properly and the resulting HTML error may be messing up IE.

Code:
<h2><span style='font-size:26px;font-family:"Times New Roman"; color:#003366' >SocPiMu10</h2>


Okay I understand the error, but I don't know how I can fix it????
  • tpartner
  • tpartner's Avatar
15 Oct 2010 13:23
Replied by tpartner on topic set box text input width for other
1) This is not a bug but a matter of preference. You should be able to reposition the <p> that contains the textarea with CSS by removing the float style.

2) This may be a bug. Please open a ticket at the bugtracker and include a sample survey and your fix.

3) Mazi is correct - your template generates some 20 odd HTML errors that need to be cured. I also recommend starting anew with the current Basic template.
  • evan
  • evan's Avatar
23 Feb 2010 01:05 - 23 Feb 2010 01:06
Hi.

I've just had a look at the 508 Compliance Website, in particular the checklist page ( www.csun.edu/~comp508/websitecheck.html ).

One thing that would have a significant effect 508 compliance is the template used for the survey. If you use a CSS based template like Limespired and Mint Idea you are probably going to be fine.

In short in it's current version, LimeSurvey can be 508 compliant.

The following is my understanding of LimeSurvey in relation to the checklist listed above:
NOTE: Below is for survey front end, not the admin interface. My brief testing of the admin interface seems to suggest that the below is mostly true for the admin interface as well (although more could be done with keyboard navigation on the admin interface)

(1) Is there a text equivalent (e.g., via "alt", "longdesc", or in element content) for every non-text element?
This is content and template related and can be controlled by the end user/admin
The only image that LimeSurvey inserts is the help image which does contain an alt of "help"

(2) For any multimedia presentations, are there equivalent text alternatives and are they synchronized with the presentation?
NA - Content related - survey creators need to be aware of this requirement.
By default Yes

(3) Is all information conveyed with color also available without color (e.g. from context or markup)?
Mostly content and template related.
LimeSurvey error and special note messages are identified by classes use colour. However the colour of the text us used to hightlight meaning rather than change it.

(4) Are documents organized so they are readable without requiring an associated style sheet?
Content and template related. (By documents I assume they mean downloadable documents e.g. PDFs, Word Docs, etc)

(5) Are redundant text links provided for each active region of a server-side image map?
NA - Content and template related.
By default LimeSurvey doesn't use server-side image maps.

(6) Are row and column headers identified for data tables?
Yes - but more could be done to improve this
The <TH> tags should all have unique IDs and the <TD> tags should all include the 'headers' attribute ( www.w3.org/TR/html4/struct/tables.html#adef-headers ) and the 'headers' attribute should list the IDs of all the tag that cell refers to.

(7) Are frames titled with text that facilitates frame identification and navigation?
NA - Content and template related.
By default LimeSurvey doesn't utilise any Frames

(8) Does the software avoid using flashing or blinking text, objects, and other elements having a flash or blink frequency greater than 2 Hz and lower than 55 Hz?
NA - Content and template related.
By default LimeSurvey doens't have flashing text.

(9.a) Is a text-only page, with equivalent information or functionality, provided? (This is to ensure that a web site complies when compliance cannot be accomplished in any other way.)
Content and template related.
By default LimeSurvey doens't need this functionality as it is primarily text based.

(9.b) Is the content of the text-only page updated whenever the primary page changes?
Content and template related.

(10) If pages utilize scripting languages to display content, or to create interface elements, is the information provided by the script identified with functional text that can be read by assistive technology?
This I'm not 100% sure about but I think "Yes"

(11) If electronic forms are designed to be completed on line, does the form allow people using assistive technology to access the information, field elements and functionality required for completion and submission of the form, including all directions and cues?
Yes for most questions I've tried. There are a couple of question types that may be a problem:
The Date question pops up a JavaScript calendar box which is not keyboard navigable.
The "Multiple Numerical Input (slider layout)" and "Ranking Question" question drop keyboard navigation in a black hole which can not be gotten out of.
(12) Is a method provided that permits users to skip repetitive navigation links?
Template related

(13) If a timed response is required, is the user alerted and given sufficient time to indicate more time is required?
LimeSurvey does support timed responses but I've never used it. So can't say.
If timed responses are not used, then Yes.

(14) If the software is designed to run on a system that has a keyboard, are product functions executable from a keyboard where the function itself or the result of performing a function can be discerned textually?
NA

My one recommendation is that perhaps LS has a config setting that makes LS fully 508 compliant by limiting its functionality.
Displaying 4726 - 4739 out of 4739 results.

Lime-years ahead

Online-surveys for every purse and purpose