Login Register

xhrGet

DnD with items who use xhrGet

I have a bunch of items in which I can drag and drop inside a Source object. One of those items loads an HTML page in which loads an iframe with a message board inside it. Now, I am able to fully navigate the message board as expected, which is great. However, when I drag it to another location within the Source, it reloads the message board to its index page. Is there a way to stop this behavior?

EDIT: I probably should've posted some of my code, eh?

This is my creator function. "item" has only one property "href" which is a string giving the URL.

xhrGet error callback invoked when no error on IE6

I am converting some old pages to use dojo 1.1, and ran into a snag when doing cross browser testing. Everything is fine in Firefox, but fails in IE 6. The basic approach here is to invoke a php file on the server in response to user click, and have it return a JSON structure based on what it finds in the database. That JSON structure is then used to build a table in a div by DOM manipulation. Looks good, runs fast – but not in IE.

dojo.xhrget tandem calls possible?

is it possible to call xhrget in two JSPs in tandem?

below are snippets of what my code looks like. When I ran it, foo.jsp ran fine and loads bar.jsp within the cargo container. But the submit button on bar.jsp do not work when i click on it.

anyone else have successfully done this tandem call or is this a bug within the toolkit?

=============================================================
foo.jsp

function fetch () {
dojo.xhrget (
url : "bar.jsp",
handleas : "text,
load: function(response) {
dojo.byId("cargo").innerHTML = response;

Xhrget....don't word i IE7 if the return JSON have a charset="iso8859-1"

If I have a web server that return a page JSON with this content-type:
**************************************************************
"Print |content-type: text/plain; charset="ISO8859-15"; |"
**************************************************************

And I execute a xrget in Firefox all work corretly and I see the data JSON with special caracters..

But in IE7 don't work...

What's the problem?

And the solution?

How I can call correctly a xhrget of specific charset...?

Tnx

DataStore and FilteringSelect

My problem is this: I'm having difficulty taking the JSON data I receive from a Servlet after transforming it from JSON text to a JSON Object and using it as a dojo.data.ItemFileReadStore data store in a dijit.form.FilteringSelect. Please see below for a detailed description of the problem.

Working with the result of a xhrGet call

Hi,

I don't understand how I can access the response from an xhrGet call using the defered object, I have tried various things, but nothing seems to work. I am a dojo newbie.

...
dojo.addOnLoad( function() {
	data = loader.loadData();
	consolo.log("data" + data");
	consolo.log("data" + data.results");
	consolo.log("data" + data.results[0]");
}
...

Imagine my Loader object has the following method:


...
loadData: function() {

console.debug("Loader.loadData() start");

noob problem using xhrGet

Hi

I have just started to use this toolkit and I think its really sweet working with.

I have made a function which looks like this:

function toggleAndChangeStyle(targetId,targetId2,classId) {
if (document.getElementById){
var target = document.getElementById( targetId );
var target2 = document.getElementById( targetId2 );

dojo.xhrGet(
{
url: '/servlet/gui',
load: helloCallback,
error: helloError,
content: {groupId:targetId}
}
);

if (target.style.display == "none"){

xhrGet not being parsed correctly

Reading through the posts this seems to be a common newbie problem.
I have a webpage with a tree down the left hand side acting as a menu.
The centre pane contains a split container with two content panes.
The first content pane has two dnd sources and the second pane has one further dnd source.
What I want is that when I click on a node in the tree the entire centre pane will update (a xhrGet call to the php file generating the dnd sources).
When I make this xhrGet call I need to parse the centre pane again, using dojo.parser.parse(dojo.byId("centre"));

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