Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #16  
Old May 15th, 2008, 04:17 AM
new learner new learner is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2008
Location: India
Posts: 296 new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level)new learner User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 7 h 25 m 25 sec
Reputation Power: 127
Quote:
Originally Posted by Shadow Wizard
that's because it now can't find match.
well, it's possible to do what you want but it's not going to be simple.
until the member who started this thread will be back, it's for the best
if you start new thread, post your full code and explain again what
exactly is your need. I prefer to avoid hijacking this thread too much,
and when you'll have this working you can ask this to be added here.


Thanks, I'll accept ur suggestion & try to create a new thread in the meantime.

Reply With Quote
  #17  
Old February 13th, 2009, 06:09 AM
Tottiescones Tottiescones is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Location: Glasgow, Scotland
Posts: 2 Tottiescones User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 49 sec
Reputation Power: 0
Hi there,

I'm new to ASP so still learning. I have incorporated your code into my page and it is working perfectly - Thanks so much!

I have a question though - how do I get it to save the selections in my access database? For the other ones I use
Code:
value="<%=answers(13)%>
but I can't see where to put this in the code.

Please be gentle if this is a really stupid question :-)

Thanks
Tottiescones

Reply With Quote
  #18  
Old August 5th, 2009, 06:23 AM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
thank you for this solution but I want ask a question. I try to understand the script and If we want use 3 different tables what we will do. there is a problem with this we can make it from sql? or we will use extra codes and how we will do it...

Reply With Quote
  #19  
Old August 5th, 2009, 08:33 AM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
Code:

<% 
Set oConnection = Server.CreateObject("ADODB.Connection")
Set oRecordset = Server.CreateObject("ADODB.Recordset")	

'temp="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/ntsrsschsp.mdb")
sSQLTitle=  "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=XXXXX; DATABASE=XXXXX; UID=XXXXX;PASSWORD=XXXXX; OPTION=3" 

oConnection.Open sSQLTitle

sQuery = "SELECT * from tbl_product_sector,tbl_product_category,tbl_produc  t_down_category where tbl_product_sector.ID=tbl_product_category.Sector_  ID and tbl_product_category.ID=tbl_product_down_category.  Top_Category " ' << insert your own sql here
%>
<FORM id=form1 name=form1>

<%
Response.Write TripleLinkedList(oConnection, sQuery, "listboxname", 1, "dbfieldname-for-1st-listbox", "dbfieldname-for-2nd-listbox", "dbfieldname-for-3rd-listbox", "name-of-the-result-from-sql")
oConnection.Close
Set oConnection = Nothing
%>

</FORM>



My code is here and I want a solutions.

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/test/01.asp, line 100

when I put my code I recive this mistake. what is the solution.

yhe script code and base code is the same 1st page at the top. can anybody solve it...

Reply With Quote
  #20  
Old August 5th, 2009, 09:30 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
the field name "dbfieldname-for-1st-listbox" is just as example, you must
replace it with real field name that exists in one of the tables you read from.

Reply With Quote
  #21  
Old August 5th, 2009, 10:45 AM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
Code:

<% 
Set oConnection = Server.CreateObject("ADODB.Connection")
Set oRecordset = Server.CreateObject("ADODB.Recordset")	

'temp="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("db/ntsrsschsp.mdb")
sSQLTitle=  "DRIVER={MySQL ODBC 5.1 Driver}; SERVER=localhost; DATABASE=XXXXX; UID=XXXXX;PASSWORD=XXXXX; OPTION=3" 

oConnection.Open sSQLTitle

sQuery = "SELECT * from tbl_product_sector,tbl_product_category,tbl_produc  t_down_category where tbl_product_sector.ID=tbl_product_category.Sector_  ID and tbl_product_category.ID=tbl_product_down_category.  Top_Category " ' << insert your own sql here
%>
<FORM id=form1 name=form1>

<%
Response.Write TripleLinkedList(oConnection, sQuery, "listboxname", 1, "Sectors", "Category_Name", "Category", "name-of-the-result-from-sql")
oConnection.Close
Set oConnection = Nothing
%>

</FORM>


thank you for your solution.

I cant understand the name-of-the-result-from-sql what should be?

