Dojo created URL seems don't be a legal json format. You should request a JSON URL parameter(after the '?')
2010/8/17 Thomas Davis <[email protected]> > > I have configured aped to sit on a server and tried to connect via a > Dojo client but it does not work. What seems to happen is Dojo > creates a URL like > > > http://myserver:8002/?message=%5B%7B%22version%22%3A%221.0%22%2C%22minimumVersion%22%3A%220.9%22%2C%22channel%22%3A%22%2Fmeta%2Fhandshake%22%2C%22id%22%3A%2210%22%7D%5D&jsonp=dojo.io.script.jsonp_dojoIoScript11._jsonpCallback > > But the server responds with > [{"time":"1281979526","raw":"ERR","data": > {"code":"005","value":"BAD_JSON"}}] > > The Dojo code looks like this > > function publishSlide(src) { > dojox.cometd.publish("/slideshow/change", { > 'src': src > }); > } > > > ctest = function () { > dojox.cometd.init("http://10.228.198.40:8002/"); > dojox.cometd.subscribe("/slideshow/change", function(comet) { > console.log(comet); > }); > setTimeout(function() { > publishSlide("the result"); > }, 2000); > } > > > I have searched everywhere for this answer but could not find an > example of this. But on the APE home page it says it supports Dojo. > Any help will be appreciated. > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
