Ok i've tryed it at home at it seems to populate the second dropdown list with the items of the PROVA_fault, but they don't depend from the selection of the first dropdown list. So it seems like if strGruppo is empty, and so it populates the second dropdown list with the PROVA_fault field. Could this depend from the submit() ????????? Shouldn't this submit() reload the page saving the selection of the first dropdown list??? or what else??? anyway in the afternoon i'm gonna try it at work where i've the latest version of the forum. Let you know later.
any error!!! at the moment the forum is in localhost but when u want i can send u or attach the files.
what about to try to make a little javascript to reload the page??I've seen on the web a lot of guys who launch a javascript that reload the page and add to the url something like ?Group &selectiondroplist It's used in default.asp for the group category menu. Do u know this method??
so i'll check everything once gain later. I've just noted that all my submitting function in post.asp doesn't work at the moment (also the screensize selection doesn't work now). Probably i did something of wrong.
so i've reinstalled the original snitz forum so the basics of the page works fine once again. At the same time i inserted this code at the line 534:
If strRqMethod = "Topic" then
Response.Write " <form name = ""Prova"" method=""post"" action=""post.asp"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ noWrap vAlign=""top"" align=""right""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><b>Event:</b></font></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""Injection1"" size=""1"" tabindex=""-1"" >" & vbNewLine
Set objDC = Server.CreateObject("ADODB.Connection")
strConn="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("/NewElogBook/logbook/database/elogbook.mdb")
objDC.Open strConn
Set objRs = objDC.Execute("Select PROVA_gruppo FROM FORUM_PROVA")
if NOT objRs.RecordCount = 0 then
Do While (Not objRs.EOF)
Response.Write " <option value=""" & objRS("PROVA_gruppo") & """>" & objRs("PROVA_gruppo") & "</option>" & vbNewLine
objRs.MoveNext
Loop
End If
Response.Write " </select>" & vbNewLine & _
" </font></td>" & vbNewLine & _
" </form></tr>" & vbNewLine
objRs.Close
Set objRs = Nothing
objDC.Close
Set objDC = Nothing
end If
i get these error when open the page: Line 240 Error: 'document.PostTopic.Subject' is null or it isn't an object
if i try to change the screensize i get: Line 473 Error: 'document.PostTopic.Message' is null or it isn't an object
end changing the new droplist get: Line 155 Error: 'document.Prova' is null or it isn't an object
and the mod we are working around doesn't work too.
I'm also using a Image 2001 Mod snitz forum and when i modify the post.asp file i don't get the errors, but the submit() doesn't work for our mod and also for the screensize.
i've noted in my test, that the problem starts at the same time i create the form. From that moment any submit() (also the screensize one) doesn't work fine.
thankssss a lot once again and let me know when you find something
one thing, which I don't know if it is causing the problem or not, you don't have quotes around your onchange statement. you also misspelled document. make it: