I've got this code below.
<script type="text/javascript" src="../../prototype.js"></script>
<script type='text/javascript'>
Event.observe(window, 'load', init, false);
function init(){
var url = 'supadjustment.php';
var supformlist = Form.serialize('supform');
var pars = supformlist;
var target = 'supervisoradjustments';
var myAjax = new Ajax.Updater(target, url, {method: 'get',
parameters: pars});
}
</script>
<div id='supervisoradjustments'></div>
It works fine. What i'm wondering is, when it dumps everything back
into the div tag, is there a way I can use the variables it returns?
For example, on the page called supadjustment.php it looks up a list
of names and dumps them, in a <form> <select>, onto the main page
through the div tag. How can I then access the values of the list? I
want to give those values to another page to lookup data specific to
the person selected.
I want to take the response and put it into a php variable so that I
can do something else with it, rather than just dumping the results
into a div tag.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---