[Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
I don't know if this is really something I can fix via Prototype, or if it's in any way a Prototype issue, but I'll try here first. Here is my problem - which unfortunately I can’t show you because I'm only developing it on my local system at the moment - slightly simplified: I have a pair of

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
On 29 Sep 2011, at 15:00, Chris Sansom wrote: I've tried various things to stop it caching, such as loading the top image via a tiny php script Forgot to mention, before anyone else does, that the first thing I tried, after Googling, was to put various query strings [such as '?' + (new

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Richard Quadling
On 29 September 2011 15:00, Chris Sansom ch...@highway57.co.uk wrote: In sequence, this happens: -  User clicks image -  Ajax request is created, running a php script with various parameters, in which... -  ...the necessary renaming takes place (which involves checking for duplicates

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Chris Sansom
On 29 Sep 2011, at 15:51, Richard Quadling wrote: Does ALL the JS work take place inside the onSuccess callback? The Back in JS bit has to be part of the onSuccess callback otherwise it will happen out of sequence. The A in AJAX is potentially the hiccough here. That's what I suspected but

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Richard Quadling
On 29 September 2011 16:58, Chris Sansom ch...@highway57.co.uk wrote: On 29 Sep 2011, at 15:51, Richard Quadling wrote: Does ALL the JS work take place inside the onSuccess callback? The Back in JS bit has to be part of the onSuccess callback otherwise it will happen out of sequence. The A

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Phil Petree
This is an interesting problem... my first reaction is that you'd want to use onComplete to update the div's instead of onSuccess. Test this with a couple of alerts and see which one gets called first and which is last (just as onCreate is the first call, onComplete is the last). To my way if

Re: [Proto-Scripty] Image cache problem with Ajax

2011-09-29 Thread Phil Petree
I didnt address the caching because I had to look to see if I could find where I had saved this link off the last time I had this problem... found it! The caching is probably on the browser side, not the server side. Setting the server side cache variables will only affect the page reload. The

[Proto-Scripty] Re: Image cache problem with Ajax

2011-09-29 Thread ncubica
i know you resolve your problem but It wont be easy if you delete from the dom the img / tag storing the actual images then... create new new Images() append to the div and finally add a query cheat link??? just a shot... best ncubica... On 29 sep, 13:28, Phil Petree phil.pet...@gmail.com wrote:

Re: [Proto-Scripty] Re: Image cache problem with Ajax

2011-09-29 Thread Walter Lee Davis
What I have done in the past is to simply update the src attribute of the image. The result is immediate and doesn't suffer from any cache issues. Walter On Sep 29, 2011, at 8:58 PM, ncubica wrote: i know you resolve your problem but It wont be easy if you delete from the dom the img / tag

[Proto-Scripty] Re: Future of Prototype.js

2011-09-29 Thread ncubica
ok ... So T.J. I know you not have the ultimate decision for designate a candidate for any position at Prototype community but certanly you are the most near with the core team. So I would like to know if you could email one of them and try to start designate person for revitalize this

Re: [Proto-Scripty] Re: Image cache problem with Ajax

2011-09-29 Thread Phil Petree
Walter, you're right that's generally all that's needed but since one img name would stay the same the browser would look in cache first and not reload the image... which is what he's experiencing. On Sep 29, 2011 9:39 PM, Walter Lee Davis wa...@wdstudio.com wrote: What I have done in the past is

Re: [Proto-Scripty] Re: Future of Prototype.js

2011-09-29 Thread Marty Amberg
Might have been asleep during my previous google searches but I found tj's site http://proto-scripty.wikidot.com today which seems like answers questions of what I would want and think prototype needs to grow.No sense in reinventing something that is there which is what I ahd posted