Login Register

xhrPost

xhrPost, form: parameter and execute attribute not playing nice

Greetings all,

Welcome to the new year!

see http://www.purplelizardgallery.com/gato_edit.jsp

Thanks to the help I've received in this forum I've got my Dojo-enabled page and servlet talking to one another BUT only under certain circumstances:

a) button "send to server outside of form using params" triggers a JS function that packages up the forms' fields in a JS variable named params then applies this variable to the content: attribute of xhrPost. this works as you can see the fields' values reflected back from the server.

Using dojo.InLineEditBox with dojo.xhrPost

Hello, I'm new to dojo. About two weeks into it.

I'm having a problem using dojo.InLineEditBox with dojo.xhrPost. I'm using xhrPost to call a PHP page to save data. I made a very simple test.

IE returning an error from xhr post when content returned contains a form tag

I am trying to do an xhrPost to a processing page that will return html and be handled as text when it is returned. In FF this works correctly and in safari on a Mac. However IE 6 and 7 both return the error handler as soon as I include a form tag in the html that is being returned.


function callFinalist() {
addressInfo = dojo.xhrPost ({
// Location of the HTML content we want to grab
url: '/plain_content/ietest.cfm',
form: dojo.byId("form_id"),
handleAs: "text",

timeout: 10000,

Why dojo.xhrPost(request) occasionally returns HTTP Status 0 ?

Hi,

I can't find any reason for seeing occasional errors when calling xhrPost() and why the returned HTTP status is 0 (zero) ?

Here are two examples of error messages:

Dojo 'remote_get_menu_items.php.php: Error: Unable to load utilities/remote_get_menu_items.php status:0

Dojo 'remote_get_menu_items.php.php: Error: Unable to load utilities/remote_get_menu_items.php status:0

Here is a code snippet:

var request = {

    url : "utilities/remote_get_menu_items.php",
    handleAs : "text",
    load : function(response)

xhrPost, xhrGet, RPC or json?

Hi,
I couldn't find any comparison article or discussion on pros and cons on different types of data transfer procedures (I mean xhrPost, xhrGet, RPC, json etc).

Please suggest me which data submission procedures will be better,efficient and secure and in a word PERFECT for the following situations seperately-

1. Login
2. User registration
3. Live data update in Grid

Thanks a lot in advance.

Firefox 3 xhrPost form failure

Hello all,

Edit: This is with Dojo 1.0.2

I have run into a new problem with a set of web pages I previously developed. This problem is specific to ONLY Firefox 3(FF3); IE 6, 7 and FF2 work fine. What I had been doing is posting some data to my web server when a user presses a "login" button.

xhrPost -> Firefox fine, IE not so much

I'm having the following issue using xhrPost to submit form data in IE 6:

(When I submit in Firefox, everything works out great: the form is submitted when a user clicks the submit button, and the callback updates the proper div w/ the returned data.)

In IE, I get an "object Error" message from my XHRError function. This is unfortunate, because the entire user base for this application uses IE.

Reference code:

function testPost() {
dojo.xhrPost( {

Not seeing postData in server code

Can anyone point me in the right direction for a resolution to this problem - most likely my daft coding but I just cant see it !

The execution of this dojo.xhrPost request works perfectly fine. I see the formatted result of my DB query in the div called "main_content". But ... the postData property seems to be lost. Firebug doesn't show anything in "Console>Post" and of course my PHP script cant find anything!

var init = function(){
var contentNode = dojo.byId("main_content");

dojo.query("#Application")

dialog does not show up after xhrpost

Following is my code, where I am trying to show the dialog after doing the xhrpost ,
but the dialog does not show up and submits to the default url,

i tried using 1.0 and 1.1 dojo release,

please help,

function getHtml(e) {

e.preventDefault();

dojo.xhrPost ({

// The page that parses the POST request

url: 'myurl',

// Name of the Form we want to submit

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

Syndicate content