Jump to content

Search the Community

Showing results for tags 'url'.

  • 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 10 results

  1. UniImage1.AutoSize:= True; // DOES NOT WORK UniImage1.Url:='images/myimage.png'; // LOADS // Work Around below corrects size but need image to be centered UniImage1.JSInterface.JSCode('Ext.defer(function(){var el='#1'.el.select("img").elements[0]; '+ 'el.style.maxWidth = "100%"; '+ 'el.style.height="100%"; }, 20);'); After work around above, UniImage1.Center:= True; now works.
  2. Hi! UniGUI: uni-1.90.0.1501 Delphi 2010 I need to use external payment service (like a bankcard payment) and the bank call my application after finish of payment transaction. The call url contains parameters about payment transaction. On Main form I want to handle URL parameters and I want to continue my payment process depends on url parameters. When I using Chrome then all parameters passed in UniSession.ARequest.Referer and UniApplication.Parameters. But when I using Mozilla Firefox the UniApplication.Parameters are empties. How can I get passed parameters from url what are sent by all browsers (Chrome, Firefox, Edge, IE)? Also this situation is exists on uniGUI mobile app... Example URL: http://192.168.240.31:8888/paymentinprogress?r=eyJyIjowLCJ0IjoxMDE4NDAxNiwiZSI6IkNBTkNFTCIsIm0iOiJEMDA0NjAxIiwibyI6IklTU1gxMDAwMDAwMDE0MyJ9&s=5VrqR%2BWEWapLWe0FHvRKBYN3%2BYzMbzTxsVZ2RyRdRgs3QOdaljWugAJTjwg3TVZv Thanks for your help. BR, Attila
  3. I want to display the image file sort_asc.gif (which is included with the installed themes) depending on which theme is currently selected. How can I build the URL to the sort_asc.gif image file?
  4. UniSession.UrlRedirect('http://www.google.com'); UniSession.BrowserWindow('http://www.google.com', 0, 0, '_blank'); UrlRedirect ile sayfayı yeni sekmede açabiliyormuyuz. BrowserWindow ile yeni sekmede açmak istediğimde chrome popup engelliyor. bu popup engellini nasıl aşabilirim.
  5. Hello, Can anyone help me? I have a simple application with a login and a main menu form, very usually, but with a particular parameters in the URL, I need to provide a simple, unformatted text content to the respective user's web browser (that text can be a JSon, XML, OData, etc). This URL contains authentication parameters (something like "127.0.0.1:8077/?authkey=700UB7BN3FM1ZMN"). I need to use the "UniGUIMainModuleBeforeLogin" event of the "UniMainModule", to validate this authentication key, determine which user is accessing the data and only if that key/user is validated, select their respective data and generate the plain text in the format that need. What I need is simple: When this URL with parameters are acessed, after the validation on the "UniGUIMainModuleBeforeLogin" event, instead of showing the Main Menu screen, I need that this simple text (which can be a text in the OData, JSon, XML, etc.) return that plain string back to the user's web browser. Attached is an image that shows what I need. My UniGUI version is "FMSoft uniGUI Complete Professional 1.0.0.1423". I have tried the following approach: procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean); var xAuthKey, xUserInfo, xStrData : string; begin Handled := False; //Try to get authentication info xAuthKey := (Sender as TUniGUISession).UniApplication.Parameters.Values['odata']; if not xAuthKey.IsEmpty then begin //Validate authentication info and gets the user info xUserInfo := GetUserInfo(xAuthKey); if not xUserInfo.IsEmpty then begin //GetStrData returns information of database based on user info //It can be a JSon, a XML or OData, or even, a simple text xStrData := GetStrData(xUserInfo); { Down here i got troubles } TUniGuiSession(Sender).AResponse.ContentType := 'text/plain'; //tried: 'text/plain', 'text/xml', 'application/json', and others TUniGuiSession(Sender).AResponse.ContentText := xStrData; TUniGuiSession(Sender).AResponse.WriteContent; { Up here i got troubles } //Don't show de login form Handled := True; end; end; end; I tried other approach too, but still nothing: procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean); var xAuthKey, xUserInfo, xStrData : string; begin Handled := False; //Try to get authentication info xAuthKey := (Sender as TUniGUISession).UniApplication.Parameters.Values['odata']; if not xAuthKey.IsEmpty then begin //Validate authentication info and gets de user info xUserInfo := GetUserInfo(xAuthKey); if not xUserInfo.IsEmpty then begin //GetStrData returns information of database based on user data //It can be a JSon, a XML or OData, or even, a simple text xStrData := GetStrData(xUserInfo); { Down here i got troubles } //Here I got a ajax erro message dialog, with the content of xStrData (Even with the ExecCode param True) TUniGuiSession(Sender).SendResponse(xStrData, False); { Up here i got troubles } //Don't show de login form Handled := True; end; end; end; It must be something simple, but I can not do it. I searched a lot in the forums and did not find anything like what I want to do. Thank you in advance.
  6. Hello!! Example: I have a "System A" that generates a report. This report is sent to the client in PDF format. I want to change the way the report is sent. Instead of sending the PDF, I want to send a link so that the final client can access the report at any time. In "System A" I generate a link (example, http://169.111.22.222:8082+codeof verification). I have another 'System B' that reads this link and opens the report. How to read this link and its parameters? Thank you. ------------------------------------------------------------- Olá!! Exemplo: Eu tenho um "Sistema A" que gera um relatório. Este relatório é enviado ao cliente em formato PDF. Eu quero mudar a forma de envio do relatório. Ao invés de mandar o PDF, quero mandar um link, para que o cliente final, possa acessar o relatório o qualquer momento. No "Sistema A" eu gero um link (exemplo, http://169.111.22.222:8082+codigode verificacao). Tenho outro 'Sistema B" que faz a leitura deste link e abre o relatório. Como ler este link e seus parâmetros? Obrigado.
  7. Can someone show me how to get a HtmlFrame to load a URL on show - Thanks. PixiemForm.HTMLFrame.HTML.Clear; if UniServerModule.DeployFlag = True then begin PixiemForm.HTMLFrame.HTML.Add('http://www.mysite.org/pixie/index.html'); end else begin PixiemForm.HTMLFrame.HTML.Add('http://myip:8077/pixie/index.html'); end; PixiemForm.ShowModal;
  8. I have a MobileApp that uses a TUnimDBListGrid and on the Disclosure event shows another Formm where we update the TUnimImage (MapImage) URL from db table file export. Problem is after the first successful URL load, all future URL loads are ignored and the original does not change ? Please advise. MapmForm.MapImage.Url:= 'files\temp.jpg'; UniSession.AddJS(MapmForm.MapImage.JSName+'.Refresh;');
  9. hi, how can i load picture into TUniURLFrame? I tried next those two dont work URLViewer.HTML.Add('<img src="/cache/Workflow_exe/'+ CacheFolder + '/' + Node.Text +'?fake='+ DateTimeToStr(Now) + '" style="width:100%;height:100%">') //DONT WORK URLViewer.HTML.Add('<iframe style="width:100%;height:100%;border:none;background-repeat:no-repeat;background-sizecontain;background-image:url(/cache/Workflow_exe/'+ CacheFolder + '/' + Node.Text +'?fake='+ DateTimeToStr(Now) +'");"></iframe>') //DONT WORK This one is working but sizes of picture are two big. scrollers appear. URLViewer.URL:= '/cache/Workflow_exe/' + CacheFolder + '/' + Node.Text +'?fake=' + DateTimeToStr(Now);
  10. What is the best way to go to a web page when you click an element? For example, it is common for a company logo to be displayed in a corner. In HTML you would just wrap a href around it. After extensive searching in the forum I found the following method, which does the job. Injecting JS in this way seems overkill but I guess is the only/best way? UniSession.AddJS('window.location.href="http://mycompany.com";');
×
×
  • Create New...