Hi all.

I'm using jQuery Form Plugin(http://www.malsup.com/jquery/form/) to validate
a form with ajax.

This is js code:
            .ajaxStart(function() {$(this).show();$('#divResposta').hide()})
            .ajaxStop(function() {$(this).hide();})
            $('#frm').ajaxForm({
                target: '#divResposta',
                dataType: 'json',
                success: function(data) {
                    $('#confirmar').show();
                    $('#divResposta').html(data.saida).show();
                }
            });

User needs to inform a value in form field. After submit I need to check
that value in database. If exists, display related information in a
div(divResposta). User needs to validate that data and after resubmit that
form. Easy. The bottleneck is:

- after validate data I used a redirect ColdFusion(cflocation) function to
send that user to another page. Here IE and FF give me an error:

- in FF
[Exception... "Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/Arquivos%20de%20programas/Mozilla%20Firefox/components/nsSessionStore.js
:: sss_saveState :: line 1749" data: no]
oState.session = { state: ((this._loadState == STATE_RUNNING) ?
STATE_RUNNIN...

(error in nsSessionStore.js line 1749).

My question: is it possible to redirect in the middle of an ajax call?

Cheers

Reply via email to