[Proto-Scripty] Execute JavaScript within HTML Response to Ajax Request

2010-09-24 Thread Greg
Via Google search, I found this answer today here: http://stackoverflow.com/questions/278122/how-to-force-javascript-to-execute-within-html-response-to-ajax-request I have it half working. What I mean is, my response text comes back and updates my div perfectly with the HTML when evalScripts:

[Proto-Scripty] Re: how to update a function with a remote call

2010-09-24 Thread nephish
Hey there, Wanted to say thanks for all your help here. The links especially. I am still very new at all this and it's a lot to get my head around. That site is excellent. sk On Sep 22, 4:53 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, You're taking the return value of `new

[Proto-Scripty] Re: how to update a function with a remote call

2010-09-24 Thread T.J. Crowder
Hi, Sorry, I missed out an opening bracket. Should have been: function replace_weather_table(){ zoomy = map.getZoom(); new Ajax.Request('/weather/update_weather_tables?zoom='+zoomy, { // ^-- this was missing

[Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-24 Thread JoJo
I have several lines of code that I want to run atomically (no context switches to other code). Please look at the following barebones example that illustrates the issue: //= function doAjax() { console.info('making request'); new Ajax.Request( url, { onSuccess:

Re: [Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-24 Thread Phil Petree
If you want a() to finish before b() and b() to finish before c() then you will have to daisy chain in the onComplete code. On Fri, Sep 24, 2010 at 3:21 PM, JoJo tokyot...@gmail.com wrote: I have several lines of code that I want to run atomically (no context switches to other code). Please

[Proto-Scripty] Re: AJAX callbacks are not executed atomically?

2010-09-24 Thread JoJo
I don't need A to finish before B. I need A's callbacks to not be cut off by B's instantiation. On Sep 24, 12:44 pm, Phil Petree phil.pet...@gmail.com wrote: If you want a() to finish before b() and b() to finish before c() then you will have to daisy chain in the onComplete code. On Fri, Sep

[Proto-Scripty] IE9 Drag-Drop

2010-09-24 Thread tazz_ben
Are other people seeing issues with script.aculo.us' drag and drop in the latest beta of IE 9? I know what to do about this is a bit complicated because it might be their bug. But we also don't want a core feature like that not working when it gets released. -- You received this message

Re: [Proto-Scripty] IE9 Drag-Drop

2010-09-24 Thread Marcus Schwarz
Hi, Are other people seeing issues with script.aculo.us' drag and drop in the latest beta of IE 9? I know what to do about this is a bit complicated because it might be their bug. But we also don't want a core feature like that not working when it gets released. we've encountered that

[Proto-Scripty] Re: AJAX callbacks are not executed atomically?

2010-09-24 Thread JoJo
I believe I solved the problem. I had a queue of work orders. One of these work orders queued up another work order, so it was a nested AJAX request - BAD IDEA! On Sep 24, 12:56 pm, JoJo tokyot...@gmail.com wrote: I don't need A to finish before B. I need A's callbacks to not be cut off by B's

Re: [Proto-Scripty] Re: AJAX callbacks are not executed atomically?

2010-09-24 Thread Phil Petree
Same difference. Since the AJAX calls are Async you have no control over what gets completed first or what gets interrupted by what. If script a does a complex query taking 2.2 seconds and returns a large data set while script b does a simple query that takes .02 seconds and returns 100 bytes,

[Proto-Scripty] Re: marquee in JavaScript (using Prototype)

2010-09-24 Thread Eric Anderson
On Aug 27, 5:43 am, Johan Arensman johanm...@gmail.com wrote: I'm fully against marquee's in the first place but you also have an option to add the attribute data-duration to your element. If you're making a class to replace a depricated functionality you shouldn't use this way to add features