Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyTable MisalignmentTable Misalignment
Previous
 
Next
New Post
9/12/2008 9:42 AM
 

I just upgraded to survey 4.5 (DNN 4.8.4) and my results now look really strange (in IE and FF). Examining the html I see that each answer gets its own table (not just its own <tr>). This means the <td> with the red bars do not line up with one another.

As you can see from the template html below, I'm just using it out of the box. However, as the resulting html shows, each question gets its own table. The question is a multi-response question, by the way.

Any thoughts?

John

 


Resulting HTML

<span id="dnn_ctr370_Survey_lstResults_ctl00_lblResults" class="Normal"><BR><div class="surveyresulttemplateUL"><div class="surveyresulttemplateLI"><table border="0" cellpadding="2" cellspacing="0" summary="Survey Results">
    <tr>
        <td class="YourCompanyNameSurveyResults" valign="top">
            Question 1 &nbsp;(1)</td>
        <td align="left" class="Normal" nowrap="nowrap" valign="top">
            <img alt="" border="0" height="15" src="/DesktopModules/Survey/red.gif"
                width="80" />&nbsp;20%</td>
    </tr>
</table>
</div><div class="surveyresulttemplateLI">
<table border="0" cellpadding="2" cellspacing="0" summary="Survey Results">
    <tr>
        <td class="YourCompanyNameSurveyResults" valign="top">
            Question 2 &nbsp;(2)</td>
        <td align="left" class="Normal" nowrap="nowrap" valign="top">
            <img alt="" border="0" height="15" src="/DesktopModules/Survey/red.gif"
                width="160" />&nbsp;40%</td>
    </tr>
</table>
</div><div class="surveyresulttemplateLI"><table border="0" cellpadding="2" cellspacing="0" summary="Survey Results">
    <tr>
        <td class="YourCompanyNameSurveyResults" valign="top">
          Question 3 &nbsp;(1)</td>
        <td align="left" class="Normal" nowrap="nowrap" valign="top">
            <img alt="" border="0" height="15" src="/DesktopModules/Survey/red.gif"
                width="80" />&nbsp;20%</td>
    </tr>
</table>
</div><div class="surveyresulttemplateLI"><table border="0" cellpadding="2" cellspacing="0" summary="Survey Results">
    <tr>
        <td class="YourCompanyNameSurveyResults" valign="top">
           Question 4 &nbsp;(1)</td>
        <td align="left" class="Normal" nowrap="nowrap" valign="top">
            <img alt="" border="0" height="15" src="/DesktopModules/Survey/red.gif"
                width="80" />&nbsp;20%</td>
    </tr>
</table>
</div></div></span>


Template HTML

<table border="0" cellpadding="2" cellspacing="0" summary="Survey Results">
    <tr>
        <td class="YourCompanyNameSurveyResults" valign="top">
            [SURVEY_OPTION_NAME]&nbsp;([SURVEY_OPTION_VOTES])</td>
        <td align="left" class="Normal" nowrap="nowrap" valign="top">
            <img alt="" border="0" height="15" src="[SURVEY_OPTION_IMAGEPATH]/red.gif"
                width="[SURVEY_OPTION_GRAPH_WIDTH]" />&nbsp;[SURVEY_OPTION_PERCENTAGE]%</td>
    </tr>
</table>
 


 

 

 
New Post
9/12/2008 10:53 AM
 

You should be able to take the table out of your tempate and just use .css layout.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/31/2008 4:21 AM
 

Hi, I want to quote the total number of survey submissions elsewhere on the page - in a text/html module.  Can this be done?  Do I use the token [SURVEY_OPTION_VOTES] and if so, how do I use this in the html code?  Many thanks for your response in advance.

 
New Post
10/31/2008 8:11 AM
 

shdale wrote
 

Hi, I want to quote the total number of survey submissions elsewhere on the page - in a text/html module.  Can this be done?  Do I use the token [SURVEY_OPTION_VOTES] and if so, how do I use this in the html code?  Many thanks for your response in advance.

You would need to code a custom module for this.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
2/3/2009 9:31 AM
 

Michael Washington wrote
 

You should be able to take the table out of your tempate and just use .css layout.

What the OP meant is that every option gets it's own table. So if option 1 is 20 characters, and option 2 is 40 characters, then the percentage-bars don't lign up correctly.
For example:
Answer blablabla: |||||||||||||||||||||||||||||| 50%
Answer blablablablablablablablabla : |||||||||||||||||||||||||||||| 50%

The beginnings of the bars should lign up, but they don't.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyTable MisalignmentTable Misalignment


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out