Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. Hi,

     

    I manage to do it...

     

    1. create a .js file with this content:

     

    var sessionTimeout = 11;//in seconds
    var sesioncounter = 11;
    
    function DisplaySessionTimeout()
    {
               sesioncounter = sesioncounter - 1;
    
               if (sesioncounter >= 0)
    		{
                   window.setTimeout("DisplaySessionTimeout()", 1000);				
    		}	
               else
               {
    		   sesioncounter=sessionTimeout;
                  window.location = "http://www.google.com";//in timeout redirect to google
               }
    }
    DisplaySessionTimeout();

     

    2. attach the file to "servermodule":

    step2.jpg

     

    3. add this code to every form (ClientEvents--> UniEvents --> OnAjaxRequest):

    step3.jpg

     

    That is it... give it a try <_<

     

    Maybe there is more efficient way, but for now it's working good for me... :rolleyes:

    • Upvote 1
  2. Hi,

     

    I manage to do it...

     

    1. create a .js file with this content:

     

    var sessionTimeout = 11;//in seconds
    var sesioncounter = 11;
    
    function DisplaySessionTimeout()
    {
               sesioncounter = sesioncounter - 1;
    
               if (sesioncounter >= 0)
    		{
                   window.setTimeout("DisplaySessionTimeout()", 1000);				
    		}	
               else
               {
    		   sesioncounter=sessionTimeout;
                  window.location = "http://www.google.com";//in timeout redirect to google
               }
    }
    DisplaySessionTimeout();

     

    2. attach the file to "servermodule":

    step2.jpg

     

    3. add this code to every form (ClientEvents--> UniEvents --> OnAjaxRequest):

    step3.jpg

     

    That is it... give it a try <_<

     

    Maybe there is more efficient way, but for now it's working good for me... :rolleyes:

    • Upvote 1
  3. Hi all,

     

    When I try to run my project ad aspi (.dll) I get this message:

     

    An Exception has occured in application:
    
    Cannot create file "C:\Inetpub\wwwroot\Roya_1\cache\roya_1\__5AEDB8B9206F6C897FCAEAE8.jpg". Access is denied
    
    Restart application
    

     

    I have configured the permissions for Internet user (R/W, execute script...) but still can't run !!!

  4. When I started my project two weeks ago, the DBGrid displayed a waiting indicator (uniscreenmask).. and was ok.

     

    NOW--->:

     

    1. it doesn't display (uniscreenmask)... the user don't know if it's loading data or not....

    2. the sorting on column click doesn't work...

     

    I also tried to open samples from unigui but NO (waiting..., Sorting) :unsure:

     

    see this image taken from "megademo" and the sort ability is DISABLED !

     

    dbsort.jpg

     

    the thing that i have changed is upgrading to the new build of unigui

    0.90.0 build 973

     

    How can I solve it?

  5. I have upgraded to latest build (delete packages, unistall, instuall new release, build and install new packages...)

     

    I opened the project again and build it again but still there is deiffrence between design time and run time (in the web ONLY)

     

    here is my latest build:

    bld.jpg

     

    and here is the full screen (after building with new release)- pay attention to DBGrid and the parent frame (groupbox):

     

    dsn.jpg

    run.jpg

     

    Thanx,

  6. Good day to all....

     

    I'm building an app using unigui (great framework) but there is a difference between design time and run time, see the attachem image.

     

    There is extra (beacause the grid shrink I don't know why!!) between dbgrid (bottom) and the border (panel).

     

    spc_extra.jpg

     

    How can I fix that?

  7. hi there...

     

     

    How can I display data published to dbgrid (uniqui dbgrid) into cenetr, I can center the titles but not the data...

     

    In browse this the class for cell (how can I override it):

    <div class="x-grid-cell-inner " style="text-align: left; ;">
    

     

    please help... :)

  8. Hi... ;)

     

    I want to validate input data to edit control at client side using the "clientevents" property on the Form, how can I do that?

     

    I want to do this:

    procedure TMainForm.UniEdit2Exit(Sender: TObject);
    var
    a:double;
    begin
    if ansipos('.',UniEdit2.Text)=0 then
    begin
      a:=strtofloat(UniEdit2.Text);
      UniEdit2.Text:=formatfloat('0.00',a);
    end;
    end;
    

     

    Thank you,

  9. Hello,

     

    I have created a form with DB controls and the Mysql connection is set with UTF-8 and also unigui form set with UTF-8 but When I type arabic text it displays OK when I hit "SAVE" to write data to database it converts to '??????????'

     

    Does any one know why?? :unsure:

×
×
  • Create New...