Jump to content

ibandyop

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by ibandyop

  1. K0de, Change

    the Client saves the data in a (PCName+"\data1.txt"). Client2 saves the data in a (PCName+"\data1.txt") , etc..

     

    To

    aPath+'\'+UniApplication.RemoteAddress+'_data1.txt';

     

    @Anders - very nice explanation

  2. When using TUniFileUpload

    • Create your own folder do not use UniGui.LocalFilePath, ie. DestFolder:=UniServerModule.StartPath+'UploadFolder\';
    • Copy file to UploadFolder from UploadComplete to CopyFile(PChar(AStream.FileName), PChar(DestName), False);
    • Please change direction of slashes from \ to / and use HTTP url format and read http://{url}/Uploadfolder/FName . url should be manually defined to allow domain name in future etc.

  3. How can I set focus on DBGrid?

     

    Can you explain what you want to achieve. I do not understand you question.

    Also I should explain setfocus of a Cell in delphi needs EM_SETSEL window message to change to editbox that message is not available in a web browser and other operating systems.

     

    I do not know exact solution for you. But if you want focus where you mouse pointer is, you need scripting.

    Please read document Farshad has described below

    http://www.unigui.com/wpblog/2011/07/29/client-side-scripting-with-unigui/

     

    and see example ClientEvents in http://prime.fmsoft.net/demo/ucdemo.dll

  4. Use Params to pass user input values to your database., like this

     

    qry.SQL.Text := 'update users set name=:name where uid=:uid';
    qry.Prepare;
    qry.ParamByName( 'name' ).AsString := Sanitize(edname.txt);
    qry.ParamByName( 'uid' ).AsInteger := uid; // not user input
    qry.ExecSQL;
    

     

    Sanitize depends on database., If using Zeos with Mysql you can use mysql_real_escape_string() in ZPlainMySqlDriver.pas

     

    Unfortunately there is no quick solution

    www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks

    25yearsofprogramming.com/blog/2011/20110205.htm

    st-curriculum.oracle.com/tutorial/SQLInjection/index.htm

    msdn.microsoft.com/en-us/library/ms161953(loband).aspx

  5. We use Xampp on windows XP and Windows 2008 with over 50 users with no problem. Win7 should be fine.

    In httpd.conf I reduced the default ThreadsPerChild 250 to ThreadsPerChild 50 to reduce memory.

    I notice before service packs are installed the system gets sluggish.

    a.) You can avoid installing service packs - may not be recommended in your environment

    b.) Reboot your system once a month after "patch tuesday" after installing service packs

    c.) Use a RAM fragmentation utility (have not tried)

     

    Since your using Win7 I am assuming you have a strong CPU and lots of RAM which are more important than the OS.

    If your not using odbc32 with PHP., ReactOS has worked fast and reliably for me with Xampp on another low CPU powered system used in production.

  6. I have not done this., but if I was to try., I would look at the the Demo Called "Basic jQuery" and

    adapt the instructions from here:

    http://www.sencha.com/forum/showthread.php?17423-2.0-A.1-FCKeditor-Form-Field-Extention

     

    That brings up another question., that needs investigation. How easy would it be to use the Sencha plugins

    described here.

    http://www.sencha.com/learn/extensions-and-themes

    Because they have TinyMCE editor., and if it is just drop it in and use., that would be awesome.

     

    Sorry to hijack your thread. If you do not mind please post your progress and what worked so we can

    improve the UniGui roadmap. Thanks

  7. Difficult to answer this question because its unclear what you want. I use UniScreenMask with UniStatusBar.

     

    If bandwidth/connection is an issue you should not assume you can communicate with server showing progress.

    In this case.Display your own modal dialog and close it when process is completed.

  8. Wath kind of problems can we expect trying to use unigui ?

     

    Your question is too broad., Here is a broad answer.

    A lot depends on what you want to do.

    A lot depends on your technical ability as well.

     

    UniGui uses ExtJS and Delphi so the capability of both come to your benefit.

    You already know some components do not play together, same here.

    Some smart people like Farshad and Patmap have extended the features

    with JQuery and GoogleMaps so a lot more is possible than comes in the box.

  9. SCRIPT5009: 'Ext' is undefined

    Melisa.dll, line 26 character 1

     

    Apache appears fine. Suspect ExtRoot is not set. Have you changed RootServer ?

    See:

    http://www.unigui.com/doc/online_help/adjusting_paths.htm

     

    1. copy the full folder from where you installed just to make sure \FMSoft\Framework\uniGUI., I keep my folder outside and set ExtRoot to '..\ext-3.3.0'

     

    2. If your running on the same computer as compiling what happens when it is ExtRoot [Ext]

     

    3. You could compile as Executable into same location and use Windows to debug/verify paths etc.

  10. Browsers do not display .pdf files. Except for Chrome all of them need a plugin to 'display' the pdf.

     

    I think the correct way to handle this is to Generate the pdf and save it to

    RvSystem1.OutputFileName := UniServerModule.LocalCachePath+ rptfile +'.pdf';

     

    And display a properly formatted URL/l to the generated PDF like <a href="http://path/to/pdf"> Download PDF</a> in your UniURLFrame or even a TUniLabel.

  11. See Example ClientInfo_2006_2007.dpr

     

     

    No browser can get client side registry key., unless you send a hack for them to download an executable and run it then upload the key. But I could be wrong.

  12. 1. Charting Component not based on TeeChart VCL because I cannot figure out version used. I went back to original standard TeeChart and still cannot compile against UniGui. ( Maybe base is off JEDI JVCL JvChartDemo.dpr using TJvChart )

    2. Standard InputBox and/or InputQuery

    3. Hooks to touchpad (Is Sencha Touch required?)

    4. UniGui components that are compatible between current ExtJS 3x and ExtJS 4x . I realize it is a very big move from version 3 to 4 and can forsee big changes in Unigui VCL.

    5. SSL feature (for login etc)

    6. Accordion Control http://examples.extjs.eu/gridinacc.html => JvItemsPanel ( JvPanelsU.pas in JVCLMegaDemo demo and JvNavigationPane )

     

    Farshad, Unigui is a brilliant piece of work. Thank you for sharing it with us.

×
×
  • Create New...