You can either (1) modify the jQuery library to do that, or (2) in
your "url" parameter just hard-code it in the format that you want and
insert the variables in there also without using the "data" parameter
(recommended).

On Oct 1, 10:58 am, acedanger <acedange...@gmail.com> wrote:
> Whenever execute the following code, the URL that is formed has "?"
> before my name and an "=" before my value (so the URL would be "http://
> url/?acct=123"). I need the URL formatted so that a "+" is in front of
> the name and a ":" (colon) to be before the value (i.e. formatted like
> "http://url/+acct:123";). Is there a way to change this behavior?
>
> $.ajax({
>                 url: lansaUrl('proc', 'func'),
>                 global: true,
>                 cache: false,
>                 type: "GET",
>                 data: ({"acct": object.value}),
>                 dataType: "json",
>                 success: function(result){
>                         $("p#customerInfo").innerHTML += " "+result;
>                 },
>                 error: function(xhr, desc, exceptionobj) {
>                         alert(xhr.responseText);
>                 }
>         });

Reply via email to