Bear Bibeault wrote:What is it that you are trying to do here:?
Steve Dyke wrote:
Bear Bibeault wrote:What is it that you are trying to do here:?
My first select list each option has a data attribute that associates to a session defined list. I want to assign this data attribute to the wValue3 variable.
After thinking about this the only way I may get it to work is by using ajax. But you may have a better way I am hoping.
Bear Bibeault wrote:In your Ajax logic, where do you do anything with the response?
And why is it a POST?
Bear Bibeault wrote:OK, the formatting of the code made me miss where the handler was passed.
No, as it simplest, a POST is mostly used when a non-idempotent operation is to be executed on the server. There's a little more than that to it, but that'll do for our purposes.
Getting data, even if its pre-formatted HTML, is clearly a GET.
And, if the intent is to load the formatted HTML returned as the response into the DOM, that's where the jQuery .load() method is really handy.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |