Login Register

xhrPost

xhrPost urlencoding

I am using version 1.1.0.
Problem:
Function xhrPost is makeing an urlencoding of the content before sending it.

Example:
dojo.xhrPost({
url: "/portal/trlService",
handleAs: "xml",
headers:{"SOAPAction":""},
content:{"mytest":"<"},
contentType: "text/xml;charset=iso-8859-1" });
};

Output from the browser:

POST /portal/trlService HTTP/1.1
Accept: */*
Accept-Language: en-US,sv;q=0.5

xhrPost, POST request not working. Throws bad http response code:405

Hi,

I have created a page using DOJO toolkit and using xhrGET to submit my AJAX requests, obviously GET has some limitations so it fails when the number of characters exceeds around 256 or 4k. So, I have tried to use the xhrPOST to resolve this issue and I am thrown with the error "Error: bad http response code:405 message=bad http response code:405".

Can anyone shed some light on this issue?

Thanks in advance,
Kari...

Inconsinstent behavior of dojo.xhrPost vs dojo.io.iframe.send

When posting a form with xhrPost, dojo strips away all buttons values, and this is a documented design choice. My application needs the value of the clicked button to be sent along the rest of the form, so I worked around dojo by adding the value to the content dictionary you can pass to xhrPost: it works fine because dojo strips the button values before merging it with the content dictionary.

xhrPost 1.0 doesn't work but .9 does

I am using websphere (application server 6)/ rad (7.0) ibm environment to develop portlets

I am trying to receive a string with an xhrPost. The string is a 2d array (and after i get this working i will want to send it to my grid code).... but that's after i get this working (hopefully you can help)

This exact code IS WORKING with .9 BUT NOT with 1.0

and it's extremely simple code.... (please let me know if it's working in your environment)

here's my post (i'll give you the full jsp below):

dojo.xhrPost( {

Do we need to reparse widgets after xhrPost?

Hi,

I am calling xhrPost, which is returning me html code that I put in an innerHTML of some div.
Now, that html code contains dijit widgets. Now those widgets aren't displaying properly, and I guess it's because I have to parse them. Can I call a function to reparse the widgets automatically or do I have to parse each of them individually?

Thanks,

ltn2k

Syndicate content