Dear All,

my code is as the following:

$('#btn_print_preview').click(function(){
                if(validate()){
                    var invoice_no = $('#txt_invoice_code').val();

                    var note = $('#txt_note').val();
                    $.ajax({
                             type : "POST",
                             url  :
'/Billing_System/Invoices/check_session/',
                             data : {'invoice_code':invoice_no},
                             dataType: 'json',

                             success : function(data,event){

                                        if(data['result']==true){


window.open('preview','_blank')



                                            }
                                        else{
                                            alert('Please total invoice
first')
                                            }

                             }
                    });

                    }
            })

On Tue, Sep 11, 2012 at 11:26 AM, romel javier gomez herrera <
[email protected]> wrote:

> hi
>
> is maybe window.open()
>
>
> http://www.w3schools.com/jsref/met_win_open.asp
>
>
>
>
> 2012/9/11 André Luis <[email protected]>
>
>> Maybe with the code we can help you
>>
>> Thanks :D
>>
>> Em terça-feira, 11 de setembro de 2012 13h26min03s UTC-3, Mr. Manager
>> escreveu:
>>
>>> Dear All,
>>>
>>> I have one problem with want to open new window with javascript function
>>> windw.open() in condition of ajax response success
>>> But when I use this function nothing happen.
>>>
>>> Anyone has idea.
>>>
>>> This is an urgent task for me.
>>>
>>> Thanks,
>>> Dara,
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to