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 ForumsSurveySurveyUnable to Submit SurveyUnable to Submit Survey
Previous
 
Next
New Post
10/2/2006 4:16 PM
 

Can you try this BETA and tell me if that solves the problem:

http://www.adefwebserver.com/DotNetNukeHELP/Misc/Files/DNN4_SurveyModule_Beta_8_27_2006.zip

 



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/10/2006 7:34 AM
 

I just started having the same problem a few minutes ago. I did not get a chance to try the Beta to see if that fixed the problem, as i am at work and the bosses frown on private work at work. Any way i did play with it for a minute and found that it only happens using IE i tried firefox from the same computer and it worked just fine.

 

If anyone wants to see the issue live go to www.galacticarchives.net it is labeled general survey right on the home page.

 

Ps. I have noticed that all problems i have ever encountered with dnn are directly related to IE, and i have had quite a few.

 
New Post
10/10/2006 11:31 AM
 
mattdamick wrote

If anyone wants to see the issue live go to www.galacticarchives.net it is labeled general survey right on the home page.

When I go to that page with javascript debugging tunred on I get an error:

Microsoft JScript runtime error: 'ScrollTop' is null or not an object

on this line method:

function __dnn_bodyscroll()
{
 var oF=document.forms[0]; 
 if (__dnn_ClientAPIEnabled() && __dnn_m_bPageLoaded)
  oF.ScrollTop.value=dnn.dom.getByTagName("body")[0].scrollTop;
}

The Survey threw an error but with this eror also on the page we can not isolate the probelm.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
10/10/2006 12:58 PM
 
AdefWebserver wrote
 mattdamick wrote

If anyone wants to see the issue live go to www.galacticarchives.net it is labeled general survey right on the home page.

When I go to that page with javascript debugging tunred on I get an error:

Microsoft JScript runtime error: 'ScrollTop' is null or not an object

on this line method:

function __dnn_bodyscroll()
{
 var oF=document.forms[0]; 
 if (__dnn_ClientAPIEnabled() && __dnn_m_bPageLoaded)
  oF.ScrollTop.value=dnn.dom.getByTagName("body")[0].scrollTop;
}

The Survey threw an error but with this eror also on the page we can not isolate the probelm.

Off topic abit but any idea what caused that error i am no good with errors like that. Once i get that fixed i can see the error created by the survey.

 

Thanks

 
New Post
10/14/2006 2:31 PM
 

Hello

Putting a little effort got me to know that the values are not saved properly (reading postback had the bug)

replace the following function in the survey module survery.ascx.vb , btnSubmit_Click to following

the changes i did are in bold.

        Private Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click

            Dim objSurvey As SurveyInfo
            Dim intSurvey As Integer
            Dim objSurveyOption As New SurveyOptionInfo
            Dim intSurveyOption As Integer
            Dim intQuestion As Integer
            Dim intOption As Integer
            Dim blnValid As Boolean = True

            intQuestion = -1
            Dim arrSurveys As List(Of SurveyInfo) = SurveyController.GetSurveys(ModuleId)
            For intSurvey = 0 To arrSurveys.Count - 1
                objSurvey = arrSurveys(intSurvey)
                intQuestion += 1
                Select Case objSurvey.OptionType
                    Case "R"
                        If Request.Form(lstSurvey.UniqueID & "$ctl" & Right("00" & intQuestion,2) & "$optOptions") = "" Then
                            blnValid = False
                        End If
                    Case "C"
                        blnValid = False
                        intOption = -1
                        Dim arrSurveyOptions As List(Of SurveyOptionInfo) = SurveyOptionController.GetSurveyOptions(objSurvey.SurveyId)
                        For intSurveyOption = 0 To arrSurveyOptions.Count - 1
                            intOption += 1
                            If Request.Form(lstSurvey.UniqueID & "$ctl" & Right("00" & intQuestion,2) & "$chkOptions$" & intOption.ToString) <> "" Then
                                blnValid = True
                            End If
                        Next
                End Select
            Next

            If blnValid Then
                intQuestion = -1
                For intSurvey = 0 To arrSurveys.Count - 1
                    objSurvey = CType(arrSurveys(intSurvey), SurveyInfo)
                    intQuestion += 1
                    Select Case objSurvey.OptionType
                        Case "R"
                            If Request.Form(lstSurvey.UniqueID & "$ctl" & Right("00" & intQuestion,2) & "$optOptions") <> "" Then
                                objSurveyOption.SurveyOptionId = Int32.Parse(Request.Form(lstSurvey.UniqueID & "$ctl" & Right("00" & intQuestion,2) & "$optOptions"))
                                SurveyOptionController.AddSurveyResult(objSurveyOption, UserId)
                            End If
                        Case "C"
                            intOption = -1
                            Dim arrSurveyOptions As List(Of SurveyOptionInfo) = SurveyOptionController.GetSurveyOptions(objSurvey.SurveyId)
                            For intSurveyOption = 0 To arrSurveyOptions.Count - 1
                                objSurveyOption = CType(arrSurveyOptions(intSurveyOption), SurveyOptionInfo)
                                intOption += 1
                                If Request.Form(lstSurvey.UniqueID & "$ctl" & Right("00" & intQuestion,2) & "$chkOptions$" & intOption.ToString) <> "" Then
                                    SurveyOptionController.AddSurveyResult(objSurveyOption, UserId)
                                End If
                            Next
                    End Select
                Next

                Message_Label.Text = Localization.GetString("SurveyComplete", Me.LocalResourceFile)

                If blnPersonalVoteTracking = True Then
                    ' This means the module vote tracking is using personalization, so set the profile to show they have voted
                    DotNetNuke.Services.Personalization.Personalization.SetProfile(ModuleId.ToString, "Voted", True)
                    blnVoted = True
                    DisplayResults()
                Else
                    ' Store a cookie to show the chart after the submit
                    Dim objCookie As HttpCookie = New HttpCookie("_Module" & ModuleId.ToString & "_Survey")
                    objCookie.Value = "True"
                    objCookie.Expires = DateTime.MaxValue       ' never expires
                    Response.AppendCookie(objCookie)
                    blnVoted = True
                    DisplayResults()
                End If
            Else
                Message_Label.Text = Localization.GetString("SurveyIncomplete", Me.LocalResourceFile)
            End If
        End Sub

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurveyUnable to Submit SurveyUnable to Submit Survey


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