We help IT Professionals succeed at work.

Passing Classic ASP values in AJAX

Bob Schneider
on
454 Views
Last Modified: 2014-09-02
I would like to tie this one off soon if we could.  On this page I am using an array to populate a datatable and I want to pass three values:
1) series id
2) age category
3) gender

The dropdowns are there.  I understand that this is not done via forms.  My dropdowns are:
1) series
2) categories
3) gender

I have learned a ton from this site on this but still having difficulty connecting these dots.

Thanks so much in advance.
Comment
Watch Question

Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Bob SchneiderCo-Owner

Author

Commented:
Thanks, but now how do I convert those in to asp variables on the "receiving" page?
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Bob SchneiderCo-Owner

Author

Commented:
Sure, and this may be my ignorance, but the receiving page is drawing it's data from Request.Querystring.  Is that how this is being received?  I assume so but the page is now not rendering.
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Bob SchneiderCo-Owner

Author

Commented:
HI.  So I copied your code exactly as is and it appears to not be working.  Any ideas?
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Developer
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013

Commented:
I hope that worked for you.  When you start using more javascript, it is important to make sure your code is good as it can be the culprit for what could seem like unrelated js errors.
Bob SchneiderCo-Owner

Author

Commented:
Yeah I see a lot of issues with the stuff I pulled down from some third parties as well so I will have to go through that more carefully.  But yes, your assistance helped a lot.  Once I get it "cleaned up" it will be a big help to this utility and to my learning curve with javascript, json, jquery, and ajax.

Thanks so much...
Scott FellDeveloper
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013

Commented:
What you might want to do is recreate the table on a blank page and only deal with the 3 drop downs and table.  That takes all the other stuff out of it.  Once you get the test page to work, if it does not work on the live  page, you know it is the other stuff interfering.  That is how I would attack this.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.