Re: Conditional async?

2007-08-13 Thread Jesse Kuhnert
Right. Redirects aren't really handled by xml http request - so any implementation of them is haphazard at best. On 8/2/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > you could als set via javascript the input components you need and then call > dojo.byId('idsubmit').click(); to take advantag

Re: Conditional async?

2007-08-02 Thread Andrea Chiumenti
you could als set via javascript the input components you need and then call dojo.byId('idsubmit').click(); to take advantage of the ajax features. ciao, kiuma On 8/2/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Igor: > Thanks! Works better now :-) It's not beautiful but it works! > > Peter:

Re: Conditional async?

2007-08-02 Thread Malin Ljungh
Igor: Thanks! Works better now :-) It's not beautiful but it works! Peter: Thanks for your reply. I use validators and async=true and this is the whole point... it's in case of valid input I need to reload the whole page, due to logged in view is so different from anonymous view so async="true" a

Re: Conditional async?

2007-08-02 Thread Peter Stavrinides
Malin There are so many scenarios I can think of, which depend very much on how you app is constructed, without a good understanding of which makes answering your question correctly a shot in the dark. I find the best place to validate is before the page render so you wont need a reload afte

Re: Conditional async?

2007-08-02 Thread Igor Drobiazko
How does your js look like? Try window.location.href=bla; On 8/2/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > No one had this issue? > Must be the most common scenario I figure... > > *puff* > > > On 8/1/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > > > Thanks Andrea - it works! ... well, alm

Re: Conditional async?

2007-08-02 Thread Malin Ljungh
No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Thanks Andrea - it works! ... well, almost anyway :) > > If the page is reached through a post I will get the POSTDATA confirm > dialog... :'( > > Malin > > > On 8/1/

Re: Conditional async?

2007-08-01 Thread Malin Ljungh
Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: > > if login succeeds just write a conditional js that refresh the page > > > On 8/1/07, Malin Lj

Re: Conditional async?

2007-08-01 Thread Andrea Chiumenti
if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > I've created a login component to add to my pages. > > If validation fails I'd like to use async="true" to display validation > messages - works fine! > > But - if login succee

Conditional async?

2007-08-01 Thread Malin Ljungh
I've created a login component to add to my pages. If validation fails I'd like to use async="true" to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async="false" or possibly use some o