Login Register

xhr

Cross-domain XHR in dojox

Hi
Is there an example that illustrates how to use cross-domain communication using dojox trick. I was using Julien's Cross Frame framework but that has a limitation on the message (esp. for IE.) So now I Am trying to switch to dojox cross frame. I found an example in the book but it is for the older version of dojo. I am using dojo 1.1.0 (can also switch to the latest version.)

Thank you!

Xhr deferred multiple responses

I have a app that queries if the value in a textbox is valid. Validation is done on each keyup. Problem is in this:

0) Valid input is "dojofile.data"
1) User types one letter at a time and writes "dojofile.data".
2) The data sent is "d", then "do" then "doj", then "dojo" etc.
3) At some point, the last two are sent, "dojofile.dat" and "dojofile.data".

dojo.xhrGet: cache and encode issues

I'm using Dojo on Google's App Engine (GAE) platform. When I call a Python service with xhrGet to perform a (cross domain) urlfetch, I need to add a unique parameter to each request since urlfetch caches the output.

In this environment, there are two issues with dojo.xhrGet:

[1] The xhrGet option "preventCache: true" adds a "&dojo.preventCache" parameter to the URL even if this is the first parameter (which should start with "?")

[2] The URL is not encoded, so the dojo.preventCache parameter gets lost when passing it to urlfetch

Problems using Dojo with Firefox 3

Hello,

I have been experiencing problems using Dojo 1.0.2 with Firefox 3. What I am seeing is that essentially Firefox is finishing the SCRIPT tag that is loading Dojo and proceeding to the next SCRIPT tag (which contains my application that uses Dojo) before Dojo is loaded. Since Dojo itself is not loaded, my application errors out.

Here are the relevant script tags that I am using to load Dojo:

djConfig = { parseOnLoad:true, parseWidgets: false, searchIds: [], isDebug: false, debugAtAllCosts: false};

XHR - I am missing something

I'm moving along in my XHR project with help from the docs and the people here :} but I think I'm still missing some understanding. Any pointers in the right direction would be greate!

dynamic execution of the XHR response content

Hello,

I'm evalutaing Dojo by recreating an application previously built with other frameworks. Liking it so far and it's a lot lighter! But just encounter my first road block was hoping someone could help me solve...

Does Dojo provide a means for dynamically executing an XHR response content. In other words parse the xhr response for script tags and execute this javascript?

We've used the following solution (a plugin for YUI) in the past if this helps you understand our requirement.

http://www.bubbling-library.com/eng/api/docs/plugins/dispatcher

Many thanks in advanced!

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

Problem with a global variable; using xhr and deferred

First, what does my prog do?

Maximum Simultaneous AJAX requests – browser limitation

Hi All,
I am working on a screen which has several grids and charts that need to refresh at a fixed interval.
The initial design involves 1 large AJAX request to fetch all the data for the entire screen. But as expected the JSON is very large and too unwieldy to handle. As an alternative we decided to have 5 AJAX requests instead of one that will be fired together to fetch data from the server.

Data to Server as Json how ?

Hi

I am using Dojo 1.1/IE6 i would like to know how can i send JSON data from the client to the server using dojo
also i am using a servlet at the server side.

Code Example for both would be really helpful, i would also like to know that can we create a new store programatically and store values into it and send it to server as JSON.

an example would be the user selects a number of fields and i want to keep adding his selection to a store and just POST the store to the server.

Is it possible .

Thanks

Dino

Syndicate content