It's supposed to be like this: dojo.io.bind({ url: "http://this.isaurl.com", load: function(type, data, evt){window.alert"data"; }, error: function(type, error){ window.alert(error);window.alert(type); }, mimetype: "text/plain", preventCache: true });
I must say however that i haven't used this yet. In tacos we also append a random string to the url, but if this dojo parameter works, we'll probably use it. That's way i wanted you to tell me if it works - so that i can skip the experiments :) James Sherwood wrote: > Hello, > > Maybe my head is not on straight but I dont know how to add that > argument to the url:) > > What I have done is I created a quick service in tapestry that just > returns a random string(i can modify it later to return anything I > want) and in this service I just ignore the paramater at the end. > > Then in the url I call I just added a random number to the end of it > making IE not cache the response:) > > Maybe your way is better if you could explain how to add that > parameter to this: > > dojo.io.bind({ > url: "http://this.isaurl.com", > load: function(type, data, evt){window.alert"data"; }, > error: function(type, error){ > window.alert(error);window.alert(type); }, > mimetype: "text/plain" > }); > > Thanks, > James > > ----- Original Message ----- From: "Andreas Andreou" <[EMAIL PROTECTED]> > To: "Tapestry users" <tapestry-user@jakarta.apache.org> > Sent: Tuesday, February 21, 2006 12:06 PM > Subject: Re: How to make a page talk to the server without refreshing > > >> Try adding the following parameter, and please inform us if it works >> >> /** Prevent the browser from caching this by adding a query string >> argument to the URL */ >> preventCache: true >> >> James Sherwood wrote: >> >>> Thanks for the replies guys. >>> >>> Cliff: >>> >>> Currently I am testing dojo.io.bing. I have it pulling data from a >>> text file from tapestry that I just stuck in an image directory. This >>> works fine except it caches so bad that I have to close the browser >>> and reopen it to see the data change in the text file. >>> >>> Any ideas around this? >>> >>> Thanks, >>> James >>> ----- Original Message ----- From: "Cliff Zhao" <[EMAIL PROTECTED]> >>> To: "Tapestry users" <tapestry-user@jakarta.apache.org> >>> Sent: Tuesday, February 21, 2006 11:31 AM >>> Subject: Re: How to make a page talk to the server without refreshing >>> >>> >>> Then, just like what I said in my previous e-mail. All those methods >>> will >>> work. dojo.io.bind and dojo.rcp.JsonService use XmlHttpRequest behind >>> the >>> scene. I'm in progress of creating a JsonService on the server side. >>> >>> On 2/21/06, James Sherwood <[EMAIL PROTECTED]> wrote: >>> >>>> >>>> Hello, >>>> >>>> Basically what I want is a basic tapestry page running (IE >>>> Http://james.com/web?service=page/Somepagename ), but polling the >>>> server >>>> to >>>> see if it should refresh. When it polls the server, the server >>>> should be >>>> able to perform some action (IE check if the data on page has should >>>> change >>>> according to some information in a database) and then tell the page to >>>> refresh if needed or not to refresh. >>>> >>>> I run tapestry under Tomcat. >>>> >>>> >>>> Thanks, >>>> James >>>> >>>> ----- Original Message ----- >>>> From: "Cliff Zhao" <[EMAIL PROTECTED]> >>>> To: "Tapestry users" <tapestry-user@jakarta.apache.org> >>>> Sent: Tuesday, February 21, 2006 11:15 AM >>>> Subject: Re: How to make a page talk to the server without refreshing >>>> >>>> >>>> XmlHttpRequest or dojo.io.bind or dojo.rpc.JsonService or iframe io >>>> etc. >>>> But >>>> not very sure what you really want. >>>> >>>> On 2/21/06, James Sherwood <[EMAIL PROTECTED]> wrote: >>>> > >>>> > Hi all, >>>> > >>>> > I am trying to make a page talk to the server without refreshing the >>>> page. >>>> > What I am actually trying to do is to create a way for the server to >>>> tell >>>> > the page to refresh. >>>> > >>>> > I have been looking at tacos with ajax but so far I cant even get it >>>> > working:( >>>> > >>>> > Any ideas would be greatly appreciated, >>>> > Thanks, >>>> > James >>>> > >>>> > >>>> > >>>> > >>>> --------------------------------------------------------------------- >>>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> > For additional commands, e-mail: >>>> [EMAIL PROTECTED] >>>> > >>>> > >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]