Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-31-2009, 03:47 PM   PM User | #1
charrell
New to the CF scene

 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
charrell is an unknown quantity at this point
Pulling data via javascript from AJAX generated select box.

I've never really done any JavaScript development, but decided I wanted to play around with AJAX. I got it to do what I want in the simplest form, but I came across an issue with not being able to pull form values via JavaScript on a select box generated via AJAX.

Here is what I have and how it should work.

1) There is a select box with various options such as Institution, Students, etc. When I click on Institution, AJAX will will generate a new select box to the right that will have a list of institutions pulled from a database (they same goes for students). This part works beautifully.

2) When a list of institutions of students is generate I should be able to click on that particular institution or student and generate yet another select box based on the institution/student id's pulled from the database.

For some reason I am unable to pull data from the form that is generated via the AJAX call. Can javascript not access the document form values of AJAX generated forms? If I even make a reference to the select values of the generated select box, the original select form won't even function.
charrell is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:12 AM.


Advertisement
Log in to turn off these ads.