Jump to content

Search the Community

Showing results for tags 'onAjaxEvent'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • uniGUI Public
    • Announcements
    • General
    • Feature Requests
    • Installation
    • Deployment
    • Other Platforms
  • Licensing
    • Licensing
    • Ordering uniGUI
  • Bug Reports
    • Active Reports
    • Closed Reports
    • Old Bug Reports
  • uniGUI Development
    • General Development
    • uniGUI Releases & Roadmaps
    • Utilities
  • Mobile Platform
    • uniGUI Mobile
    • Mobile Browsers
  • Users Area
    • Sample Projects
    • Components and Code Samples
    • Third Party Components
  • Non-English
    • Non-English
  • Miscellaneous
    • Hosting
    • Server Security
    • Jobs

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Hi, Q1, I have a problem on ajax events that I can't find any source to resolve the problem. I use DevExtreme grid/pivotGrid (for column filter checkbox with data...) in uniHTMLFrame, with ajaxRequest, I need to load data in JSON format. I can see the XHR data is sent to browser correctly from chromeDeveloperTools, however when I look at result from console, i see only result = "true" and no data displayed in grid. if I use JSON String directly, no problem... I tried many way to handle the respone but i couldn't handle... Q2, if I use uniHTMLFrame in a Modal Form, devexpress filter column popup appears on mainForm, popup goes out from htmlFrame, I couldn't find any solution without putting uniHTMLFrame in to main form. What am I doing wrong, thanks. <div class="demo-container"> <div id="gridContainer"></div> </div> <script> $(function(){ var GetCustomers = function(e) { var deferred = $.Deferred(); result=ajaxRequest(MainForm.UniHTMLFrame1,e,[]); <!-- result=[{"ID":1,"CompanyName":"Premier Buy"}] THIS IS OK--> console.log(result); deferred.resolve(result); return deferred.promise(); } $("#gridContainer").dxDataGrid({ dataSource: GetCustomers('load'), columns: ["ID","CompanyName"] }).dxDataGrid("instance"); }); </script> procedure TMainForm.UniHTMLFrame1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); var s:string; begin if EventName = 'load' then begin s:='['+ '{"ID":1,"CompanyName":"Premier Buy"},'+ '{"ID":2,"CompanyName":"ElectrixMax"},'+ '{"ID":3,"CompanyName":"Video Emporium"}+ ']'; //unisession.JSONDirect(s); //unisession.Response := s; unisession.SendResponse(s,true); end; end; Platform: Delphi Tokyo, uniGui 1.0.0.1424 (licensed)
  2. Hi, I cannot figure out how to fire the OnAjaxEvent from JS-code within the loaded page. ajaxRequest can be called with "parent.ajaxRequest", but I cannot determine the first parameter "sender" I tried: - parent.ajaxRequest(this, "ClickEvent", [ "param0=a", "param1=b" ]); - parent.ajaxRequest(O3C, "ClickEvent", [ "param0=a", "param1=b" ]); // where "O3C" is the JS-name of the UniURLFrame (added via code on startup) - tried to get a reference to the UniURLFrame-control with: - var x = parent.getElementById("O3C"); // x is null - var x = parent.getElementById("O3C_id"); // x is null nothing works. Can anybody help please? best regards steve
  3. Hi everyone, I need to show a ScreenMask while a query and data are recived by a grid. I'm using a TabControl to change the conditions of the query. My problem is that neither PageControl nor TabControl have the event OnAjaxEvent. Please, does anyone how to do this? Finally I want to thank Mr Farshad for his wonderful work. My team is really looking forward to get the commercial version of Unigui. Thank you very much for your help.
  4. OnAjaxEvent receive binary files sent by the client? Thank you!
×
×
  • Create New...