Jump to content
Fórum Script Brasil
  • 0

Problema integração PHP/JQUERY


Ricardo T. do Prado

Question

Boa Tarde!

Pessoal,

Estou com uma dúvida/problema com o plugin jquery + php (por isso postei em php, caso o adm julgue necessário, mover tópico).

Tenho uma página, que chamo um Dialog() só que, quando é chamado ele aparece e some em menos de 1 segundo.

Segue código:

CSS

#box {

text-align:left;

line-height:2.0;

background: #fff;

margin-bottom:10px;

padding:5px;

-webkit-border-radius: 5px;

-moz-border-radius: 5px;

color:#333;

display:none;

}

PAGINA.PHP

<div id="box" title="Registro">
    <?php 
    
        $id = $_GET['id']; //var key global para os actions
        
        if($_GET['action'] =='new') { // NOVO
            
            // createFormInsert(    $tabela = "usuarios",
                            // $fields = array(
                                // "nome"=>"text",
                                // "email"=>"text",
                                // "login"=>"text",
                                // "senha"=>"password",
                                // "foto"=>"file"
                            // )
            // );
            echo "novo";
        }
        
        if($_GET['action'] =='edit') { //EDIT
            
            // createFormEdit (    $tabela = "usuarios", 
                            // $fields  = array(
                                // "nome"=>"text, ",
                                // "email"=>"text",
                                // "login"=>"text",
                                // "senha"=>"password",
                                // "foto"=>"file"
                            // ), 
                            // $key = "id", 
                            // $id = $id);

        echo "Edit";
                            
        }     
        if($_GET['action'] =='delete') { //DELETE
            
            // deleteCommand("usuarios","id",$id);
            
            echo "delete";
        }
?>

</div> <!-- fecha div BOX -->
e estou chamando assim o jquery
$('#btnEdit, #btnNEW, #btnDelete').click(function(){
        $('#box').dialog();
    });

Alguém saberia dizer como faço pra janela BOX (dialog) não sumir?

Abs.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...