Hello!

I'm trying to use $.post, in order to send along parameters via POST.
I have figured out how to do this properly (like: {title: "some item",
author: "some author"}, etc.).  However, my list if parameters changes
based on one variable: "type".  So if the type = b, then let's say
we'll use the title, author, release_date parameters.  But if the type
= f, then the parameters might be title, year, actors, etc.  How can I
make that list of parameters dynamic?  All I need to do is fit a
switch block in there somehow, and I'd be good. =P

God bless,

Tom

Reply via email to