Login Register

xhr

XhrGet says second time "dijit widgets already defined"

Hi,

I'm using the latest dojo version ( 1.2.3 )

I'm using dojox.layout.ContentPane in combination with dojo.xhrGet:
My contentPane is defined as followed:

<div id="content" dojoType="dojox.layout.ContentPane">
</div>

function getHtml ( target_url ) {
dojo.xhrGet ({
// Location of the HTML content we want to grab
url: target_url,

// Called when the page loaded successfully
load: function (data) {
dijit.byId('content').destroyDescendants();

What's the process of ajax while using dojox.fileuploader ?

I can't understand how the dojox.form.FileUploader work , especially about the ajax process.
There is the sampialifed-example's codes .

@import "/Libs/dojo/dijit/themes/tundra/tundra.css";

@import "/Libs/dojo/dojox/form/resources/FileInput.css";

 

How to parse array returned from xhrGet call

Greetings...

Can anybody point me in the right direction as to how to parse/handle an array returned from xhrGet call.

When calling dojo.xhrGet(kw) the response is a string. But if its an array how does one read it?

I have looked into JSON but there is no specific example on what to do when you receive a response which is an array (from the server). Do I need to convert the PHP array to JSON ? And if so how?

Thanks in advance.

Troy Fandango

basic authentication with xhr

This is probably a simple question, sorry, sorta new to dojo...

I want to bundle user/password credentials for http basic authentication with an xhr request, is this a part of ioArgs? How would I form object/structure?

thanks for any pointers...

cross domain XHR - question regarding XHR plugin api

Hello,

I just read the post on Sitepen about the upcoming XHR plugin registry to prioritize cross-domain transports. It only mentioned native implementation (if available), window name and iFrame fragment methods.

dojo.io : does it support serialization of requests?

Hello,

A newbie-ish questions about dojo.xhr:
I want to be able to create categories of 'exclusive' requests. E.g., each request would have an group identifier (e.g. loadResource, answerQuestion etc). I want to make a request only if no other request is already pending for the corresponding category. I know it is easy enough to do this in my user code, but am wondering if dojo.io already has facilities for serialization, that would make the code neater?

Thanks

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};

Syndicate content