Jump to content
php.lv forumi

Formas actions bez lapas pārlādes


ziedinjsh

Recommended Posts

Skripts kurš tev "nestrādā" interesantā kārtā man strādā!

Vainu tu nemāki pareizi izvadīt ceļus uz .js , vai arī nemāki lietot copy -> paste!

 

<head>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> 
   <script type="text/javascript" src="http://github.com/malsup/form/raw/master/jquery.form.js"></script> 

   <script type="text/javascript"> 
       // wait for the DOM to be loaded 
       $(document).ready(function() { 
           // bind 'myForm' and provide a simple callback function 
           $('#myForm').ajaxForm(function() { 
               alert("Thank you for your comment!"); 
           }); 
       }); 
   </script>
</head>

 

<body>
<form id="myForm" action="comment.php" method="post"> 
   Name: <input type="text" name="name" /> 
   Comment: <textarea name="comment"></textarea> 
   <input type="submit" value="Submit Comment" /> 
</form>
</body>

Edited by mypoint
Link to comment
Share on other sites

ieliku ar garajiem js linkiem kādi ir norādīti.. bet vienalga neiet nekas!!! Tas taču nevarētu būt no tā ka es viņu izmantoju popup`ā? prekštam man jau vaijag bez lapas pārlādes lai datu pievienošanas rezūltātā man neaizveras popup un parāda vai nu soccsess mesigu vai rerror mesigu! ja nu vienīgi pie kaut kā var atvērt popup pie datubāzes rzūltāta atspoguļošanas!?

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

Loading...
×
×
  • Create New...