Some more detail on how to do this: Instea of submitting the form, you can trap the onSubmit event, capture the data from the form, and send it manually using a $.post() call. You can specify a callback function in the $.post() call, and then use window.location.replace()[1] to do the redirect.
[1] http://programming.top54u.com/Samples/Javascript/Location-Object/Location-Replace/Default.aspx On Sat, Dec 11, 2010 at 7:58 PM, Branko Vukelic <bg.bra...@gmail.com> wrote: > Yes exactly. The login should wait for a return value, and do the > redirect itself. The server side should issue a redirect only if it > knows it's not an ajax request. > > On Sat, Dec 11, 2010 at 5:45 PM, Luther Goh Lu Feng <elf...@yahoo.com> wrote: >> Yes, you are clearer now. I don't know the answer but maybe your login >> should be an ajax submission using jquery's ajax calls. Maybe someone >> with more experience can help. >> >> On Dec 12, 12:34 am, pk <peter.kirch...@youngdesigners.de> wrote: >>> hi, >>> here are the pix. the loginview:http://www.hs-augsburg.de/~pk/pix/login.png >>> >>> after the user submit a redirect works in the >>> colorbox:http://www.hs-augsburg.de/~pk/pix/redirect.png >>> >>> but this redirect should not be shown in the colorbox! >>> i hop it is clearer? >>> >>> thanks peter >>> >>> On 11 Dez., 17:29, Luther Goh Lu Feng <elf...@yahoo.com> wrote: >>> >>> >>> >>> >>> >>> >>> >>> > I would love to help you but I am afraid that I have difficulty >>> > understanding your problem. If words fail perhaps some screenshots to >>> > tinypic.com can help make your question clearer? >>> >>> > On Dec 11, 11:33 pm, pk <peter.kirch...@youngdesigners.de> wrote: >>> >>> > > Hi together, >>> >>> > > it works fine to display the login formular in my jquery colorbox. >>> > > but now i have a question. if user login successfully, i get a refresh >>> > > to >>> > > the userpage in the little colorbox. but i will close the colorbox >>> > > before >>> > > refreshing with this js-command: $.colorbox.close() >>> >>> > > have anybody an idea to solve my problem? >>> >>> > > thanks >>> > > peter > > > > -- > Branko Vukelić > > bg.bra...@gmail.com > stu...@brankovukelic.com > > Check out my blog: http://www.brankovukelic.com/ > Check out my portfolio: http://www.flickr.com/photos/foxbunny/ > Registered Linux user #438078 (http://counter.li.org/) > I hang out on identi.ca: http://identi.ca/foxbunny > > Gimp Brushmakers Guild > http://bit.ly/gbg-group > -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/ Registered Linux user #438078 (http://counter.li.org/) I hang out on identi.ca: http://identi.ca/foxbunny Gimp Brushmakers Guild http://bit.ly/gbg-group