AJAX example
Posted: Sat Sep 03, 2011 6:05 am
Steve,
Happy Labor Day!!!
I'm trying to use AJAX to pull selected data for the next select box on my form.
my onchange event for the first select box eventually calls the following:
getDataReturnText('http://xatafaceWebsite/index.php?-action=ajax_get_categories&cat='.value, 'ajaxUpdateCat')
'ajax_get_categories' is a registered action in xataface that returns a json array of items.
My thought is that the request would filter through the url decoding process and pass the data?'cat' to my action.
(This didn't happen. Nothing did Can you give me a short example or explanation here, please?)
from there I'll return my data to the callback, decode, display,etc.
If what I'm asking makes sense, I'll be happy to rewrite the question and answer into something a little more coherent for others to follow.
Thanks,
-Barry
Happy Labor Day!!!
I'm trying to use AJAX to pull selected data for the next select box on my form.
my onchange event for the first select box eventually calls the following:
getDataReturnText('http://xatafaceWebsite/index.php?-action=ajax_get_categories&cat='.value, 'ajaxUpdateCat')
'ajax_get_categories' is a registered action in xataface that returns a json array of items.
My thought is that the request would filter through the url decoding process and pass the data?'cat' to my action.
(This didn't happen. Nothing did Can you give me a short example or explanation here, please?)
from there I'll return my data to the callback, decode, display,etc.
If what I'm asking makes sense, I'll be happy to rewrite the question and answer into something a little more coherent for others to follow.
Thanks,
-Barry