Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 populate droplist
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 4

s80ts0465
Junior Member

Italy
290 Posts

Posted - 27 May 2004 :  09:53:49  Show Profile  Send s80ts0465 an ICQ Message
i've tryed ur last string, but it doesn't work.
compilation error of Microsoft VBScript (0x800A03EE) Expect ')'

the form retrive from the databse simply text

Edited by - s80ts0465 on 27 May 2004 09:57:02
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 27 May 2004 :  10:06:30  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Sorry, corrected above.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 May 2004 :  02:36:16  Show Profile  Send s80ts0465 an ICQ Message
I've also tryed without the db connection using this code:

Response.Write	"                <form name = ""Prova"" method=""post"" action=""post.asp?" & Request.ServerVariables("QUERY_STRING") & """>" & 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"" onChange=""document.Prova.submit();"">" & vbNewLine & _
		"                	<option value=""" & """>no value</option>" & vbNewLine & _
		"                	<option value=""ciao"">ciao</option>" & vbNewLine & _
		"                	<option value=""hallo"">hallo</option>" & vbNewLine & _
		"			<option value=""hi"">hi</option>" & vbNewLine & _	
		"                	<option value=""no"">no</option>"

Response.Write	"                </select>" & vbNewLine & _
			"                </font></td>" & vbNewLine & _
			"              </form></tr>" & vbNewLine


and it finally gave me a good thing.
so the page reload to the right page (always post.asp) and it seems that also the submitting() function works fine, in fact the second dropdown list is populated by the right value (in function of the first selection). The only problem is that in the first dropdown list doesn't compare the item selected....why???


thanksssss a lot

Edited by - s80ts0465 on 28 May 2004 05:55:48
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 28 May 2004 :  05:49:58  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
Originally posted by OneWayMule

What data is passed via the form? Can you post a link to the page so we can take a look?

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 May 2004 :  06:03:06  Show Profile  Send s80ts0465 an ICQ Message
the data retrived from the databse are simply text.
About the link, i'm sorry the forumn is on localhost, and i still don't find a webspace. anyway above i posted a link to the post.asp file

i've also edited the above post. I've got good results :-) check it
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 28 May 2004 :  06:28:37  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
Originally posted by s80ts0465

The only problem is that in the first dropdown list doesn't compare the item selected....why???

Have you made the changes I posted in this post?

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 May 2004 :  06:29:27  Show Profile  Send s80ts0465 an ICQ Message
ok i resolved it with this line
" <option value=""" & Request.Form("Injection1") & """>" & Request.Form("Injection1") & "</option>" & vbNewLine & _



soooo why didn't it work before??? is it due to the double connection to the databse?? is it a problem for the future????

Anyway apart all this thanks to alllll for the help

bye stefano and stay tune for the next time
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 May 2004 :  08:24:17  Show Profile  Send s80ts0465 an ICQ Message
I'm still making some test, and i've noted that at the same time i create another droplist that get the where value from the second one (that is connectes to thr database) the third droplist doesn't work.
so i really start to think that the problem is in the double database connection. In fact the second dropdown list, that gets the where value from a dropdown list that isn't connected to the database, works perfectly, instead the third one, that get the value from the second droplist (connected to the databse) , doesn't work. Could it be???
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 28 May 2004 :  08:25:57  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
If you post a link to the source (txt version) of the latest version of your page, we can take a look.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 28 May 2004 :  08:45:08  Show Profile  Send s80ts0465 an ICQ Message
ok but in the evening

i've noted some other problems. I wanted to insert the items selected in the droplists in the message body (like the Injection mod), but it doesn't work now. With the Injection mod i modified also post_info.asp and it works, but using the dropdown list it doesn't work anymore. Why??
How could i paste the selection directly to the message body in the post.asp?? like the list bottom..... or the code one.....????


The code in post_info.asp at line 878 is
'#Inject Message text MOD - start
			txtMessage = "Event : " & ChkString(Request.Form("Injection1"),"message") & vbNewline
			txtMessage = txtMessage & ChkString(Request.Form("Message"),"message")
		'	txtMessage = ChkString(Request.Form("Message"),"message")
		'#Inject Message text MOD - end

		txtSubject = ChkString(Request.Form("Subject"),"SQLString") & vbNewLine
		txtSubject1 = txtSubject & ChkString(Request.Form("Injection2"),"message") & vbNewLine
		txtSubject2 = txtSubject1 & ChkString(Request.Form("Injection1"),"message")

Edited by - s80ts0465 on 28 May 2004 11:08:27
Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 30 May 2004 :  03:14:45  Show Profile  Send s80ts0465 an ICQ Message
So i've finally found a working ftp space. the two files are:

http://s80ts0465.greatnow.com/snitz/post.asp
http://s80ts0465.greatnow.com/snitz/post_info.asp

In post.asp at line 585 there is the new code (faults mod) we're working on and at line 745 there is the normal injection mod.
In post_info.asp at line 878 there is the injection mod stings.

The code in post.asp create 3 dropdownlist:the first one gets the values from a normal dropdown list (without db connection);
the second dropdownlist is connected to the db and populates the list in base of the value selected in the first dropdown list. All this works, at least the values of the second dropdown are correct;
the third dropdown list (connected to the same db but to another table) gets the WHERE value from the selection of the second dropdown list, and it doesn't work !! the third list is empty.

The items selected should be save in the message body as the Injection mod does, but in this case it doesn't work.

Hope somebody can help me

Thanks Stefano



Go to Top of Page

s80ts0465
Junior Member

Italy
290 Posts

Posted - 03 June 2004 :  08:38:08  Show Profile  Send s80ts0465 an ICQ Message
Could the form be the reason that i cannot export the selction?? Becasuse the only diferent thing respect the injection mod is thta my code is within a form??

any suggest??
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 1.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07