Sorry, I didn't notice the double brackets when I pasted those in there...

The double brackets are necessary, because I've copied the code from an XSL
stylesheet.  The double brackets are there to "escape" the curly brackets.
What gets outputted by the XSL Transformation, and therefore sent to the
browser is a single pair of curly brackets.

So, if you take the code below and turn all those double curlies into single
curlies.... Should that be correct?  If so, I've still got a problem.

/John

On Fri, Mar 6, 2009 at 6:51 AM, david <[email protected]> wrote:

>
> Hi John,
>
> your problem is as you say normal, because both effects take place at
> the same time.
> The Queue add does not resolve it because you miss the way to write
> it:
>
> new Effect.Appear('pkgSearchFormLoading', {  { queue: 'end' }  });
> should be write:
>
> new Effect.Appear('pkgSearchFormLoading', {    queue: 'end'    }); or
> new Effect.Appear('pkgSearchFormLoading', {  queue:
> { position:'end' }  });
>
> --
> david
>
> On 5 mar, 18:55, John McGowan <[email protected]> wrote:
> > As I said in my last post, I'm brand new to Proto and Scripty.  I
> apologize
> > a head of time for this newbie question.
> >
> > I was just testing out a simple little page that uses Ajax.Updater to get
> > new content and drop it into a div.  It works just fine, over and over
> > again, without trouble.
> >
> > However, when I add some Effects to the mix, eventually, the container
> div
> > ends up getting hidden, when it shouldn't be... I'm a programmer, so I
> > understand that there's probably some sort of race condition occuring.
> >
> > Here's an example of what I'm doing, these calls are in the "onChange"
> for a
> > drop down on the main page.
> >
> > new Effect.Appear('pkgSearchFormLoading', {{ queue: 'end' }});
> > new Effect.Fade('pkgSearchForm', {{ queue: 'end' }});
> > new Ajax.Updater('pkgSearchForm', 'main.taf', {{ evalScripts: true,
> method:
> > 'get', parameters: {{live:'live',p:'9,4,1',PackageID:$F('pspkgid')}}
> }});">
> >
> > on the page that gets loaded and dropped into the pkgSearchForm
> container,
> > this following script is returned...
> >
> > new Effect.Fade('pkgSearchFormLoading', {{ queue: 'end' }});
> > new Effect.Appear('pkgSearchForm', {{ queue: 'end' }});
> >
> > I started out without the queue stuff, but adding it didn't really change
> > anything.
> >
> > I'm sure that what's happening is that the Appear that's supposed to
> execute
> > when the Updater loads the html fragment is either not executing, or it's
> > executing in parallel with the Fade from the original "OnChange" event on
> > the main page.
> >
> > Could someone just point me in the right direction as to the best
> practice
> > in doing this sort of thing.
> >
> > Thanks,
> > John
> >
>


-- 
/John

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to