Login Register

xhr

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

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!

Syndicate content