Jump to content

Search the Community

Showing results for tags 'UniURLFrame'.

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

  1. I always had a problem with uniURLFrame uniHTMLFrame. I don't find documentation about their correct use in the uniGUI help nor anything similar in Ext.JS. There is no reference of when to use the JS name of the component, when to use "parent", "windows", "top" or "1#. bla bla bla". I've scoured the entire forum and always the solutions don't explain when and where to use these parameter rules or which components have restrictions or different behavior. This is really the serious problem in uniGUI as I usually spend literally DAYS in trial and error to find the correct combination to call the component's OnAjax or, the most problematic, access JS libs included in html pages. A trick I discovered is if a page contains a JS lib, it is possible to declare a function at the end of the page with the same parameters so that it is triggered BUT NEVER call the lib directly by the function name in uniGUI. Even declaring it in servermodule.customfiles doesn't work. Well, I have a problem where I need to SPECIFICALLY use uniURLFrame because these libs in my project do not work in uniHTMLFrame. So far so good, but I need to call the functions and if I use dynamic creation via frame in a unipagecontrols I can't find the correct way to call this javascript function declares in the HTML loaded in the uniUrlFrame. Note that even if I declare the libs I need in uniGUI and call the functions directly they are not read or recognized as code available in the external Javascript file (I declare it in the HTML code or in the uniGUI). Some work and some don't. In short, I made a testcase where the project loads a frame in a uniPageControl and declares a simple function. Note that it is executed directly in the button's event in the HTML code. But the correct way to call this function: A. UniURLFrame1.JSInterface.JSCode('myAlert()'); B. UniURLFrame1.JSInterface.JSCode(#1'.iframe.contentWindow.myAlert()'); C. unisession.addjs('myAlert();'); I know that this code above (c) will never work but , explain WHY !!!!! What are the limits on uniGUI. ExtJS and components scope for functions and JS Code ? And why some times you have to config a name to uniURLFrame/uniHTMLFrame using Ext.JS Functions ? If I just use uniURLFrame it will work and run the function, no problem. But I need to use it in a Frame and in an uniPageControl. That is reason of such approach. Problems on this testcase: 1-What is the correct way to call this function "myAlert()" in the HTML code ? 2-Where do I find the correct parameters to call these JS codes and why it doesn't work in some cases? This same problem have being posted at the forum with out any answers or only links to on-line manual where there are just name of properties , functions or methods without any content. FrameTesteCase.rar
  2. Hello, I have a simple HTML file (report) and want to show it to the user. For this purpose I use TUniURLFrame in a way like this: uniURLFrame.HTML.LoadFromFile('c:\1.html'); It works perfect except that the browser context menu in uniURLFrame still works regardless of the boDisableMouseRightClick option in UniMainModule.BrowserOptions. It wouldn't have been a large problem but all browsers have the "Save as" option which works dreadful - the saved file is absolute nonsense. Is it possible to disable the context menu in UniURLFrame or is there another better way of showing the prepared HTML file?
  3. I load the code below into a UniURLFrame to display a Google Chart. This works great unless I put more than one UrlFrame on the same form.This is because the Google Charts bit (loaders shown in red text) should only be loaded once per web page. Can anyone tell me how to load these lines separately (AddJS? for example) <!DOCTYPE html> <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['gauge']}); google.charts.setOnLoadCallback(drawGauge); var chartOptions = {min: 90, max: 100, width: 0, height: 0, redFrom: 90, redTo: 96, yellowFrom: 96, yellowTo: 99, greenFrom: 99, greenTo: 100} var theGauge; function drawGauge() { var data = google.visualization.arrayToDataTable([ ['Label','Value'] ,['All', 98.39] ]); Gauge = new google.visualization.Gauge(document.getElementById('Gauge_div')); Gauge.draw(data, chartOptions); } </script> </head> <body> <div id="Gauge_div"></div> </body> </html>
  4. Hi all, I'm using a UniURLFrame in a TabSheet and want to add another TabSheet to the PageControl when clicking a link in the HTML-document. How can this be done? The link can call a javascript function (onclick="parent.addTabSheet('new Tabsheet')"), but I found no way to implement this function somewhere. Is this possibel at all? Thanks a lot for help. Stephen
  5. I've got the Google Charts API thing working (thanks to the poster who posted the sample code, I will post my code when it's all working) Basically, I build the HTML in Delphi code (which I know inside out) then pass that HTML to a UniURLFrame and it displays fine. All is good with the world. However, if I want to re-draw the chart because the user has selected different options, it doesn't work. If I assign new HTML to the UniURLFrame it doesn't draw and produces errors. Without going into detail, these errors are caused because I have already loaded things and created things in the Javascript HTMl the first time round. My question is this: is this the right way to do this sort of thing (i.e. assign HTML to a UniURLFrame) or is there a better way to do it? If this was in Windows development, you would clear what had gone before, then change the HTML then call a refresh method or the like to load in the new HTML. I know this isn't how JavaScript works but any pointers would be gratefully received. Thanks and all the best to all in the Unigui community :-) Andy
×
×
  • Create New...