1 person found this helpful
Hi Nick -
Let me also recommend jQuery.
Fantastic stuff once you get the hang of it, and even the simple stuff is cool.
Ok... here's what I did...
There are probably better ways to do it, but I cheated, in that I did it my way, and got some good results.
Using divs to define my display areas here's what I did:
I have 2 select statements -
1) Selecting from 1 populates the other select.
2) The JS function is triggered when a selection is made.
3) The Ajax statement goes out to a web page, that new page does a query and creates a new div with the same name as "txtResult", for my example.
4) The Ajax then pulls back the new page and displays it.
It's pretty easy after a few tries.
Hope this helps.
data: "id=" + poolID,
<div style=" padding-left:100px;">
<select name="pool" onchange="dynamic_Select(this.value)" />
<option value="#" selected="selected">-Select-</option>
<span id="txtResult" style=" padding-left:100px;">
<select name="schedules" id="schedules" onchange="getInfo()">
Alas I couldn't find what I wanted in any of the libraries (jquery etc) so had to make my own thing using xmlHTTPrequest() as Ilssac suggested.
I would post the code here but
a) it's ended up being quite messy
None the less got there in the end and I'm very grateful to you all for you help.
Thanks very much indeed.