EasyUI Forum
May 05, 2024, 03:48:47 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2]
16  General Category / General Discussion / succes updating datagrid, timing reload problem on: December 03, 2014, 04:28:13 AM

Hello,

I have a small problem with timing the reload (refresh) of a Datagrid;
The URL in the $Ajax call updates the data in the MYSQL database

Everything is working fine but the grid reload is sometimes "refreshed" BEFORE the URL has done it's job.
 
How can I do the "reload" of the grid after I am sure the update of the URL php script has done it's work?
(when I do a refresh manually after 2 seconds the grid refreshes perfect....)

Thanx in advance,

Spike

   function valideer_factuur(){
      var row = $('#dg').datagrid('getSelected');
      if (row){

         $.ajax({
            url : 'factuur_valideren.php?id='+row.id',  // THIS UPDATES DATA BELONGING TO GRID
            
            success: function(data) {
               $.messager.alert('VALIDEREN ','NR :  '+row.id+' <br> VALIDEREN SUCCES ');
               $('#dg_hvs').datagrid('reload');   // reload the grid and data
            }
      });
         
                     
      }
   }
17  General Category / General Discussion / Re: Normal HREF link on form with mailto: but with value from datafield email on: November 27, 2014, 07:08:04 AM
Exactly what I want!

Thanks  stworthy Smiley

Don't know my EasyUI version for now.
Will check it later.

Hope new EasyUi version is downwards compatible  Smiley

Regards Spike
18  General Category / General Discussion / Re: Normal HREF link on form with mailto: but with value from datafield email on: November 27, 2014, 04:27:43 AM

I try to explain It by an image (see attachment).

In my EasyUI form there is an inputbox with an email value.

I need a link button "email client" on my form which opens my Thunderbird or Outlook with same email adress.
Hope you understand better what I want.

Thanks for your help!


19  General Category / General Discussion / Re: Normal HREF link on form with mailto: but with value from datafield email on: November 27, 2014, 02:30:02 AM
Thanks stworthy;

Your example code is sadly not working  Sad

I only want a URL on my form with a href="mailto:email@value.com"  with the email value from input value email.

Or is it possible by placing a panel in combination with getcontent?

Thanks for you support   Smiley
20  General Category / General Discussion / Normal HREF link on form with mailto: but with value from datafield email on: November 26, 2014, 08:01:42 AM
Hello,

I have a form and want a <a href="mailto:client@client.nl">click to open mailprog</a>  on my form so that a user can click on it, and his mail-program starts.

The mailto must have the same value of the easyui textbox with data field email.
I tried it with a link button but it is not working.

Is there anybody who has an tip/idea?

<form id="ff" action="update.php" method="post" >
<table>
<tr>
   <td>E-mail</td>
  <td colspan="4"><input  name="email" size="80" class="easyui-validatebox textbox" data-options="required:false,validType:'email'"></td>
  <td colspan="3"><a href="#" class="easyui-linkbutton" iconCls="icon-print" plain="true" onclick="mail_klant()">Mail Client</a></td>
</tr>   

Thanks in advance

Spike
21  General Category / General Discussion / Re: Difference between addRow and appendRow edatagrid on: November 26, 2014, 07:52:11 AM
Ok Thanks. It's clear for me now! Grin
22  General Category / General Discussion / Difference between addRow and appendRow edatagrid on: November 26, 2014, 04:21:12 AM
Hello,

I have a question concerning appendRow en addRow in a edatagrid.

appendRow is not working;

addRow works fine. But why are there two methods to add a record?
(and what is the difference with insert?)

THIS CODE WORKS WELL;

 $('#dg_hvs').edatagrid('addRow',{
   boekjaar             : 14,
   dossiernummer         : '98765'
});
                  
$('#dg_hvs').datagrid('saveRow');  //


THIS CODE WORKS NOT BUT

 $('#dg_hvs').edatagrid('appendRow',{
   boekjaar             : 14,
   dossiernummer         : '98765'
});


Thanks in advance for your help.

Spike




Pages: 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!