Jump to content

dionel1969

uniGUI Subscriber
  • Posts

    459
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by dionel1969

  1. It is just to avoid cache. I use it for a long time. Is there something I'm missing with this???
  2. Ok, I will add a variant part to the name schema.
  3. Hello: Where is the URLFrame defined in: http://docs.sencha.com/ext-js/3-4/ ???
  4. Hello: I have some troubles with URLFrame. I'm using this component for printing tickets from url like: temp/ticket.html but the URLFrame does not load right. I'm using this METAs in the HTML: <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="EXPIRES" CONTENT="0"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> anyway Frame load the previous ticket. I right click the mouse and use "reload frame" the content will load right. So, I was looking a way to call a "reload" of the frame through repaint, refresh but they do not reload the frame.
  5. Ok, I totally agree with you and the doubt is totally clarified.
  6. I read this a long time ago, and I just saw that is still there: Is there any contradiction to your words??? Or is this applied to beta and not to alfa release??? I'm a little confused, because you can create just one component or create a set of component and in this case it will call a "library", for example: "UNIGUI Extension library for Medical Purporses".
  7. Ok, this is a simple test with URLFrame that works if: 1- You click the button in the html 2- Reload frame 3- Reload whole app (from explorer address bar) Note: If you replace the URLFrame with HTMLFrame and put scripts of Applet definition you will see the behavior I describe here in above posts. PS: You can obtain any additional documentation from: http://code.google.com/p/jzebra/ Prueba para los Applets.rar
  8. Me again !!! First: The URLFrame has ClienteEvents.ExtEvents.afterrender event. Second: Can I use this event to call PrintTicket() ???? Third: If yes, how I have to write it in the event editor?
  9. I change back HTMLFrame with URLFrame with this code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Pagina de Prueba</title> <script> function PrintTicket() { var applet = document.jZebra; if (applet != null) { // Send characters/raw commands to applet using "append" // Hint: Carriage Return = \r, New Line = \n, Escape Double Quotes= \" applet.append("Linea 1 \n"); applet.append("Linea 2 \n"); applet.append("Linea 3 \n"); applet.append(" \n"); applet.append(" \n"); applet.append(" \n"); applet.append("Linea Ultima \n"); applet.setEndOfDocument("P1\n"); // Send characters/raw commands to printer applet.print(); } else { alert("Applet not loaded!"); } } </script> </head> <body onLoad="PrintTicket()"> <applet name="jZebra" code="jzebra.PrintApplet.class" archive="jzebra.jar" width="100" height="100"> <param name="printer" value="zebra"> <!-- <param name="sleep" value="200"> --> </applet><br><br> <div align="center"> <form><input type="button" onclick="PrintTicket()" value="Imprimir Ticket"></form> </div> </body> </html> and using button "Imprimir Ticket" it works well. I press ENTER key in the address bar the app (test) reloads and it prints directly without using Button. So, if will be possible to call a method like: URLFrame1.Reload() I think it will possible to print directly without using button for this.
  10. I made this two test with HTMLFrame: 1- Put only the code for load Applet and no script: The application never load. 2- Put only script code no Applet: The application show loading mask but never load entire.
  11. I need to clarifying something. What code could be inside HTMLFrame? A whole HTML Page code from <html> to </html>??? or just a part of it???? I put the code in the above post inside html frame that is inside a MainForm (with not inheritance) and the app just show the loading mask interminably and never loaded the main form. NOTICE: For me it is a VERY IMPORTANT ISSUE: Print POS Tickets directly without Preview or Button's Clicking.
  12. I could not print out the ticket of POS. If I "reload frame" the ticket is printed out, but I did not find a way to call it ( function PrintTicket(); ) from Button, Timer, etc... This is my test code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Pagina de Prueba</title> <script> function print() { var applet = document.jZebra; if (applet != null) { // Send characters/raw commands to applet using "append" // Hint: Carriage Return = \r, New Line = \n, Escape Double Quotes= \" applet.append("Linea 1 \n"); applet.append("Linea 2 \n"); applet.append("Linea 3 \n"); applet.append(" \n"); applet.append(" \n"); applet.append(" \n"); applet.append("Linea Ultima \n"); applet.setEndOfDocument("P1\n"); // Send characters/raw commands to printer applet.print(); } else { alert("Applet not loaded!"); } } </script> </head> <body onLoad="print()"> <applet name="jZebra" code="jzebra.PrintApplet.class" archive="jzebra.jar" width="100" height="100"> <param name="printer" value="zebra"> <!-- <param name="sleep" value="200"> --> </applet><br><br> </body> </html> How can I solve this issue with other tools????
  13. Hello: I've had better experience with Chrome than with IE. I would say that the order of the browsers for me would be: 1- Chrome 2- FireFox 3- Opera 4- Safari 5- IE Even I've stopped using IE for everyday browsing replacing it with Chrome.
  14. Now I'm using cookies and passing sessionid between modules. I want to use StoreManager not is not now in UNIGUI, I hope it will be later. And the sessionid I pass is not the UNIGUI session, it is my own uniqueid for sessions and it is store in db. In this case, the POS App, I have to control all stations, so every station need an id and it is not possible to open two sessions from the same station. IP is not useful is this case, at least you will use combination of virtual ip/real ip.
  15. I will check this, because it works but I have to reload the frame right clicking the mouse. In the case of the POS I'm developing it is necessary to print out immediately, to print with Preview is an option not necessary in this case, even is an option not desired for people who works with POS. May be I will try with Timer to PrintOut first, and later to close the form. Let me see.
  16. Ok, I will check the DEMO then. Thank you.
  17. Hello: My experience: I have a POS app divide in 2 parts: 1- Administration, 2- POS itself. The Administration is divided in 2: 1.1- Manipulation of common archives, processing sale and reporting forms. and 1.2- Monitors of Sale. The POS is divide in 2 parts: 2.1- POS for a computer with all capabilities and 2.2- A very small POS for mobile devices. They all run using the same database, in the same server, using different ports. There is an Entry Point where you place your Login and Pwd and then appear a Screen with Links to other modules. You can access directly to different modules using the url:port schema but if the system detect that you have not a session opened show you the login form for opening new one independently of module you are get in. The app's session data is stored in the db and use virtual stations for that. There is a module that works on background of application that I use for database maintenance and updating of whole app. It is more or less like a book. 1- Title Page: The page at the beging of the book, usually containing the title of the book and the names of the author and publisher with Copyright information. 2- Table of Contents: A list of the books contents, arranged by chapter, section, subsection, Etc... 3- Body: The actual words of the book separate by chapters.
  18. You mean, when you call "dataset.append" the row appear in grid between others or in first row??? If that is the case, it is normally, because at the time of insertion the indexes are not applied yet. Later, when you call "dataset.post" the record must appear in the last row, depending on the indexes applied at UI level. (IMO).
  19. Hello: I just start to use UniFileUpload and I want to know if would be possible to add properties: 1- DestinationFolder 2- KeepSameName ???? I saw the component upload a file to cache\appname\XXXXXXXXXXXXXXXXX.ext (where X is any character).
  20. A little more about this (APPLETS): In this case I use applet for direct printing, but in some Laboratories Applications or for Industries there are a lot of Applets designed and running for communication between computer and other devices: lab's measures tools and so on. So, if will possible to include the use of applets in main web page, would be good for many people. I don't know if it possible for you in the generation of html include this. It is just a comment for you.
  21. Note: the use of OnLoad <body onLoad="print()"> <applet name="jZebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100"> <param name="printer" value="zebra"> </applet><br><br> </body> may be this is the reason for an error in html frame, or may be not. The problem is that sometime is good to show a preview, in some other applications, but in this case it is necessary to print directly immediately.
  22. 1- I tested it now with HTMLFrame and show an error more or less: Object A80 not found. 2- I tested it generating html to a file and using URLFrame and it works well. The file for testing was this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Pagina de Prueba</title> <script> function print() { var applet = document.jZebra; if (applet != null) { // Send characters/raw commands to applet using "append" // Hint: Carriage Return = \r, New Line = \n, Escape Double Quotes= \" applet.append("Linea 1 \n"); applet.append("Linea 2 \n"); applet.append("Linea 3 \n"); applet.append(" \n"); applet.append(" \n"); applet.append(" \n"); applet.append("Linea Ultima \n"); applet.setEndOfDocument("P1\n"); // Send characters/raw commands to printer applet.print(); } else { alert("Applet not loaded!"); } } </script> </head> <body onLoad="print()"> <applet name="jZebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100"> <param name="printer" value="zebra"> <!-- <param name="sleep" value="200"> --> </applet><br><br> </body> </html>
  23. Hello again: May be the question is not good explained. I have a POS App and I don't use any Report Tools for printing, just send Printing Command (normally EPSON/ESC commands) directly to printer, and for this in web mode I will use jZebra Applet. I tested it and works very well, also it include other possibilities like print PDF. So for some applications it is very good, at least for me. The POS is almost done, except for implementation of printing functionality that is waiting for this.
  24. Hello: This one is totally extra, but the property is there and I test it today I want to know a little more. Is there only one animation effect or may be different??? The one I saw the form appears from above. There are others like "appearing from center", etc...
×
×
  • Create New...