I run it with out name-of-the-result-from-sql And it is worked but I think I make A mistake with my SQL Query.

I have 3 product table

sector-->category--> catsegory 2

I had 3 tables. tbl_product_sector,tbl_product_category,tbl_produc t_down_category.

can you help me on this. what should be the SQL query. and if in our categories most of them had the 3 category. but some of them dont have. just have sectors and product category. we will do it with if else. what will be our code... how we will solve it. can you help me on it.

thank you for your time.

Reply With Quote
  #22  
Old August 13th, 2009, 08:07 PM
linguist2000 linguist2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 8 linguist2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 2 m 4 sec
Reputation Power: 0
yes,

can someone help what should this sQuery be??

Reply With Quote
  #23  
Old August 13th, 2009, 08:13 PM
linguist2000 linguist2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 8 linguist2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 2 m 4 sec
Reputation Power: 0
by the way,

Can you plscsend a complete working form of this script.

With a database and asp file.

Reply With Quote
  #24  
Old August 14th, 2009, 09:00 AM
linguist2000 linguist2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 8 linguist2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 2 m 4 sec
Reputation Power: 0
any idea?

Reply With Quote
  #25  
Old August 14th, 2009, 07:32 PM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
thank you for every body. but I dont Understand There is no body wants to help us. I see examples in php and .net but I cant convert them to Classic ASP mode.

My aim is to learn it. And I would use it in my personal web site.

select continent after that country and after that city. some countries dont have cities. just this. like I will add to 20 country which have city list and the others no. 7 continent 55 country and from theese 55 just 20 of them has cities. triple dropdown list.

please help me on this.

Reply With Quote
  #26  
Old August 15th, 2009, 06:11 AM
linguist2000 linguist2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2009
Posts: 8 linguist2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 2 m 4 sec
Reputation Power: 0
I am waiting for Shadow Wizard

I think He is expert

Reply With Quote
  #27  
Old August 18th, 2009, 02:54 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
sorry to disappoint you.. since I didn't write this code originally there's little
I can do to help in this case as I don't know how the code work exactly, all
I can help with is the syntax and maybe some tips.

I couldn't crack the usage of "sDBFieldResult" parameter in the function, which
is what you pass as "name-of-the-result-from-sql" and I don't have the time
to start learning the logic behind the code - you better send message to the
original poster of the code hopefully he's around.

worst case if you can't use this, find something else - that's what I'm doing.

Reply With Quote
  #28  
Old August 19th, 2009, 12:12 AM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
thank you shadow. I have been thinking for the another way to solve the problem. I find it with the iframe. In iframe I use case selection. and I get the details from ifram with java sctipt codes. this way until I can write the code or I solve it it a littile solution.

but if you have a some codes about this I hope to help us about it. because you know that some browsers disable the javascript. so that we should find the code. the problem I cant understand one think can any body write a code in three selection in one table. I think is so useless.

another think. do you have any ideas about jquery with asp. if you have I had a paging problem.

thank you fro your time...

Reply With Quote
  #29  
Old August 19th, 2009, 03:58 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,838 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2Folding Points: 549372 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 14 h 30 m 10 sec
Reputation Power: 2389
not sure how iframe is related but if you say it's working then I won't argue.

regarding JavaScript, I'm also using it extensively, unless it's critical issue you
can add such code to warn users who disabled it:
Code:
<noscript>Your browser does not enable JavaScript, you might experience problems using this page.</noscript>

most major websites today are using JavaScript as part of their "core" IMO there's
no need to write special code for such case when user has it disabled.

jQuery is not relatd to ASP, it's pure client side issue. if you have problems with it
feel free to start new thread in the HTML/JavaScript forum.

Reply With Quote
  #30  
Old August 19th, 2009, 08:59 AM
nahhas82 nahhas82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 36 nahhas82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 49 m 44 sec
Reputation Power: 3
thank you shadow.

when I do it I use a function which take the value from iframe and put it automatically in the text input after that you can take the value.

I'm sorry about it but when I was in the bed ı think about it. and I do it so fast.

I will write the jquery problem please check it and if you can help me I will be happy so much. thanks...

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Dynamic Triple Linked Dropdowns


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek