I found my answer - I needed to use options

                $.ajax({
                                  type: "post",
                                  url:  "Proc.asp",
                                  data: "cmd=ups&"+ mystring,
                                 success: function(data){
                                 $("#cnts").html(data);
......

On Apr 21, 7:09 pm, webber <[EMAIL PROTECTED]> wrote:
> using
>
> $.post("ajaxProc.asp", { cmd:'ups', mystring}
>
> "mystring" is a list of values created by a function that returns a
> result like city:phoenix,state:arizona,   etc.
>
> I want to add it to the post but I get back an error saying it's
> missing the colon  .
> my guess is that it thinks "mystring" is the first part of the named
> pair.
>
> I know "mystring"  is holding the correct information because I can
> view it from the alert.
>
> how can I place "mystring" into the post so it gets processed
> correctly for the values it contains?
>
> thanks

Reply via email to